Process an authenticated decryption operation. Opcode: 18 (
|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 has been authenticated but not encrypted|
|Vector of unsigned bytes||Data that has been authenticated and encrypted|
key_namemust allow the usage flag
noncemust be appropriate for the selected algorithm.
- For algorithms where the encrypted data and the authentication tag are defined as separate inputs,
ciphertextmust contain the encrypted data followed by the authentication tag.
|Vector of unsigned bytes||Buffer containing the decrypted data|
Specific response status codes
PsaErrorInvalidSignature: The ciphertext is not authentic.
PsaErrorNotPermitted: The key does not have the
decryptflag, or it does not permit the requested algorithm.
keyis not compatible with
algis not supported.
Authenticates and decrypts the given data using the given AEAD algorithm. Process an authenticated decryption operation.
Copyright 2020 Contributors to the Parsec project.