Skip to content

Commit

Permalink
Fixing hashed ProtectedString equivalence method
Browse files Browse the repository at this point in the history
  • Loading branch information
semancik committed Apr 11, 2019
1 parent 7f7e3da commit f14732c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -690,7 +690,7 @@ public boolean areEquivalent(ProtectedStringType a, ProtectedStringType b) throw

private boolean areEquivalentHashed(ProtectedStringType a, ProtectedStringType b) {
// We cannot compare two hashes in any other way.
return Objects.equals(a.getHashedDataType(), a.getHashedDataType());
return Objects.equals(a.getHashedDataType(), b.getHashedDataType());
}

private boolean areEquivalentEncrypted(ProtectedStringType a, ProtectedStringType b) throws EncryptionException {
Expand Down

0 comments on commit f14732c

Please sign in to comment.