summaryrefslogtreecommitdiff
path: root/src/regress/lib
diff options
context:
space:
mode:
authortb <>2019-12-14 18:39:02 +0000
committertb <>2019-12-14 18:39:02 +0000
commit6157b5dabe9d672ee78f5bfc845c17e115d1610a (patch)
treeb34ffa0d25ad39c361256ef913888740c28f3908 /src/regress/lib
parentfb685d5184e992bcca5cf614af18a626f1c23189 (diff)
downloadopenbsd-6157b5dabe9d672ee78f5bfc845c17e115d1610a.tar.gz
openbsd-6157b5dabe9d672ee78f5bfc845c17e115d1610a.tar.bz2
openbsd-6157b5dabe9d672ee78f5bfc845c17e115d1610a.zip
whitespace from go fmt + update a comment
Diffstat (limited to 'src/regress/lib')
-rw-r--r--src/regress/lib/libcrypto/wycheproof/wycheproof.go8
1 files changed, 4 insertions, 4 deletions
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 @@
1/* $OpenBSD: wycheproof.go,v 1.114 2019/12/14 09:39:30 tb Exp $ */ 1/* $OpenBSD: wycheproof.go,v 1.115 2019/12/14 18:39:02 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>
@@ -1966,7 +1966,7 @@ func runHmacTest(md *C.EVP_MD, tagBytes int, wt *wycheproofTestHmac) bool {
1966 } 1966 }
1967 1967
1968 keyLen, msgLen := len(key), len(msg) 1968 keyLen, msgLen := len(key), len(msg)
1969 1969
1970 if keyLen == 0 { 1970 if keyLen == 0 {
1971 key = append(key, 0) 1971 key = append(key, 0)
1972 } 1972 }
@@ -2017,7 +2017,7 @@ func runHmacTestGroup(algorithm string, wtg *wycheproofTestGroupHmac) bool {
2017 2017
2018 success := true 2018 success := true
2019 for _, wt := range wtg.Tests { 2019 for _, wt := range wtg.Tests {
2020 if !runHmacTest(md, wtg.TagSize / 8, wt) { 2020 if !runHmacTest(md, wtg.TagSize/8, wt) {
2021 success = false 2021 success = false
2022 } 2022 }
2023 } 2023 }
@@ -2759,7 +2759,7 @@ func main() {
2759 if err != nil { 2759 if err != nil {
2760 log.Fatalf("Failed to glob %v test vectors: %v", test.name, err) 2760 log.Fatalf("Failed to glob %v test vectors: %v", test.name, err)
2761 } 2761 }
2762 // XXX put check back after wycheproof-testvectors update to 20191126 2762 // XXX put check back after wycheproof-testvectors update to 20191214
2763 // if len(tvs) == 0 { 2763 // if len(tvs) == 0 {
2764 // log.Fatalf("Failed to find %v test vectors at %q\n", test.name, testVectorPath) 2764 // log.Fatalf("Failed to find %v test vectors at %q\n", test.name, testVectorPath)
2765 // } 2765 // }