Does scrypt use a hash algorithm?
-
22-06-2021 - |
Question
Does the scrypt program use a hashing algorithm behind the scenes?
What's the output size of scrypt (I mean the underlying algorithm, is that 4096 bits)?
La solution
The output size is whatever you ask PBKDF2 for; IIRC this is limited to something on the order of 4 GB.
Autres conseils
Yes, it does. In fact, it uses two. If you look at the scrypt paper, you'll see that it uses
SHA-256 in the PBKDF2 construction for initial key expansion and for the final output generation, and
the Salsa 20/8 core by D. J. Bernstein as part of the actual memory-hard mixing function SMix.
(The Salsa 20/8 core is not actually a cryptographic hash function in the same sense as, say, SHA-256, but merely a part of one, but I've included it for completeness.)