7.1.2. PBMAC1 Verification Operation
7.1.2. PBMAC1 Verification Operation
The MAC verification operation for PBMAC1 consists of the following steps, which process a message M under a password P to verify a message authentication code T:
-
Obtain the salt S and the iteration count c.
-
Obtain the key length in octets, dkLen, for the derived key for the underlying message authentication 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) -
Process the message M with the underlying message authentication scheme under the derived key DK to verify the message authentication code T.
-
If the message authentication code verifies, output "correct"; else output "incorrect".