![]() |
nRF Connect SDK API 3.4.99
|
| psa_status_t cracen_sw_aes_ccm_decrypt | ( | const psa_key_attributes_t * | attributes, |
| const uint8_t * | key_buffer, | ||
| size_t | key_buffer_size, | ||
| psa_algorithm_t | alg, | ||
| const uint8_t * | nonce, | ||
| size_t | nonce_length, | ||
| const uint8_t * | additional_data, | ||
| size_t | additional_data_length, | ||
| const uint8_t * | ciphertext, | ||
| size_t | ciphertext_length, | ||
| uint8_t * | plaintext, | ||
| size_t | plaintext_size, | ||
| size_t * | plaintext_length ) |
#include <cracen_sw_aes_ccm.h>
Perform a single-part software AES-CCM decryption.
| [in] | attributes | Key attributes. |
| [in] | key_buffer | Key material. |
| [in] | key_buffer_size | Size of the key material. |
| [in] | alg | Algorithm to use. |
| [in] | nonce | Nonce value. |
| [in] | nonce_length | Length of the nonce. |
| [in] | additional_data | Additional authenticated data. |
| [in] | additional_data_length | Length of the additional data. |
| [in] | ciphertext | Input ciphertext and tag to decrypt. |
| [in] | ciphertext_length | Length of the ciphertext and tag. |
| [out] | plaintext | Output buffer for plaintext. |
| [in] | plaintext_size | Size of the plaintext buffer. |
| [out] | plaintext_length | Pointer to store the actual plaintext length. |
| PSA_SUCCESS | Decryption and verification completed successfully. |
| PSA_ERROR_INVALID_SIGNATURE | Authentication tag verification failed. |
| PSA_ERROR_BUFFER_TOO_SMALL | Output buffer too small. |
| PSA_ERROR_INVALID_ARGUMENT | Invalid nonce length, invalid key size, or ciphertext too short. |
| PSA_ERROR_NOT_SUPPORTED | Unsupported algorithm or key type. |