]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
fscrypt-crypt-util: fix XTS self-test with latest OpenSSL
authorEric Biggers <ebiggers@google.com>
Sun, 19 Mar 2023 19:38:47 +0000 (12:38 -0700)
committerZorro Lang <zlang@kernel.org>
Sat, 25 Mar 2023 04:44:13 +0000 (12:44 +0800)
commit5d6a0f38d175a21cc50a0f8c695343f6dada02a7
tree6d51718dbab92cc9201f2388a4cb362cd90815ed
parent8727e8cb78107bac174f51bb2edc45793f8cb08d
fscrypt-crypt-util: fix XTS self-test with latest OpenSSL

In OpenSSL 3.0, XTS encryption fails if the message is zero-length.
Therefore, update test_aes_256_xts() 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