514c9da48b
Return error if the output tag buffer size doesn't match the tag size exactly. This prevents the caller from using that portion of the tag buffer that remains uninitialized after an otherwise succesfull call to CRYPTO_ccm128_tag. Bug found by OSS-Fuzz. Fix suggested by Kurt Roeckx. Signed-off-by: Guido Vranken <guidovranken@gmail.com> Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> Reviewed-by: Paul Dale <paul.dale@oracle.com> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/8810) |
||
---|---|---|
.. | ||
asm | ||
build.info | ||
cbc128.c | ||
ccm128.c | ||
cfb128.c | ||
ctr128.c | ||
cts128.c | ||
gcm128.c | ||
modes_lcl.h | ||
ocb128.c | ||
ofb128.c | ||
siv128.c | ||
wrap128.c | ||
xts128.c |