added missing key update to mac reset().
@@ -117,6 +117,10 @@ public void reset()
{
inputLength = 0;
engine.reset();
+ if (paddedKey != null)
+ {
+ engine.update(paddedKey, 0, paddedKey.length);
+ }
}
private void pad()
