summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2018-08-21 16:25:11 +0000
committertb <>2018-08-21 16:25:11 +0000
commitba6f237e82388dd399855e0da8910f24d33407f7 (patch)
tree8b70584dfe4a76171f3d0cfaecbcb99549457c33 /src
parent18ad03cd4460efbef5a05227735fcf82c86cc3a7 (diff)
downloadopenbsd-ba6f237e82388dd399855e0da8910f24d33407f7.tar.gz
openbsd-ba6f237e82388dd399855e0da8910f24d33407f7.tar.bz2
openbsd-ba6f237e82388dd399855e0da8910f24d33407f7.zip
A failure to _seal() should be looked into, so turn this into an
unconditional failure.
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libcrypto/wycheproof/wycheproof.go9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/regress/lib/libcrypto/wycheproof/wycheproof.go b/src/regress/lib/libcrypto/wycheproof/wycheproof.go
index a981cb975e..04e675fa34 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.12 2018/08/21 16:23:21 tb Exp $ */ 1/* $OpenBSD: wycheproof.go,v 1.13 2018/08/21 16:25:11 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2018 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2018 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -236,12 +236,7 @@ func checkChaCha20Poly1305Seal(ctx *C.EVP_AEAD_CTX, iv []byte, ivLen int, aad []
236 sealRet := C.EVP_AEAD_CTX_seal(ctx, (*C.uint8_t)(unsafe.Pointer(&sealed[0])), (*C.size_t)(unsafe.Pointer(&sealedLen)), C.size_t(maxOutLen), (*C.uint8_t)(unsafe.Pointer(&iv[0])), C.size_t(ivLen), (*C.uint8_t)(unsafe.Pointer(&msg[0])), C.size_t(msgLen), (*C.uint8_t)(unsafe.Pointer(&aad[0])), C.size_t(aadLen)) 236 sealRet := C.EVP_AEAD_CTX_seal(ctx, (*C.uint8_t)(unsafe.Pointer(&sealed[0])), (*C.size_t)(unsafe.Pointer(&sealedLen)), C.size_t(maxOutLen), (*C.uint8_t)(unsafe.Pointer(&iv[0])), C.size_t(ivLen), (*C.uint8_t)(unsafe.Pointer(&msg[0])), C.size_t(msgLen), (*C.uint8_t)(unsafe.Pointer(&aad[0])), C.size_t(aadLen))
237 237
238 if sealRet != 1 { 238 if sealRet != 1 {
239 if wt.Result == "invalid" { 239 fmt.Printf("FAIL: Test case %d (%q) - EVP_AEAD_CTX_seal() = %d, want %v\n", wt.TCID, wt.Comment, int(sealRet), wt.Result)
240 fmt.Printf("INFO: ")
241 } else {
242 fmt.Printf("FAIL: ")
243 }
244 fmt.Printf("Test case %d (%q) - EVP_AEAD_CTX_seal() = %d, want %v\n", wt.TCID, wt.Comment, int(sealRet), wt.Result)
245 return wt.Result == "invalid" 240 return wt.Result == "invalid"
246 } 241 }
247 242