summaryrefslogtreecommitdiffstats
path: root/providers
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2022-06-12 06:03:50 +0200
committerRichard Levitte <levitte@openssl.org>2022-06-15 15:20:36 +0200
commitf68283c18eaf015e7500e59a6adf3dbb3ee74f59 (patch)
treea7d455cc52055c3ae0ba9e730b5f49c7472af70b /providers
parent46c1c2d7fa9153da4eb5e1aefd7b0139dc507c00 (diff)
test/evp_test.c: Check too big output buffer sizes in PKEYKDF tests
EVP_PKEY_derive() should be able to cope with a too big buffer for fixed size outputs. However, we don't test that. This change modifies the PKEYKDF tests to ask EVP_PKEY_derive() what the desired output buffer size is, and as long as the returned value isn't absurd (indicating that anything goes), the output buffer is made to be twice as big as what is expected. Tests #18517 Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/18533) (cherry picked from commit a0587aaeff7391b8cf4ee4c6a233d0f4dca7d62f)
Diffstat (limited to 'providers')
0 files changed, 0 insertions, 0 deletions