nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
CRACEN Software ChaCha20-Poly1305

Software implementation of ChaCha20-Poly1305 AEAD. More...

Functions

psa_status_t cracen_sw_chacha20_poly1305_encrypt_setup (cracen_aead_operation_t *operation, const psa_key_attributes_t *attributes, const uint8_t *key_buffer, size_t key_buffer_size, psa_algorithm_t alg)
 Set up the software ChaCha20-Poly1305 encryption operation.
 
psa_status_t cracen_sw_chacha20_poly1305_decrypt_setup (cracen_aead_operation_t *operation, const psa_key_attributes_t *attributes, const uint8_t *key_buffer, size_t key_buffer_size, psa_algorithm_t alg)
 Set up the software ChaCha20-Poly1305 decryption operation.
 
psa_status_t cracen_sw_chacha20_poly1305_set_nonce (cracen_aead_operation_t *operation, const uint8_t *nonce, size_t nonce_length)
 Set nonce for the software ChaCha20-Poly1305 operation.
 
psa_status_t cracen_sw_chacha20_poly1305_set_lengths (cracen_aead_operation_t *operation, size_t ad_length, size_t plaintext_length)
 Set lengths for the software ChaCha20-Poly1305 operation.
 
psa_status_t cracen_sw_chacha20_poly1305_update_ad (cracen_aead_operation_t *operation, const uint8_t *input, size_t input_length)
 Update the software ChaCha20-Poly1305 operation with additional data.
 
psa_status_t cracen_sw_chacha20_poly1305_update (cracen_aead_operation_t *operation, const uint8_t *input, size_t input_length, uint8_t *output, size_t output_size, size_t *output_length)
 Update the software ChaCha20-Poly1305 operation with new data.
 
psa_status_t cracen_sw_chacha20_poly1305_finish (cracen_aead_operation_t *operation, uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length, uint8_t *tag, size_t tag_size, size_t *tag_length)
 Finish the software ChaCha20-Poly1305 encryption operation.
 
psa_status_t cracen_sw_chacha20_poly1305_verify (cracen_aead_operation_t *operation, uint8_t *plaintext, size_t plaintext_size, size_t *plaintext_length, const uint8_t *tag, size_t tag_length)
 Verify the tag and finish the software ChaCha20-Poly1305 decryption operation.
 
psa_status_t cracen_sw_chacha20_poly1305_abort (cracen_aead_operation_t *operation)
 Abort the software ChaCha20-Poly1305 operation.
 

Detailed Description

Software implementation of ChaCha20-Poly1305 AEAD.

Software implementation of the ChaCha20-Poly1305 AEAD.

This module provides a software-based implementation of ChaCha20-Poly1305 for use as a workaround for hardware limitations with multipart operations.

Note
These APIs are for internal use only. Applications must use the PSA Crypto API (psa_* functions) instead of calling these functions directly.