Hi Gonglei,
On 2016/12/5 17:34, Gonglei (Arei) wrote:
>
..
>>
>> +#define AES_KEYSIZE_128 16
>> +#define AES_KEYSIZE_128_XTS 32
>> +#define AES_KEYSIZE_192 24
>> +#define AES_KEYSIZE_256 32
>> +#define AES_KEYSIZE_256_XTS 64
>> +
>> static int
>> -cryptodev_builtin_get_aes_algo(uint32_t key
> -Original Message-
> From: longpeng
> Sent: Monday, December 05, 2016 3:44 PM
> To: Gonglei (Arei)
> Cc: longpeng; qemu-devel@nongnu.org; Wubin (H); Zhoujian (jay, Euler)
> Subject: [PATCH for-2.9 1/2] cryptodev: fix the check of aes algorithm
>
> As the key length of xts(aes) is differ
As the key length of xts(aes) is different with other mode of aes,
so we should check specially in cryptodev_builtin_get_aes_algo, if
it is xts mode.
Signed-off-by: Longpeng(Mike)
---
backends/cryptodev-builtin.c | 47 +++-
1 file changed, 33 insertions(+)