Hi Matan,

Block size is specified in the capability structure and is expected to be same 
for a particular algorithm.
And for AES-XTS it is 16 bytes only if I am not wrong.

As per my understanding, data unit is different from block size.
Data unit is the input data which may or may not be multiple of block size. 
There are different handling of data
Unit defined if it a multiple of block size or not. And I believe there is 
limitation for the max value of data unit
Which the driver can give error if it does not support that particular size.

Regards,
Akhil

From: Matan Azrad <ma...@nvidia.com>
Sent: Monday, January 18, 2021 8:19 PM
To: Declan Doherty <declan.dohe...@intel.com>; Akhil Goyal <akhil.go...@nxp.com>
Cc: dev@dpdk.org
Subject: Crypto API for AES-XTS cipher algorithm

Hi Declan, Akhil

We are going to implement mlx5 crypto PMD to support AES-XTS de\encrypt 
operations.

The algorithm defines block size >= 16Bytes (it is called also data-unit)which 
should be known for encryption\decryptions.

I didn't find this parameter    in the cypher xform.

How do you suggest to add it? maybe I'm missing something?

Matan

Reply via email to