Sign a message with a private key. Opcode: 24 (
|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 to sign|
key_namemust be the name of an asymmetric key pair. The key must allow the usage flag
|Vector of bytes||Buffer containing the signature|
PsaErrorNotPermitted: The key does not have the
sign_hashflag, or it does not permit the requested algorithm.
This function will sign a message with a private key. For hash-and-sign algorithms, this includes the hashing step.
Copyright 2020 Contributors to the Parsec project.