diff options
author | 2018-08-20 18:47:20 +0000 | |
---|---|---|
committer | 2018-08-20 18:47:20 +0000 | |
commit | 606d6de8f1272add597736f6f06900680e35847d (patch) | |
tree | 0cf888fe7e46a28e479dba4dbd57015d846aa288 | |
parent | Use sealed instead of out in a couple of places in preparation of (diff) | |
download | wireguard-openbsd-606d6de8f1272add597736f6f06900680e35847d.tar.xz wireguard-openbsd-606d6de8f1272add597736f6f06900680e35847d.zip |
remove two redundant tests
-rw-r--r-- | regress/lib/libcrypto/wycheproof/wycheproof.go | 11 |
1 files changed, 1 insertions, 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 <jsing@openbsd.org> * @@ -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 |