101 reputation
1
bio website blakeminer.com
location
age
visits member for 1 year, 8 months
seen Jan 25 '13 at 14:58

Jan
24
comment Are there hash algorithms with variable length output?
thanks for your response. What did you mean by, "make sure to first remove the IV?" In Node.js, if you pass a "password" into the Cipher's constructor, a key and IV is derived using EVP_BytesToKey. This means that the IV won't be random, but isn't that the idea? If the IV was random, you wouldn't get consistent, predictable hash results?
Jan
23
comment Are there hash algorithms with variable length output?
This might be a silly question, but can you pass a zero-filled buffer as plain-text (of size b bits) to an AES block cipher (say CBC or whatever), use the SHA-256 hash to derive the key and initialization vector, and then take the first b bits of cipher-text to be used as your output? Is this just as secure? See gist.github.com/4600432 for Node.js implementation.
Jan
22
awarded  Supporter