aboutsummaryrefslogtreecommitdiff
path: root/include/odp/api/spec/crypto.h
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <deremin-solenikov@cavium.com>2019-04-15 21:22:01 +0300
committerPetri Savolainen <petri.savolainen@nokia.com>2019-05-24 13:53:51 +0300
commit27e79f97b32df3426f7bc13fd0b1b3bff2cbf835 (patch)
treebcc8fb28aa708867166aa3adb2e4ca3b70a1575a /include/odp/api/spec/crypto.h
parentbe29376373fe098955f4bb1d24f76157dae82065 (diff)
api: crypto: add AES-ECB support
Add support for AES in Electronic CodeBook mode. Signed-off-by: Dmitry Eremin-Solenikov <deremin-solenikov@cavium.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Diffstat (limited to 'include/odp/api/spec/crypto.h')
-rw-r--r--include/odp/api/spec/crypto.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/odp/api/spec/crypto.h b/include/odp/api/spec/crypto.h
index efcc9c454..a77295c6e 100644
--- a/include/odp/api/spec/crypto.h
+++ b/include/odp/api/spec/crypto.h
@@ -85,6 +85,9 @@ typedef enum {
/** AES with counter mode */
ODP_CIPHER_ALG_AES_CTR,
+ /** AES with electronic codebook */
+ ODP_CIPHER_ALG_AES_ECB,
+
/** AES-GCM
*
* AES in Galois/Counter Mode (GCM) algorithm. GCM provides both
@@ -314,6 +317,9 @@ typedef union odp_crypto_cipher_algos_t {
/** ODP_CIPHER_ALG_AES_CTR */
uint32_t aes_ctr : 1;
+ /** ODP_CIPHER_ALG_AES_ECB */
+ uint32_t aes_ecb : 1;
+
/** ODP_CIPHER_ALG_AES_GCM */
uint32_t aes_gcm : 1;