Generate AES Key
Generate AES Key
function is used to generate a 256-bit AES encryption key and an initial vector from a passphrase.
This key can be used to encrypt and decrypt data using the AES encryption algorithm.
This function requires the following inputs:
- 1 The passphrase to generate the key and initial vector from.
- 2 Is the number of times the we hash the material.
The function returns the following:
- 3 The generated AES Key.
- 4 The generated initial vector.
danger
If N Rounds
is set to a high value, the generation of the AES key and initial vector may take a long time and have a
significant performance impact.