Skip to content
This repository has been archived by the owner on Mar 12, 2019. It is now read-only.

Commit

Permalink
+ add "whirlpool" hash algorithm support (from OpenSSL)
Browse files Browse the repository at this point in the history
  • Loading branch information
badmansan committed Jun 11, 2019
1 parent 06d722d commit 0455898
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pbkdf2-check.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ int pbkdf2_check(char *password, char *hash)
evpmd = EVP_sha1();
} else if (strcmp(sha, "sha512") == 0) {
evpmd = EVP_sha512();
} else if (strcmp(sha, "whirlpool") == 0) {
evpmd = EVP_whirlpool();
}

rc = PKCS5_PBKDF2_HMAC(password, strlen(password),
Expand Down

0 comments on commit 0455898

Please sign in to comment.