scrypt.c
scrypt PBKDF (Password-Based Key Derivation Function)
void scryptBlockMix(uint_t r, uint8_t *b, uint8_t *y)
scryptBlockMix algorithm
Definition: scrypt.c:239
error_t scrypt(const char_t *password, const uint8_t *salt, size_t saltLen, uint_t n, uint_t r, uint_t p, uint8_t *dk, size_t dkLen)
scrypt algorithm
Definition: scrypt.c:65
General definitions for cryptographic algorithms.
void scryptXorBlock(uint8_t *x, const uint8_t *a, const uint8_t *b, size_t n)
XOR operation.
Definition: scrypt.c:277
void salsa20ProcessBlock(const uint8_t *input, uint8_t *output, uint_t nr)
Salsa20 core function.
Definition: salsa20.c:58
error_t pbkdf2(const HashAlgo *hash, const uint8_t *p, size_t pLen, const uint8_t *s, size_t sLen, uint_t c, uint8_t *dk, size_t dkLen)
PBKDF2 key derivation function.
Definition: pbkdf.c:140
SHA-256 (Secure Hash Algorithm 256)
PBKDF (Password-Based Key Derivation Function)
void scryptRoMix(uint_t r, uint8_t *b, uint_t n, uint8_t *v, uint8_t *y)
scryptROMix algorithm
Definition: scrypt.c:194
Salsa20 encryption algorithm.