I'd like to derive two independent 256 bit keys for symmetric encryption from a user password. I'm using Argon2id as the password-based key derivation function. I'm planning to do the following:
- Generate a 256 bit random salt.
- Generate a 512 bit tag with Argon2id using the user's password and the salt.
- Take the first 256 bits of the 512 bit tag for the first key and the second 256 bits for the second key.
Does this produce two independent keys?
Note: this question answers in the positive for scrypt.