openssl/providers/implementations
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
..
asymciphers Store some FIPS global variables in the FIPS_GLOBAL structure 2021-04-16 14:27:28 +01:00
ciphers Do IV reset also for DES and 3DES implementations 2021-04-19 10:01:08 +02:00
digests Update copyright year 2021-04-08 13:04:41 +01:00
encode_decode Adapt our decoder implementations to the new way to indicate succes / failure 2021-04-21 10:53:03 +02:00
exchange Store some FIPS global variables in the FIPS_GLOBAL structure 2021-04-16 14:27:28 +01:00
include/prov PROV: Add OIDs we know to all provider applicable algorithms 2021-04-18 10:10:23 +02:00
kdfs Update copyright year 2021-04-08 13:04:41 +01:00
kem Store some FIPS global variables in the FIPS_GLOBAL structure 2021-04-16 14:27:28 +01:00
keymgmt Fixes related to separation of DH and DHX types 2021-04-26 19:52:11 +02:00
macs Fix KMAC bounds checks. 2021-05-05 17:39:27 +10:00
rands Update copyright year 2021-04-08 13:04:41 +01:00
signature sm2: Cleanup handling of DIGEST and DIGEST_SIZE parameters 2021-04-30 15:15:54 +02:00
storemgmt STORE: Use the 'expect' param to limit the amount of decoders used 2021-04-30 11:15:00 +02:00
build.info Add KEM (Key encapsulation mechanism) support to providers 2020-09-19 18:08:46 +10:00