diff mbox series

[API-NEXT,v1,2/2] api: crypto: add AES-XCBC-MAC enumerations

Message ID 1517821209-11550-3-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [API-NEXT,v1,1/2] api: crypto: add SHA-384 enumerations | expand

Commit Message

Github ODP bot Feb. 5, 2018, 9 a.m. UTC
From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>


Following SonicWall proposal, add AES-XCBC-MAC algorithm enumerations.

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

---
/** Email created from pull request 450 (lumag:sonicwall-crypto)
 ** https://github.com/Linaro/odp/pull/450
 ** Patch: https://github.com/Linaro/odp/pull/450.patch
 ** Base sha: 7cc568a011f1623a343399f5cff6688baf834639
 ** Merge commit sha: b044e6cb29ddcf9ef195248a55fbf34b682fb019
 **/
 include/odp/api/spec/crypto.h | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/include/odp/api/spec/crypto.h b/include/odp/api/spec/crypto.h
index e27860a38..0ac1b9081 100644
--- a/include/odp/api/spec/crypto.h
+++ b/include/odp/api/spec/crypto.h
@@ -155,7 +155,7 @@  typedef enum {
 	 */
 	ODP_AUTH_ALG_SHA512_HMAC,
 
-	/** AES-GCM
+	/** AES in Galois/Counter Mode
 	 *
 	 *  AES in Galois/Counter Mode (GCM) algorithm. GCM provides both
 	 *  authentication and ciphering of data (authenticated encryption)
@@ -198,6 +198,13 @@  typedef enum {
 	 */
 	ODP_AUTH_ALG_AES_CMAC,
 
+	/** AES-XCBC-MAC
+	 *
+	 *  AES CBC MAC for arbitrary-length messages (XCBC-MAC).
+	 *
+	 */
+	ODP_AUTH_ALG_AES_XCBC_MAC,
+
 	/** ChaCha20-Poly1305 AEAD
 	 *
 	 *  ChaCha20 with Poly1305 provide both authentication and ciphering of
@@ -299,6 +306,9 @@  typedef union odp_crypto_auth_algos_t {
 		/** ODP_AUTH_ALG_AES_CMAC*/
 		uint32_t aes_cmac    : 1;
 
+		/** ODP_AUTH_ALG_AES_XCBC_MAC*/
+		uint32_t aes_xcbc_mac    : 1;
+
 		/** ODP_AUTH_ALG_CHACHA20_POLY1305 */
 		uint32_t chacha20_poly1305 : 1;