3 #ifndef _CRYPTO_SCRYPT_H_ 4 #define _CRYPTO_SCRYPT_H_ 29 int libscrypt_scrypt(
const uint8_t *,
size_t,
const uint8_t *,
size_t, uint64_t,
30 uint32_t, uint32_t, uint8_t *,
size_t);
33 int libscrypt_mcf(uint32_t N, uint32_t r, uint32_t p,
const char *salt,
34 const char *hash,
char *mcf);
44 #define SCRYPT_HASH_LEN 64 47 #define SCRYPT_SAFE_N 30 50 #define SCRYPT_SALT_LEN 16 51 #define SCRYPT_MCF_LEN 125 52 #define SCRYPT_MCF_ID "$s1" 53 #define SCRYPT_N 16384 int libscrypt_scrypt(const uint8_t *, size_t, const uint8_t *, size_t, uint64_t, uint32_t, uint32_t, uint8_t *, size_t)
crypto_scrypt(passwd, passwdlen, salt, saltlen, N, r, p, buf, buflen): Compute scrypt(passwd[0 ...
int libscrypt_check(char *mcf, const char *password)
int libscrypt_mcf(uint32_t N, uint32_t r, uint32_t p, const char *salt, const char *hash, char *mcf)