diff options
author | tb <> | 2019-11-27 11:57:33 +0000 |
---|---|---|
committer | tb <> | 2019-11-27 11:57:33 +0000 |
commit | 60f1b5feddd8dd715d9076eae62f6a937b6f4cc3 (patch) | |
tree | 495862fc4ad672d556179a06c3bee390a01e5e3e /src | |
parent | f482d62e66ae210c5ff796ae70ecf885eda4d6c9 (diff) | |
download | openbsd-60f1b5feddd8dd715d9076eae62f6a937b6f4cc3.tar.gz openbsd-60f1b5feddd8dd715d9076eae62f6a937b6f4cc3.tar.bz2 openbsd-60f1b5feddd8dd715d9076eae62f6a937b6f4cc3.zip |
New failure mode for AES-CCM: "very long nonce".
Diffstat (limited to 'src')
-rw-r--r-- | src/regress/lib/libcrypto/wycheproof/wycheproof.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regress/lib/libcrypto/wycheproof/wycheproof.go b/src/regress/lib/libcrypto/wycheproof/wycheproof.go index 6cc739e831..09e74aae8b 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.88 2019/11/27 10:09:29 tb Exp $ */ | 1 | /* $OpenBSD: wycheproof.go,v 1.89 2019/11/27 11:57:33 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> |
@@ -620,7 +620,7 @@ func checkAesAead(algorithm string, ctx *C.EVP_CIPHER_CTX, doEncrypt int, | |||
620 | ret = C.EVP_CIPHER_CTX_ctrl(ctx, ctrlSetIVLen, C.int(ivLen), nil) | 620 | ret = C.EVP_CIPHER_CTX_ctrl(ctx, ctrlSetIVLen, C.int(ivLen), nil) |
621 | if ret != 1 { | 621 | if ret != 1 { |
622 | if wt.Comment == "Nonce is too long" || wt.Comment == "Invalid nonce size" || | 622 | if wt.Comment == "Nonce is too long" || wt.Comment == "Invalid nonce size" || |
623 | wt.Comment == "0 size IV is not valid" { | 623 | wt.Comment == "0 size IV is not valid" || wt.Comment == "Very long nonce" { |
624 | return true | 624 | return true |
625 | } | 625 | } |
626 | fmt.Printf("FAIL: Test case %d (%q) [%v] %v - setting IV len to %d failed. got %d, want %v\n", | 626 | fmt.Printf("FAIL: Test case %d (%q) [%v] %v - setting IV len to %d failed. got %d, want %v\n", |