diff mbox series

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

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

Commit Message

Github ODP bot Nov. 2, 2017, 5 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: b976868759b2e8ee4ff32d3749e1df5cbd844ef7
 **/
 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..4f8123bec 100644
--- a/include/odp/api/spec/crypto.h
+++ b/include/odp/api/spec/crypto.h
@@ -90,7 +90,10 @@  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),
+
+	/** AES with counter mode */
+	ODP_CIPHER_ALG_AES_CTR,
 
 } odp_cipher_alg_t;
 
@@ -169,6 +172,9 @@  typedef union odp_crypto_cipher_algos_t {
 		/** @deprecated  Use aes_gcm instead */
 		uint32_t ODP_DEPRECATE(aes128_gcm) : 1;
 
+		/** ODP_CIPHER_ALG_AES_CTR */
+		uint32_t aes_ctr     : 1;
+
 	} bit;
 
 	/** All bits of the bit field structure