diff mbox series

[API-NEXT,v1,1/2] api: crypto: add SHA-384 enumerations

Message ID 1517821209-11550-2-git-send-email-odpbot@yandex.ru
State Superseded
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 SHA-384 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 | 9 +++++++++
 1 file changed, 9 insertions(+)
diff mbox series

Patch

diff --git a/include/odp/api/spec/crypto.h b/include/odp/api/spec/crypto.h
index b7ab53620..e27860a38 100644
--- a/include/odp/api/spec/crypto.h
+++ b/include/odp/api/spec/crypto.h
@@ -143,6 +143,12 @@  typedef enum {
 	 */
 	ODP_AUTH_ALG_SHA256_HMAC,
 
+	 /** HMAC-SHA-384
+	 *
+	 *  SHA-384 algorithm in HMAC mode
+	 */
+	ODP_AUTH_ALG_SHA384_HMAC,
+
 	/** HMAC-SHA-512
 	 *
 	 *  SHA-512 algorithm in HMAC mode
@@ -275,6 +281,9 @@  typedef union odp_crypto_auth_algos_t {
 		/** ODP_AUTH_ALG_SHA256_HMAC */
 		uint32_t sha256_hmac : 1;
 
+		/** ODP_AUTH_ALG_SHA384_HMAC */
+		uint32_t sha384_hmac : 1;
+
 		/** ODP_AUTH_ALG_SHA512_HMAC */
 		uint32_t sha512_hmac : 1;