Decrypt a short message with a private key. Opcode: 11 (
|String||Name of the key to use for the operation|
|An asymmetric encryption algorithm that is compatible with the type of key|
|Vector of bytes||Short message to decrypt|
|Vector of bytes||Salt to use during encryption, if supported by the algorithm|
key_namemust be the name of an RSA asymmetric key pair. The key must allow the usage flag
saltcan be provided if supported by the algorithm. If the algorithm does not support salt, pass an empty vector. If the algorithm supports optional salt, pass an empty vector to indicate no salt. For RSA PKCS#1 v1.5 encryption, no salt is supported.
|Vector of bytes||Buffer containing the decrypted message|
PsaErrorNotPermitted: The key does not have the
decryptflag, or it does not permit the requested algorithm.
This function will decrypt a short message with the private key of the provided key pair.
Copyright 2020 Contributors to the Parsec project.