summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/regress/lib/libcrypto/wycheproof/wycheproof.go6
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