openssl/providers/implementations/macs
Tomas Mraz c9ddc5af51 Avoid undefined behavior of provided macs on EVP_MAC reinitialization
When the context is reinitialized, i.e. the same key should be used
we must properly reinitialize the underlying implementation.

However in POLY1305 case it does not make sense as this special MAC
should not reuse keys. We fail with this provided implementation
when reinitialization happens.

Fixes #17811

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18100)
2022-04-19 14:06:38 +02:00
..
blake2_mac_impl.c
blake2b_mac.c
blake2s_mac.c
build.info
cmac_prov.c Avoid undefined behavior of provided macs on EVP_MAC reinitialization 2022-04-19 14:06:38 +02:00
gmac_prov.c Avoid undefined behavior of provided macs on EVP_MAC reinitialization 2022-04-19 14:06:38 +02:00
hmac_prov.c Avoid undefined behavior of provided macs on EVP_MAC reinitialization 2022-04-19 14:06:38 +02:00
kmac_prov.c
poly1305_prov.c Avoid undefined behavior of provided macs on EVP_MAC reinitialization 2022-04-19 14:06:38 +02:00
siphash_prov.c Avoid undefined behavior of provided macs on EVP_MAC reinitialization 2022-04-19 14:06:38 +02:00