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. 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(-) --