diff options
author | Dmitry Eremin-Solenikov <deremin-solenikov@cavium.com> | 2019-04-16 00:13:41 +0300 |
---|---|---|
committer | Petri Savolainen <petri.savolainen@nokia.com> | 2019-05-24 13:53:51 +0300 |
commit | 20944653d0d8640cdc3a7beca6855bc0213b814a (patch) | |
tree | a584503ece21ba5c02ea723647e40a1a4a03cab2 | |
parent | 8dd36d8d001ae74dd4758b3abe45f49bf752a5f7 (diff) |
api: crypto: add AES-XTS support
Add support for AES in XEX-based tweaked-codebook mode with ciphertext
stealing mode.
Signed-off-by: Dmitry Eremin-Solenikov <deremin-solenikov@cavium.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
-rw-r--r-- | include/odp/api/spec/crypto.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/odp/api/spec/crypto.h b/include/odp/api/spec/crypto.h index 295ad6bfb..f7a1cae08 100644 --- a/include/odp/api/spec/crypto.h +++ b/include/odp/api/spec/crypto.h @@ -91,6 +91,10 @@ typedef enum { /** AES with 128-bit cipher feedback */ ODP_CIPHER_ALG_AES_CFB128, + /** AES with XEX-based tweaked-codebook mode with ciphertext stealing + * (XTS) */ + ODP_CIPHER_ALG_AES_XTS, + /** AES-GCM * * AES in Galois/Counter Mode (GCM) algorithm. GCM provides both @@ -326,6 +330,9 @@ typedef union odp_crypto_cipher_algos_t { /** ODP_CIPHER_ALG_AES_CFB128 */ uint32_t aes_cfb128 : 1; + /** ODP_CIPHER_ALG_AES_XTS */ + uint32_t aes_xts : 1; + /** ODP_CIPHER_ALG_AES_GCM */ uint32_t aes_gcm : 1; |