Skip to content

Commit

Permalink
Fix PFX verifyAuthSafes error for MacData
Browse files Browse the repository at this point in the history
  • Loading branch information
fmarco76 committed Apr 18, 2024
1 parent c13574d commit c5811fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/org/mozilla/jss/pkcs12/PFX.java
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,7 @@ public boolean verifyAuthSafes(Password password, StringBuffer reason)
MacData testMac = new MacData(password,
macData.getMacSalt().toByteArray(),
macData.getMacIterationCount().intValue(),
encodedAuthSafes,
macData.getMac().getDigestAlgorithm());
encodedAuthSafes);

if (testMac.getMac().equals(macDataMac)) {
return true;
Expand Down

0 comments on commit c5811fd

Please sign in to comment.