- Added reset functionality for HMAC context. Speed-up for some use-cases.

diff --git a/library/sha1.c b/library/sha1.c
index f811131..7f8ec63 100644
--- a/library/sha1.c
+++ b/library/sha1.c
@@ -411,6 +411,15 @@
 }
 
 /*
+ * SHA1 HMAC context reset
+ */
+void sha1_hmac_reset( sha1_context *ctx )
+{
+    sha1_starts( ctx );
+    sha1_update( ctx, ctx->ipad, 64 );
+}
+
+/*
  * output = HMAC-SHA-1( hmac key, input buffer )
  */
 void sha1_hmac( const unsigned char *key, int keylen,