- Added reset functionality for HMAC context. Speed-up for some use-cases.
diff --git a/include/polarssl/sha1.h b/include/polarssl/sha1.h
index ec08450..060f720 100644
--- a/include/polarssl/sha1.h
+++ b/include/polarssl/sha1.h
@@ -112,6 +112,13 @@
void sha1_hmac_finish( sha1_context *ctx, unsigned char output[20] );
/**
+ * \brief SHA-1 HMAC context reset
+ *
+ * \param ctx HMAC context to be reset
+ */
+void sha1_hmac_reset( sha1_context *ctx );
+
+/**
* \brief Output = HMAC-SHA-1( hmac key, input buffer )
*
* \param key HMAC secret key