Calculate the MAC of a message and compare it to an expected value. Opcode: 23 (
|String||Name of the key to use for the operation|
|Mac algorithm to compute|
|Vector of bytes||Buffer containing the input message|
|Vector of bytes||Buffer containing the expected MAC value|
key_namemust allow the usage flag
No values are returned by this operation. If
Success is returned the MAC is valid.
PsaErrorNotPermitted: The key does not have the
verify_messageflag, or it does not permit the requested algorithm.
PsaErrorInvalidSignature: The MAC of the message was calculated successfully, but it differs from the expected value.
This function will calculate the message authentication code (MAC) of a message and compare it to an expected value.
Copyright 2020 Contributors to the Parsec project.