On 07/25/2017 02:21 PM, Hook, Gary wrote:
The following series adds support for XS-AES on version 5 CCPs, both
128- and 256-bit, and enhances/clarifies/simplifies some crypto layer
code.
Herbert:
Oops. The last patch in this series depends upon a fix that was sent
just prior
to this. This series won't fully apply to cryptodev-2.6 without it, and thus
will have to wait until "Fix XTS-AES-128 support on v5 CCPs" is processed.
Sorry about that.
Changes since v2:
- Move a CCP v5 fix out of this patch series and submit independently
- In the unit-size check patch:
- Edit comments
- Remove unnecessary variable
- Delay a change (that belongs in the CCP v5 patch)
Changes since v1:
- rework the validation of the unit-size; move to a separate patch
- expand the key buffer to accommodate 256-bit keys
- use xts_check_key() in the crypto layer
---
Gary R Hook (3):
crypto: ccp - Add a call to xts_check_key()
crypto: ccp - Rework the unit-size check for XTS-AES
crypto: ccp - Add XTS-AES-256 support for CCP version 5
drivers/crypto/ccp/ccp-crypto-aes-xts.c | 92
+++++++++++++++++--------------
drivers/crypto/ccp/ccp-crypto.h | 2 -
drivers/crypto/ccp/ccp-ops.c | 2 +
3 files changed, 53 insertions(+), 43 deletions(-)
--