scrypt.crypto_scrypt

Undocumented in source.

Members

Aliases

uint32_t
alias uint32_t = uint
Undocumented in source.
uint64_t
alias uint64_t = ulong
Undocumented in source.
uint8_t
alias uint8_t = ubyte
Undocumented in source.

Functions

crypto_scrypt
int crypto_scrypt(uint8_t* , size_t , 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 .. passwdlen - 1], salt[0 .. saltlen - 1], N, r, p, buflen) and write the result into buf. The parameters r, p, and buflen must satisfy r * p < 2^30 and buflen <= (2^32 - 1) * 32. The parameter N must be a power of 2 greater than 1.

Meta