Skip to content

Commit

Permalink
update pycabcrypt.h
Browse files Browse the repository at this point in the history
  • Loading branch information
fasiondog committed Nov 29, 2022
1 parent f0cd511 commit 20f17ed
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions hikyuu_cpp/hikyuu_server/bcrypt/pycabcrypt.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,20 @@ typedef uint64_t u_int64_t;
#include <stdint.h>
#endif

#define explicit_bzero(s,n) memset(s, 0, n)
#define explicit_bzero(s, n) memset(s, 0, n)
#define DEF_WEAK(f)

#if __cplusplus
extern "C" {
#endif

int bcrypt_hashpass(const char *key, const char *salt, char *encrypted, size_t encryptedlen);
int encode_base64(char *, const u_int8_t *, size_t);
int timingsafe_bcmp(const void *b1, const void *b2, size_t n);
int bcrypt_pbkdf(const char *pass, size_t passlen, const uint8_t *salt, size_t saltlen, uint8_t *key, size_t keylen, unsigned int rounds);
int bcrypt_pbkdf(const char *pass, size_t passlen, const uint8_t *salt, size_t saltlen,
uint8_t *key, size_t keylen, unsigned int rounds);

#if __cplusplus
}
#endif
#endif

0 comments on commit 20f17ed

Please sign in to comment.