From ba6f237e82388dd399855e0da8910f24d33407f7 Mon Sep 17 00:00:00 2001 From: tb <> Date: Tue, 21 Aug 2018 16:25:11 +0000 Subject: A failure to _seal() should be looked into, so turn this into an unconditional failure. --- src/regress/lib/libcrypto/wycheproof/wycheproof.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src') 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 @@ -/* $OpenBSD: wycheproof.go,v 1.12 2018/08/21 16:23:21 tb Exp $ */ +/* $OpenBSD: wycheproof.go,v 1.13 2018/08/21 16:25:11 tb Exp $ */ /* * Copyright (c) 2018 Joel Sing * @@ -236,12 +236,7 @@ func checkChaCha20Poly1305Seal(ctx *C.EVP_AEAD_CTX, iv []byte, ivLen int, aad [] 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)) if sealRet != 1 { - if wt.Result == "invalid" { - fmt.Printf("INFO: ") - } else { - fmt.Printf("FAIL: ") - } - fmt.Printf("Test case %d (%q) - EVP_AEAD_CTX_seal() = %d, want %v\n", wt.TCID, wt.Comment, int(sealRet), wt.Result) + fmt.Printf("FAIL: Test case %d (%q) - EVP_AEAD_CTX_seal() = %d, want %v\n", wt.TCID, wt.Comment, int(sealRet), wt.Result) return wt.Result == "invalid" } -- cgit v1.2.3-55-g6feb