Encrypt a short message with a symmetric cipher. Opcode: 20 (
|String||Name of the key to use for the operation|
|A cipher algorithm that is compatible with the type of key|
|Vector of bytes||Short message to encrypt|
key_namemust allow the usage flag
|Vector of bytes||Buffer containing the random IV followed by the encrypted message|
Specific response status codes
PsaErrorNotPermitted: The key does not have the
encryptflag, or it does not permit the requested algorithm.
This function will encrypt a short message with a random initialisation vector (IV).
Copyright 2020 Contributors to the Parsec project.