13 #define strtok_r(str, val, saveptr) strtok((str), (val)) 42 tok = strtok_r(mcf,
"$", &saveptr);
46 tok = strtok_r(NULL,
"$", &saveptr);
51 params = (uint32_t)strtoul(tok, NULL, 16);
55 tok = strtok_r(NULL,
"$", &saveptr);
61 r = (params >> 8) & 0xff;
73 memset(salt, 0,
sizeof(salt));
79 (uint32_t)retval, N, r, p, hashbuf,
sizeof(hashbuf));
85 outbuf,
sizeof(outbuf));
90 tok = strtok_r(NULL,
"$", &saveptr);
int libscrypt_scrypt(const uint8_t *passwd, size_t passwdlen, const uint8_t *salt, size_t saltlen, uint64_t N, uint32_t r, uint32_t p, uint8_t *buf, size_t buflen)
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_b64_decode(char const *src, unsigned char *target, size_t targsize)
int slow_equals(const char *a, const char *b)
int libscrypt_b64_encode(unsigned char const *src, size_t srclength, char *target, size_t targsize)