Calculate the hash (digest) of a message and compare it with a reference value. Opcode: 16
|The hash algorithm to compute|
|Vector of unsigned bytes||Buffer containing message to hash|
|Vector of unsigned bytes||Buffer containing expected hash value|
No values are returned by this operation.
If no error occurs, the computed hash matches the expected hash value.
Specific response status codes
PsaErrorInvalidSignature: The hash of the message was calculated successfully, but it differs from the expected hash.
algis not supported.
PsaErrorInvalidArgument: The length of
hashdoes not match the hash size for
Calculates the hash of the given message, using the specified algorithm, and compares the result with an expected hash value.
Copyright 2020 Contributors to the Parsec project.