From 6157b5dabe9d672ee78f5bfc845c17e115d1610a Mon Sep 17 00:00:00 2001 From: tb <> Date: Sat, 14 Dec 2019 18:39:02 +0000 Subject: whitespace from go fmt + update a comment --- src/regress/lib/libcrypto/wycheproof/wycheproof.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/regress/lib/libcrypto/wycheproof/wycheproof.go b/src/regress/lib/libcrypto/wycheproof/wycheproof.go index a98640548f..d84e683e1b 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.114 2019/12/14 09:39:30 tb Exp $ */ +/* $OpenBSD: wycheproof.go,v 1.115 2019/12/14 18:39:02 tb Exp $ */ /* * Copyright (c) 2018 Joel Sing * Copyright (c) 2018, 2019 Theo Buehler @@ -1966,7 +1966,7 @@ func runHmacTest(md *C.EVP_MD, tagBytes int, wt *wycheproofTestHmac) bool { } keyLen, msgLen := len(key), len(msg) - + if keyLen == 0 { key = append(key, 0) } @@ -2017,7 +2017,7 @@ func runHmacTestGroup(algorithm string, wtg *wycheproofTestGroupHmac) bool { success := true for _, wt := range wtg.Tests { - if !runHmacTest(md, wtg.TagSize / 8, wt) { + if !runHmacTest(md, wtg.TagSize/8, wt) { success = false } } @@ -2759,7 +2759,7 @@ func main() { if err != nil { log.Fatalf("Failed to glob %v test vectors: %v", test.name, err) } - // XXX put check back after wycheproof-testvectors update to 20191126 + // XXX put check back after wycheproof-testvectors update to 20191214 // if len(tvs) == 0 { // log.Fatalf("Failed to find %v test vectors at %q\n", test.name, testVectorPath) // } -- cgit v1.2.3-55-g6feb