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

Message ID 1517835608-15779-3-git-send-email-odpbot@yandex.ru
State New
Headers show
Series
  • SHA-384 and AES-XCBC-MAC
Related show

Commit Message

Github ODP bot Feb. 5, 2018, 1 p.m.
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: fa6d104f6031b9687ae5f60f87f5c2338ad9a83e
 ** Merge commit sha: acc5ce384b98953d3afe30bf866917657643f4e2
 **/
 include/odp/api/spec/crypto.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

Patch

diff --git a/include/odp/api/spec/crypto.h b/include/odp/api/spec/crypto.h
index e27860a38..c59f66023 100644
--- a/include/odp/api/spec/crypto.h
+++ b/include/odp/api/spec/crypto.h
@@ -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;