4 ms·
SHA-256 (in PBKDF2) and Salsa20/8 core. Colin uses uint8_t* everywhere -- I think it's a standard practice in crypto code to use types that specify their size
by dchest 15y ago
SHA-256 (in PBKDF2) and Salsa20/8 core.
Colin uses uint8_t* everywhere -- I think it's a standard practice in crypto code to use types that specify their size and signness right in the name and avoid using char/unsigned char directly.
Plus, scrypt doesn't do any encoding -- it's user's responsibility to serialize raw bytes into the suitable format.