6.2.2. PBES2 Decryption Operation
6.2.2. PBES2 Decryption Operation
The decryption operation for PBES2 consists of the following steps, which decrypt a ciphertext C under a password P to recover a message M:
-
Obtain the salt S for the operation.
-
Obtain the iteration count c for the key derivation function.
-
Obtain the key length in octets, dkLen, for the derived key for the underlying encryption scheme.
-
Apply the selected key derivation function to the password P, the salt S, and the iteration count c to produce a derived key DK of length dkLen octets:
DK = KDF (P, S, c, dkLen) -
Decrypt the ciphertext C with the underlying encryption scheme under the derived key DK to recover a message M. If the decryption function outputs "decryption error", then output "decryption error" and stop.
-
Output the recovered message M.