diff options
| author | tb <> | 2020-05-14 18:11:45 +0000 |
|---|---|---|
| committer | tb <> | 2020-05-14 18:11:45 +0000 |
| commit | 80a8c526ad4972ff7b9ecfadc7c3e48f09a15d90 (patch) | |
| tree | 5bd32d33c75b2c9c6aa3f81edd64bc011a813ea9 /src | |
| parent | 74205fa6f0a724cd249e16623335d53fe32bc5ac (diff) | |
| download | openbsd-80a8c526ad4972ff7b9ecfadc7c3e48f09a15d90.tar.gz openbsd-80a8c526ad4972ff7b9ecfadc7c3e48f09a15d90.tar.bz2 openbsd-80a8c526ad4972ff7b9ecfadc7c3e48f09a15d90.zip | |
go fmt whitespace nit
Diffstat (limited to '')
| -rw-r--r-- | src/regress/lib/libcrypto/wycheproof/wycheproof.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/regress/lib/libcrypto/wycheproof/wycheproof.go b/src/regress/lib/libcrypto/wycheproof/wycheproof.go index e36dbe219a..3c96dd009d 100644 --- a/src/regress/lib/libcrypto/wycheproof/wycheproof.go +++ b/src/regress/lib/libcrypto/wycheproof/wycheproof.go | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: wycheproof.go,v 1.119 2020/05/14 18:09:25 tb Exp $ */ | 1 | /* $OpenBSD: wycheproof.go,v 1.120 2020/05/14 18:11:45 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2018 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2018 Joel Sing <jsing@openbsd.org> |
| 4 | * Copyright (c) 2018, 2019 Theo Buehler <tb@openbsd.org> | 4 | * Copyright (c) 2018, 2019 Theo Buehler <tb@openbsd.org> |
| @@ -1536,10 +1536,10 @@ func runECDHTest(nid int, variant testVariant, wt *wycheproofTestECDH) bool { | |||
| 1536 | } | 1536 | } |
| 1537 | 1537 | ||
| 1538 | // XXX The shared fields of the secp224k1 test cases have a 0 byte preprended. | 1538 | // XXX The shared fields of the secp224k1 test cases have a 0 byte preprended. |
| 1539 | if len(shared) == int(secLen) + 1 && shared[0] == 0 { | 1539 | if len(shared) == int(secLen)+1 && shared[0] == 0 { |
| 1540 | fmt.Printf("INFO: Test case %d (%q) %v - prepending 0 byte\n", wt.TCID, wt.Comment, wt.Flags) | 1540 | fmt.Printf("INFO: Test case %d (%q) %v - prepending 0 byte\n", wt.TCID, wt.Comment, wt.Flags) |
| 1541 | // shared = shared[1:]; | 1541 | // shared = shared[1:]; |
| 1542 | zero := make([]byte, 1, secLen + 1) | 1542 | zero := make([]byte, 1, secLen+1) |
| 1543 | secret = append(zero, secret...) | 1543 | secret = append(zero, secret...) |
| 1544 | } | 1544 | } |
| 1545 | 1545 | ||
