From 606d6de8f1272add597736f6f06900680e35847d Mon Sep 17 00:00:00 2001 From: tb Date: Mon, 20 Aug 2018 18:47:20 +0000 Subject: [PATCH] remove two redundant tests --- regress/lib/libcrypto/wycheproof/wycheproof.go | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/regress/lib/libcrypto/wycheproof/wycheproof.go b/regress/lib/libcrypto/wycheproof/wycheproof.go index d648ee5adbe..dc1a4f0b976 100644 --- a/regress/lib/libcrypto/wycheproof/wycheproof.go +++ b/regress/lib/libcrypto/wycheproof/wycheproof.go @@ -1,4 +1,4 @@ -/* $OpenBSD: wycheproof.go,v 1.8 2018/08/20 18:26:35 tb Exp $ */ +/* $OpenBSD: wycheproof.go,v 1.9 2018/08/20 18:47:20 tb Exp $ */ /* * Copyright (c) 2018 Joel Sing * @@ -271,15 +271,6 @@ func runChaCha20Poly1305Test(iv_len int, key_len int, tag_len int, wt *wycheproo sealedCt := sealed[0:msgLen] sealedTag := sealed[msgLen: maxOutLen] - if len(ct) != msgLen { - fmt.Printf("FAIL: Test case %d (%q) - msg length %d doesn't match ct length %d", wt.TCID, wt.Comment, msgLen, len(ct)) - return false - } - if len(tag) != tag_len { - fmt.Printf("FAIL: Test case %d (%q) tag length: got %d, want %d", wt.TCID, wt.Comment, len(tag), tag_len) - return false - } - success := false if (bytes.Equal(sealedCt, ct) && bytes.Equal(sealedTag, tag)) || wt.Result == "invalid" { success = true -- 2.20.1