|
@@ -632,7 +632,7 @@ qcrypto_nettle_cipher_encrypt(QCryptoCipher *cipher,
|
|
case QCRYPTO_CIPHER_MODE_XTS:
|
|
case QCRYPTO_CIPHER_MODE_XTS:
|
|
#ifdef CONFIG_QEMU_PRIVATE_XTS
|
|
#ifdef CONFIG_QEMU_PRIVATE_XTS
|
|
xts_encrypt(ctx->ctx, ctx->ctx_tweak,
|
|
xts_encrypt(ctx->ctx, ctx->ctx_tweak,
|
|
- ctx->alg_encrypt_wrapper, ctx->alg_encrypt_wrapper,
|
|
|
|
|
|
+ ctx->alg_encrypt_wrapper, ctx->alg_decrypt_wrapper,
|
|
ctx->iv, len, out, in);
|
|
ctx->iv, len, out, in);
|
|
#else
|
|
#else
|
|
xts_encrypt_message(ctx->ctx, ctx->ctx_tweak,
|
|
xts_encrypt_message(ctx->ctx, ctx->ctx_tweak,
|