crypto/builtin: Merge qcrypto_cipher_aes_{ecb,xts}_{en,de}crypt
commit8ee47cddbe758ae521792f4b52ed3d86af993da6
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 28 Aug 2020 17:05:18 +0000 (28 10:05 -0700)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 10 Sep 2020 10:02:23 +0000 (10 11:02 +0100)
tree2d9b8caac1309e07f48bdfdb998cf7092dd30775
parent838e4631cb26618df8b2e3ed3d3b6801c4cd1424
crypto/builtin: Merge qcrypto_cipher_aes_{ecb,xts}_{en,de}crypt

There's no real reason we need two separate helper functions here.
Standardize on the function signature required for xts_encrypt.
Rename to do_aes_{en,de}crypt_ecb, since the helper does not
itself do anything with respect to xts.

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
crypto/cipher-builtin.c.inc