Remove bogus length checks from EVP_aead_chacha20_poly1305()
authorjsing <jsing@openbsd.org>
Sat, 20 Aug 2022 18:51:09 +0000 (18:51 +0000)
committerjsing <jsing@openbsd.org>
Sat, 20 Aug 2022 18:51:09 +0000 (18:51 +0000)
commit1e3a1835d778be25de55a42d8feed6fb413acb7c
treee4731b830261f34538da1e812d9714a6b6e3dd34
parent250816c27a759e2a0efeb15a7500306b4dbc96be
Remove bogus length checks from EVP_aead_chacha20_poly1305()

The length checks for EVP_aead_chacha20_poly1305() seal/open were incorrect
and are no longer necessary (not to mention that the comment failed to
match the code). Remove these since the underlying ChaCha implementation
will now handle the same sized inputs at these functions can.

Issue flagged by and ok tb@
lib/libcrypto/evp/e_chacha20poly1305.c