Verify the signature of a message using a public key. Opcode: 25 (
|String||Name of the key to use for the operation|
|An asymmetric signature algorithm that separates the message and sign operations that is compatible with the type of key|
|Vector of bytes||The message whose signature is to be verified|
|Vector of bytes||Buffer containing the signature to verify|
key_namemust be the name of a public key or an asymmetric key pair. The key must allow the usage flag
No values are returned by this operation. If
Success is returned the signature is valid.
PsaErrorNotPermitted: The key does not have the
verify_hashflag, or it does not permit the requested algorithm.
PsaErrorInvalidSignature: The calculation was performed successfully, but the passed signature is not a valid signature.
This function will verify the signature of a message with a public key, using a hash-and-sign verification algorithm.
Copyright 2020 Contributors to the Parsec project.