A copy-paste error would have resulted in a modified msg in case ctLen == 0
or msgLen == 0. So obviously this is unreachable code.
-/* $OpenBSD: wycheproof.go,v 1.139 2023/03/11 14:27:37 jsing Exp $ */
+/* $OpenBSD: wycheproof.go,v 1.140 2023/03/25 09:17:14 tb Exp $ */
/*
* Copyright (c) 2018 Joel Sing <jsing@openbsd.org>
* Copyright (c) 2018,2019,2022 Theo Buehler <tb@openbsd.org>
if msgLen == 0 {
msg = append(msg, 0)
}
- if ctLen == 0 {
- msg = append(ct, 0)
- }
- if tagLen == 0 {
- msg = append(tag, 0)
- }
ctx := C.EVP_AEAD_CTX_new()
if ctx == nil {