diff options
| author | tb <> | 2023-03-25 09:17:14 +0000 |
|---|---|---|
| committer | tb <> | 2023-03-25 09:17:14 +0000 |
| commit | 571b27dbeb6f5310b41f6d16907ae45d9d046fbe (patch) | |
| tree | 85d801e8fa0afa8ba1b493956aadbbfa88b7bef0 /src | |
| parent | 806c513f68418caec3d0369dddced9aebbd62cb7 (diff) | |
| download | openbsd-571b27dbeb6f5310b41f6d16907ae45d9d046fbe.tar.gz openbsd-571b27dbeb6f5310b41f6d16907ae45d9d046fbe.tar.bz2 openbsd-571b27dbeb6f5310b41f6d16907ae45d9d046fbe.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 { |
