When doing password-based encryption, is it OK to create one instance of PBKDF2 from the password, and then use it to create both the AES key and the MAC key? (Or should a new instance of PBKDF2 be created using a different salt or iteration count, for each?)
This answer seems to say this isn't a good idea. While this one seems to say it is. Am I misunderstanding one of them? (Or both.)
(And by the way, the first is marked as a duplicate of a question which deals with an initially strong key, while it itself deals with a simple passphrase.)
PBKDF2 supports the generation of arbitrary amounts of key data
. (I'm using Rfc2898DeriveBytes if it matters.) $\endgroup$well designed password based key derivation functions
)? $\endgroup$