diff options
author | tb <> | 2023-03-25 09:17:14 +0000 |
---|---|---|
committer | tb <> | 2023-03-25 09:17:14 +0000 |
commit | 906811ced6227c633c80e54fb590c91bbe7774a3 (patch) | |
tree | 85d801e8fa0afa8ba1b493956aadbbfa88b7bef0 /src | |
parent | d716523c1ff8d2c6fc1ebbc7fdbd6c21136ae235 (diff) | |
download | openbsd-906811ced6227c633c80e54fb590c91bbe7774a3.tar.gz openbsd-906811ced6227c633c80e54fb590c91bbe7774a3.tar.bz2 openbsd-906811ced6227c633c80e54fb590c91bbe7774a3.zip |
Remove dead/unreachable code
A copy-paste error would have resulted in a modified msg in case ctLen == 0
or msgLen == 0. So obviously this is unreachable code.
Diffstat (limited to 'src')
-rw-r--r-- | src/regress/lib/libcrypto/wycheproof/wycheproof.go | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/regress/lib/libcrypto/wycheproof/wycheproof.go b/src/regress/lib/libcrypto/wycheproof/wycheproof.go index 7183e1bbe9..1213f5ee0e 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.139 2023/03/11 14:27:37 jsing Exp $ */ | 1 | /* $OpenBSD: wycheproof.go,v 1.140 2023/03/25 09:17:14 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2018 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2018 Joel Sing <jsing@openbsd.org> |
4 | * Copyright (c) 2018,2019,2022 Theo Buehler <tb@openbsd.org> | 4 | * Copyright (c) 2018,2019,2022 Theo Buehler <tb@openbsd.org> |
@@ -1254,12 +1254,6 @@ func runChaCha20Poly1305Test(algorithm string, wt *wycheproofTestAead) bool { | |||
1254 | if msgLen == 0 { | 1254 | if msgLen == 0 { |
1255 | msg = append(msg, 0) | 1255 | msg = append(msg, 0) |
1256 | } | 1256 | } |
1257 | if ctLen == 0 { | ||
1258 | msg = append(ct, 0) | ||
1259 | } | ||
1260 | if tagLen == 0 { | ||
1261 | msg = append(tag, 0) | ||
1262 | } | ||
1263 | 1257 | ||
1264 | ctx := C.EVP_AEAD_CTX_new() | 1258 | ctx := C.EVP_AEAD_CTX_new() |
1265 | if ctx == nil { | 1259 | if ctx == nil { |