- Added reset functionality for HMAC context. Speed-up for some use-cases.
diff --git a/include/polarssl/sha2.h b/include/polarssl/sha2.h
index 8b65e9f..d9f3855 100644
--- a/include/polarssl/sha2.h
+++ b/include/polarssl/sha2.h
@@ -119,6 +119,13 @@
void sha2_hmac_finish( sha2_context *ctx, unsigned char output[32] );
/**
+ * \brief SHA-256 HMAC context reset
+ *
+ * \param ctx HMAC context to be reset
+ */
+void sha2_hmac_reset( sha2_context *ctx );
+
+/**
* \brief Output = HMAC-SHA-256( hmac key, input buffer )
*
* \param key HMAC secret key