diff options
Diffstat (limited to 'bcrypt/pybc_blf.h')
-rw-r--r-- | bcrypt/pybc_blf.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bcrypt/pybc_blf.h b/bcrypt/pybc_blf.h index e18f7b6..dd0ce46 100644 --- a/bcrypt/pybc_blf.h +++ b/bcrypt/pybc_blf.h @@ -34,13 +34,14 @@ #ifndef _PYBC_BLF_H_ #define _PYBC_BLF_H_ +#include <sys/types.h> #if defined(_WIN32) typedef unsigned __int8 u_int8_t; typedef unsigned __int16 u_int16_t; typedef unsigned __int32 u_int32_t; typedef unsigned __int64 u_int64_t; #elif __STDC_VERSION__ >= 199901L /* C99 or later */ -include <stdint.h> +#include <stdint.h> typedef uint8_t u_int8_t; typedef uint16_t u_int16_t; typedef uint32_t u_int32_t; @@ -86,4 +87,7 @@ int bcrypt_pbkdf(const char *pass, size_t passlen, const u_int8_t *salt, size_t saltlen, u_int8_t *key, size_t keylen, unsigned int rounds); +/* timingsafe_bcmp */ +int pybc_timingsafe_bcmp(const void *b1, const void *b2, size_t n); + #endif |