Fix aesni_xts compile error
authorShane Lontis <shane.lontis@oracle.com>
Sun, 15 Sep 2019 09:29:02 +0000 (19:29 +1000)
committerShane Lontis <shane.lontis@oracle.com>
Sun, 15 Sep 2019 09:29:02 +0000 (19:29 +1000)
Block copy bug..

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9900)

providers/common/ciphers/cipher_aes_xts_hw.c

index 2b06c5bb4b5223c484553cea7be89a3e2b65b0e8..9ac70c4fa8006156a27cff37538a9c2d82da7584 100644 (file)
@@ -84,7 +84,7 @@ static int cipher_hw_aesni_xts_initkey(PROV_CIPHER_CTX *ctx,
     PROV_AES_XTS_CTX *xctx = (PROV_AES_XTS_CTX *)ctx;
 
     XTS_SET_KEY_FN(aesni_set_encrypt_key, aesni_set_decrypt_key,
-                   aesni_xts_encrypt, aesni_decrypt,
+                   aesni_encrypt, aesni_decrypt,
                    aesni_xts_encrypt, aesni_xts_decrypt);
     return 1;
 }