diff options
author | tb <> | 2018-08-20 18:47:20 +0000 |
---|---|---|
committer | tb <> | 2018-08-20 18:47:20 +0000 |
commit | 732ecb869bee2a9000cb3e6996f516730c2398aa (patch) | |
tree | 73e3476bb44138dda79a78734cc41275432975f3 /src | |
parent | 6fff7f3662ae18437e4218d828adeaca5c6e9423 (diff) | |
download | openbsd-732ecb869bee2a9000cb3e6996f516730c2398aa.tar.gz openbsd-732ecb869bee2a9000cb3e6996f516730c2398aa.tar.bz2 openbsd-732ecb869bee2a9000cb3e6996f516730c2398aa.zip |
remove two redundant tests
Diffstat (limited to 'src')
-rw-r--r-- | src/regress/lib/libcrypto/wycheproof/wycheproof.go | 11 |
1 files changed, 1 insertions, 10 deletions
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 @@ | |||
1 | /* $OpenBSD: wycheproof.go,v 1.8 2018/08/20 18:26:35 tb Exp $ */ | 1 | /* $OpenBSD: wycheproof.go,v 1.9 2018/08/20 18:47:20 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2018 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2018 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -271,15 +271,6 @@ func runChaCha20Poly1305Test(iv_len int, key_len int, tag_len int, wt *wycheproo | |||
271 | sealedCt := sealed[0:msgLen] | 271 | sealedCt := sealed[0:msgLen] |
272 | sealedTag := sealed[msgLen: maxOutLen] | 272 | sealedTag := sealed[msgLen: maxOutLen] |
273 | 273 | ||
274 | if len(ct) != msgLen { | ||
275 | fmt.Printf("FAIL: Test case %d (%q) - msg length %d doesn't match ct length %d", wt.TCID, wt.Comment, msgLen, len(ct)) | ||
276 | return false | ||
277 | } | ||
278 | if len(tag) != tag_len { | ||
279 | fmt.Printf("FAIL: Test case %d (%q) tag length: got %d, want %d", wt.TCID, wt.Comment, len(tag), tag_len) | ||
280 | return false | ||
281 | } | ||
282 | |||
283 | success := false | 274 | success := false |
284 | if (bytes.Equal(sealedCt, ct) && bytes.Equal(sealedTag, tag)) || wt.Result == "invalid" { | 275 | if (bytes.Equal(sealedCt, ct) && bytes.Equal(sealedTag, tag)) || wt.Result == "invalid" { |
285 | success = true | 276 | success = true |