summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2018-08-29 18:58:46 +0000
committertb <>2018-08-29 18:58:46 +0000
commit171440b2550f360005baa7e9a4c420cbe4acf0ff (patch)
tree9a33cb05fd94fe6fdc78f9970fd5f4536d429a5b /src
parentf70290a1beb8f016823855989b446793a6df6f93 (diff)
downloadopenbsd-171440b2550f360005baa7e9a4c420cbe4acf0ff.tar.gz
openbsd-171440b2550f360005baa7e9a4c420cbe4acf0ff.tar.bz2
openbsd-171440b2550f360005baa7e9a4c420cbe4acf0ff.zip
Don't fatal on keys of invalid sice, just print an INFO.
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libcrypto/wycheproof/wycheproof.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/regress/lib/libcrypto/wycheproof/wycheproof.go b/src/regress/lib/libcrypto/wycheproof/wycheproof.go
index 672a8673b1..d8da1ddf6e 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.31 2018/08/28 18:28:30 tb Exp $ */ 1/* $OpenBSD: wycheproof.go,v 1.32 2018/08/29 18:58:46 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 Theo Buehler <tb@openbsd.org> 4 * Copyright (c) 2018 Theo Buehler <tb@openbsd.org>
@@ -563,7 +563,8 @@ func runAesCcmTestGroup(wtg *wycheproofTestGroupAesCcm) bool {
563 case 256: 563 case 256:
564 cipher = C.EVP_aes_256_ccm() 564 cipher = C.EVP_aes_256_ccm()
565 default: 565 default:
566 log.Fatalf("Unsupported key size: %d", wtg.KeySize) 566 fmt.Printf("INFO: Skipping tests with invalid key size %d\n", wtg.KeySize)
567 return true
567 } 568 }
568 569
569 ctx := C.EVP_CIPHER_CTX_new() 570 ctx := C.EVP_CIPHER_CTX_new()