]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
fscrypt-crypt-util: fix HKDF self-test with latest OpenSSL
authorEric Biggers <ebiggers@google.com>
Sun, 19 Mar 2023 19:38:45 +0000 (12:38 -0700)
committerZorro Lang <zlang@kernel.org>
Sat, 25 Mar 2023 04:42:23 +0000 (12:42 +0800)
commit593fcfbb573ab40a1620e4ba4ce7011fd0eaefcb
tree8cb903b8c04a0d1ddf72a54b522b64877fd82b97
parent2a280de522cfe8a7209f5030a57e56d9f7d9cf5a
fscrypt-crypt-util: fix HKDF self-test with latest OpenSSL

In OpenSSL 3.0, EVP_PKEY_derive() fails if the output is zero-length.
Therefore, update test_hkdf_sha512() to not test this case.

This only affects the algorithm self-tests within fscrypt-crypt-util,
which are not compiled by default.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
src/fscrypt-crypt-util.c