Skip to content

Commit

Permalink
Added prototype description
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Young committed May 14, 2015
1 parent 5babb78 commit 2e6a010
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bcrypt.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ int bcrypt_gensalt(int workfactor, char salt[BCRYPT_HASHSIZE]);
int bcrypt_hashpw(const char *passwd, const char salt[BCRYPT_HASHSIZE],
char hash[BCRYPT_HASHSIZE]);

/*
* This function expects a password and a hash to verify the password against.
*
* The return value is zero if the password verification failed and one
* otherwise.
*/
int bcrypt_verify(const char *passwd, const char hash[BCRYPT_HASHSIZE]);

/*
Expand Down

0 comments on commit 2e6a010

Please sign in to comment.