- Added reset functionality for HMAC context. Speed-up for some use-cases.
diff --git a/include/polarssl/sha4.h b/include/polarssl/sha4.h
index 3a14c91..eb35f04 100644
--- a/include/polarssl/sha4.h
+++ b/include/polarssl/sha4.h
@@ -127,6 +127,13 @@
void sha4_hmac_finish( sha4_context *ctx, unsigned char output[64] );
/**
+ * \brief SHA-512 HMAC context reset
+ *
+ * \param ctx HMAC context to be reset
+ */
+void sha4_hmac_reset( sha4_context *ctx );
+
+/**
* \brief Output = HMAC-SHA-512( hmac key, input buffer )
*
* \param key HMAC secret key