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

diff --git a/library/sha2.c b/library/sha2.c
index 87f02ea..8f920ce 100644
--- a/library/sha2.c
+++ b/library/sha2.c
@@ -418,6 +418,15 @@
 }
 
 /*
+ * SHA-256 HMAC context reset
+ */
+void sha2_hmac_reset( sha2_context *ctx )
+{
+    sha2_starts( ctx, ctx->is224 );
+    sha2_update( ctx, ctx->ipad, 64 );
+}
+
+/*
  * output = HMAC-SHA-256( hmac key, input buffer )
  */
 void sha2_hmac( const unsigned char *key, int keylen,