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

Message ID 1517835608-15779-2-git-send-email-odpbot@yandex.ru
State New
Headers show
Series
  • [API-NEXT,v2,1/2] api: crypto: add SHA-384 enumerations
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 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: fa6d104f6031b9687ae5f60f87f5c2338ad9a83e
 ** Merge commit sha: acc5ce384b98953d3afe30bf866917657643f4e2
 **/
 include/odp/api/spec/crypto.h | 9 +++++++++
 1 file changed, 9 insertions(+)

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;