Remove spurious calls to MessageDigest.reset()
----------------------------------------------
Key: WSS-157
URL: https://issues.apache.org/jira/browse/WSS-157
Project: WSS4J
Issue Type: Improvement
Components: WSS4J Core
Affects Versions: 1.5.5
Reporter: Colm O hEigeartaigh
Assignee: Colm O hEigeartaigh
Priority: Minor
There are two instances of spurious calls to MessageDigest.reset() in the
codebase:
CryptoBase:418
UsernameToken:676
As MessageDigest.digest() resets the object state, it's not necessary to call
reset() in both these places. This is a fairly trivial change, but both calls
to reset are in loops.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]