openssl/providers/common
Shane Lontis 2b05439f84 Fix KMAC bounds checks.
Setting an output length higher than 8191 was causing a buffer overflow.
This was reported by Acumen (FIPS lab).

The max output size has increased to ~2M and it now checks this during set_parameters.

The encoder related functions now pass in the maximum size of the output buffer so they
can correctly check their size. kmac_bytepad_encode_key() calls bytepad twice in
order to calculate and check the length before encoding.

Note that right_encode() is currently only used in one place but this
may change if other algorithms are supported (such as TupleHash).

Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15106)
2021-05-05 17:39:27 +10:00
..
der Add OID for mdc2WithRSASignature and remove related TODO 3.0 2021-04-15 18:09:37 +02:00
include/prov Store some FIPS global variables in the FIPS_GLOBAL structure 2021-04-16 14:27:28 +01:00
bio_prov.c Fix misc external ossl_ symbols. 2021-03-18 17:52:37 +10:00
build.info
capabilities.c Add ossl_provider symbols 2021-03-18 17:52:38 +10:00
digest_to_nid.c Update copyright year 2021-03-11 13:27:36 +00:00
provider_ctx.c
provider_err.c Fix KMAC bounds checks. 2021-05-05 17:39:27 +10:00
provider_seeding.c Update copyright year 2021-04-22 14:38:44 +01:00
provider_util.c prov: update provider util to be less agressive about changing things unnecessarily 2021-02-28 17:25:49 +10:00
securitycheck_default.c Store some FIPS global variables in the FIPS_GLOBAL structure 2021-04-16 14:27:28 +01:00
securitycheck_fips.c Store some FIPS global variables in the FIPS_GLOBAL structure 2021-04-16 14:27:28 +01:00
securitycheck.c Store some FIPS global variables in the FIPS_GLOBAL structure 2021-04-16 14:27:28 +01:00