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

Commit

Permalink
Merge pull request #1 from badman80/master
Browse files Browse the repository at this point in the history
+ add "whirlpool" hash algorithm support
  • Loading branch information
vankxr authored Jun 12, 2019
2 parents 06d722d + 0455898 commit 0f3a41d
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 0f3a41d

Please sign in to comment.