|
|
|
|
|
by dlitz
4706 days ago
|
|
As an aside, you can use PBKDF2 with an iteration count of 1 to extend the output of a hash function to arbitrary lengths: output = HMAC-SHA256("passphrase", "salt" + x"00000001")
+ HMAC-SHA256("passphrase", "salt" + x"00000002")
...
This is useful when you want to derive keys from a (strong) master secret, but if you don't trust the underlying algorithm, all bets are off. |
|