From 6329d2977bd69549421d0dcc87b6706edf1dd095 Mon Sep 17 00:00:00 2001 From: tb <> Date: Thu, 14 May 2020 18:11:45 +0000 Subject: go fmt whitespace nit --- src/regress/lib/libcrypto/wycheproof/wycheproof.go | 6 +++--- 1 file 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 @@ -/* $OpenBSD: wycheproof.go,v 1.119 2020/05/14 18:09:25 tb Exp $ */ +/* $OpenBSD: wycheproof.go,v 1.120 2020/05/14 18:11:45 tb Exp $ */ /* * Copyright (c) 2018 Joel Sing * Copyright (c) 2018, 2019 Theo Buehler @@ -1536,10 +1536,10 @@ func runECDHTest(nid int, variant testVariant, wt *wycheproofTestECDH) bool { } // XXX The shared fields of the secp224k1 test cases have a 0 byte preprended. - if len(shared) == int(secLen) + 1 && shared[0] == 0 { + if len(shared) == int(secLen)+1 && shared[0] == 0 { fmt.Printf("INFO: Test case %d (%q) %v - prepending 0 byte\n", wt.TCID, wt.Comment, wt.Flags) // shared = shared[1:]; - zero := make([]byte, 1, secLen + 1) + zero := make([]byte, 1, secLen+1) secret = append(zero, secret...) } -- cgit v1.2.3-55-g6feb