mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-03-10 09:20:04 +01:00
PBKDF2SHA512: remove redundant Mac.reset()
calls
Calls to `Mac.reset()` are not needed after `Mac.doFinal(input)`.
This commit is contained in:
parent
3023188541
commit
576adf229b
1 changed files with 0 additions and 2 deletions
|
@ -93,10 +93,8 @@ public class PBKDF2SHA512 {
|
|||
|
||||
U_XOR = mac.doFinal(baU);
|
||||
U_LAST = U_XOR;
|
||||
mac.reset();
|
||||
} else {
|
||||
byte[] baU = mac.doFinal(U_LAST);
|
||||
mac.reset();
|
||||
|
||||
for (int k = 0; k < U_XOR.length; k++) {
|
||||
U_XOR[k] = (byte) (U_XOR[k] ^ baU[k]);
|
||||
|
|
Loading…
Add table
Reference in a new issue