diff mbox series

[API-NEXT,2/4] api: crypto: add sha-1 and sha-512 enumerations

Message ID 1487776105-32713-3-git-send-email-petri.savolainen@linaro.org
State New
Headers show
Series Add sha-1 and sha-512 | expand

Commit Message

Petri Savolainen Feb. 22, 2017, 3:08 p.m. UTC
Added enumerations for HMAC-SHA-1 and HMAC-SHA-256 authentication
algorithms.

Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>

---
 include/odp/api/spec/crypto.h | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

-- 
2.8.1
diff mbox series

Patch

diff --git a/include/odp/api/spec/crypto.h b/include/odp/api/spec/crypto.h
index 9855bf9..d30f050 100644
--- a/include/odp/api/spec/crypto.h
+++ b/include/odp/api/spec/crypto.h
@@ -102,12 +102,24 @@  typedef enum {
 	 */
 	ODP_AUTH_ALG_MD5_HMAC,
 
+	/** HMAC-SHA-1
+	 *
+	 *  SHA-1 algorithm in HMAC mode
+	 */
+	ODP_AUTH_ALG_SHA1_HMAC,
+
 	/** HMAC-SHA-256
 	 *
 	 *  SHA-256 algorithm in HMAC mode
 	 */
 	ODP_AUTH_ALG_SHA256_HMAC,
 
+	/** HMAC-SHA-512
+	 *
+	 *  SHA-512 algorithm in HMAC mode
+	 */
+	ODP_AUTH_ALG_SHA512_HMAC,
+
 	/** AES in Galois/Counter Mode
 	 *
 	 *  @note Must be paired with cipher ODP_CIPHER_ALG_AES_GCM
@@ -171,9 +183,15 @@  typedef union odp_crypto_auth_algos_t {
 		/** ODP_AUTH_ALG_MD5_HMAC */
 		uint32_t md5_hmac    : 1;
 
+		/** ODP_AUTH_ALG_SHA1_HMAC */
+		uint32_t sha1_hmac : 1;
+
 		/** ODP_AUTH_ALG_SHA256_HMAC */
 		uint32_t sha256_hmac : 1;
 
+		/** ODP_AUTH_ALG_SHA512_HMAC */
+		uint32_t sha512_hmac : 1;
+
 		/** ODP_AUTH_ALG_AES_GCM */
 		uint32_t aes_gcm     : 1;