![]() |
nrfxlib API 3.3.99
|
| psa_status_t cc3xx_cipher_decrypt | ( | const psa_key_attributes_t * | attributes, |
| const uint8_t * | key_buffer, | ||
| size_t | key_buffer_size, | ||
| psa_algorithm_t | alg, | ||
| const uint8_t * | input, | ||
| size_t | input_length, | ||
| uint8_t * | output, | ||
| size_t | output_size, | ||
| size_t * | output_length ) |
Perform a one-shot decryption operation.
| [in] | attributes | Key attributes |
| [in] | key_buffer | Buffer holding key material |
| [in] | key_buffer_size | Size in bytes of the key |
| [in] | alg | Algorithm to be used for which PSA_ALG_IS_CIPHER(alg) is true |
| [in] | input | Buffer holding the ciphertext |
| [in] | input_length | Size in bytes of the ciphertext |
| [out] | output | Buffer holding the ciphertext |
| [in] | output_size | Size in bytes of the output buffer |
| [out] | output_length | Size in bytes of the decrypted data |
| PSA_SUCCESS | on success. Error code from psa_status_t on failure |