PsaCipherDecrypt

Decrypt a short message with a symmetric cipher. Opcode: 21 (0x0015)

Parameters

NameTypeDescription
key_nameStringName of the key to use for the operation
algCipherA cipher algorithm that is compatible with the type of key
ciphertextVector of bytesIV followed by the ciphertext
  • key_name must allow the usage flag decrypt.
  • ciphertext must be the IV followed by the ciphertext.

Results

NameTypeDescription
plaintextVector of bytesBuffer containing decrypted message

Specific response status codes

  • PsaErrorNotPermitted: The key does not have the decrypt flag, or it does not permit the requested algorithm.

Description

This function will decrypt a short message using the provided initialisation vector (IV).

Contract

Protobuf

Copyright 2020 Contributors to the Parsec project.