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

diff --git a/library/md2.c b/library/md2.c
index 061ebbe..3a0d1f5 100644
--- a/library/md2.c
+++ b/library/md2.c
@@ -261,6 +261,15 @@
 }
 
 /*
+ * MD2 HMAC context reset
+ */
+void md2_hmac_reset( md2_context *ctx )
+{
+    md2_starts( ctx );
+    md2_update( ctx, ctx->ipad, 64 );
+}
+
+/*
  * output = HMAC-MD2( hmac key, input buffer )
  */
 void md2_hmac( const unsigned char *key, int keylen,