Crypto: Add support for HMAC functionalities
This patch introduces support for the HMAC functionalities.
The HMAC construction procedure is as described by RFC-2104.
It also adds the related Regression test suite to validate
the API implementation.
Change-Id: I622d866b34ba7e3a3e61e1a28d43fb80e49fd8ec
Signed-off-by: Louis Mayencourt <louis.mayencourt@arm.com>
diff --git a/interface/include/tfm_crypto_defs.h b/interface/include/tfm_crypto_defs.h
index 391df84..ed85dc8 100644
--- a/interface/include/tfm_crypto_defs.h
+++ b/interface/include/tfm_crypto_defs.h
@@ -25,7 +25,13 @@
* \brief This defines the maximum supported key length in bytes
*
*/
-#define TFM_CRYPTO_MAX_KEY_LENGTH (16)
+#define TFM_CRYPTO_MAX_KEY_LENGTH (32)
+
+/**
+ * \brief This value is used to mark an handle as invalid.
+ *
+ */
+#define TFM_CRYPTO_INVALID_HANDLE (0xFFFFFFFF)
/**
* \brief Define miscellaneous literal constants that are used in the module