From 732ecb869bee2a9000cb3e6996f516730c2398aa Mon Sep 17 00:00:00 2001 From: tb <> Date: Mon, 20 Aug 2018 18:47:20 +0000 Subject: remove two redundant tests --- src/regress/lib/libcrypto/wycheproof/wycheproof.go | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src') diff --git a/src/regress/lib/libcrypto/wycheproof/wycheproof.go b/src/regress/lib/libcrypto/wycheproof/wycheproof.go index d648ee5adb..dc1a4f0b97 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.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 -- cgit v1.2.3-55-g6feb