Process an authenticated encryption operation. Opcode: 17 (
|String||Name of the key to use for the operation|
|The AEAD algorithm to compute|
|Vector of unsigned bytes||Nonce or IV to use|
|Vector of unsigned bytes||Additional data that will be authenticated but not encrypted|
|Vector of unsigned bytes||Data that will be authenticated and encrypted|
key_namemust allow the usage flag
noncemust be appropriate for the selected algorithm.
|Vector of unsigned bytes||Buffer containing the authenticated and encrypted data|
- The additional data is not part of
ciphertext. For algorithms where the encrypted data and the authentication tag are defined as separate outputs, the authentication tag is appended to the encrypted data.
Specific response status codes
PsaErrorNotPermitted: The key does not have the
encryptflag, or it does not permit the requested algorithm.
keyis not compatible with
algis not supported.
Authenticates and encrypts the given data using the given AEAD algorithm.
Copyright 2020 Contributors to the Parsec project.