PsaCipherDecrypt
Decrypt a short message with a symmetric cipher. Opcode: 21 (0x0015
)
Parameters
Name | Type | Description |
---|---|---|
key_name | String | Name of the key to use for the operation |
alg | Cipher | A cipher algorithm that is compatible with the type of key |
ciphertext | Vector of bytes | IV followed by the ciphertext |
key_name
must allow the usage flagdecrypt
.ciphertext
must be the IV followed by the ciphertext.
Results
Name | Type | Description |
---|---|---|
plaintext | Vector of bytes | Buffer containing decrypted message |
Specific response status codes
PsaErrorNotPermitted
: The key does not have thedecrypt
flag, or it does not permit the requested algorithm.
Description
This function will decrypt a short message using the provided initialisation vector (IV).
Contract
Copyright 2020 Contributors to the Parsec project.