diff mbox series

[API-NEXT,v3,1/3] api: crypto: add AES-CTR declarations

Message ID 1510063212-30218-2-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [API-NEXT,v3,1/3] api: crypto: add AES-CTR declarations | expand

Commit Message

Github ODP bot Nov. 7, 2017, 2 p.m. UTC
From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>


Add declarations for AES-CTR cryptographic mode support.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>

---
/** Email created from pull request 271 (lumag:aes-ctr)
 ** https://github.com/Linaro/odp/pull/271
 ** Patch: https://github.com/Linaro/odp/pull/271.patch
 ** Base sha: d22c949cc466bf28de559855a1cb525740578137
 ** Merge commit sha: 17e6f7bd8c2da61bad27d90c4b530c0f5a80fb0d
 **/
 include/odp/api/spec/crypto.h | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/include/odp/api/spec/crypto.h b/include/odp/api/spec/crypto.h
index 7dcb71264..ed1fd6784 100644
--- a/include/odp/api/spec/crypto.h
+++ b/include/odp/api/spec/crypto.h
@@ -80,6 +80,9 @@  typedef enum {
 	/** AES with cipher block chaining */
 	ODP_CIPHER_ALG_AES_CBC,
 
+	/** AES with counter mode */
+	ODP_CIPHER_ALG_AES_CTR,
+
 	/** AES in Galois/Counter Mode
 	 *
 	 *  @note Must be paired with cipher ODP_AUTH_ALG_AES_GCM
@@ -90,7 +93,7 @@  typedef enum {
 	ODP_DEPRECATE(ODP_CIPHER_ALG_AES128_CBC),
 
 	/** @deprecated  Use ODP_CIPHER_ALG_AES_GCM instead */
-	ODP_DEPRECATE(ODP_CIPHER_ALG_AES128_GCM)
+	ODP_DEPRECATE(ODP_CIPHER_ALG_AES128_GCM),
 
 } odp_cipher_alg_t;
 
@@ -160,6 +163,9 @@  typedef union odp_crypto_cipher_algos_t {
 		/** ODP_CIPHER_ALG_AES_CBC */
 		uint32_t aes_cbc     : 1;
 
+		/** ODP_CIPHER_ALG_AES_CTR */
+		uint32_t aes_ctr     : 1;
+
 		/** ODP_CIPHER_ALG_AES_GCM */
 		uint32_t aes_gcm     : 1;