SSKDF with KMAC should return SIZE_MAX when EVP_KDF_CTX_get_kdf_size()
authorslontis <shane.lontis@oracle.com>
Tue, 20 Dec 2022 03:44:18 +0000 (13:44 +1000)
committerTomas Mraz <tomas@openssl.org>
Thu, 12 Jan 2023 11:13:47 +0000 (12:13 +0100)
commite8add4d379075a6daef2591edd830297d469b9f4
tree0c00fa3f52019c49ec1102ab9b65cbaabc142973
parent5adca946c3b6f779eb593bff6dbefe0a85238d84
SSKDF with KMAC should return SIZE_MAX when EVP_KDF_CTX_get_kdf_size()
is used.

Fixes #19934

The existing code was looking for the digest size, and then returned
zero.

The example code in EVP_KDF-SS.pod has been corrected to not use a
digest.

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19935)
doc/man7/EVP_KDF-SS.pod
providers/implementations/kdfs/sskdf.c
test/evp_kdf_test.c