associated text fix for reset
@@ -107,7 +107,6 @@ public void init(boolean forEncryption, CipherParameters params)
{
processAADBytes(initialAssociatedText, 0, initialAssociatedText.length);
}
-
}
else if (params instanceof ParametersWithIV)
{
@@ -311,6 +310,11 @@ public void reset()
data.reset();
associatedText.reset();
+
+ if (initialAssociatedText != null)
+ {
+ processAADBytes(initialAssociatedText, 0, initialAssociatedText.length);
+ }
}
