Commit eaa57403 authored by Longpeng(Mike)'s avatar Longpeng(Mike) Committed by Gonglei

cryptodev: add xts(aes) support

This patch add xts(aes) support.
Signed-off-by: 's avatarLongpeng(Mike) <longpeng2@huawei.com>
Reviewed-by: 's avatarGonglei <arei.gonglei@huawei.com>
Signed-off-by: 's avatarGonglei <arei.gonglei@huawei.com>
parent 465f2fed
......@@ -197,6 +197,14 @@ static int cryptodev_builtin_create_cipher_session(
return -1;
}
break;
case VIRTIO_CRYPTO_CIPHER_AES_XTS:
mode = QCRYPTO_CIPHER_MODE_XTS;
algo = cryptodev_builtin_get_aes_algo(sess_info->key_len,
mode, errp);
if (algo < 0) {
return -1;
}
break;
case VIRTIO_CRYPTO_CIPHER_DES_ECB:
mode = QCRYPTO_CIPHER_MODE_ECB;
algo = QCRYPTO_CIPHER_ALG_DES_RFB;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment