nrfxlib API 2.8.99
Loading...
Searching...
No Matches
cc3xx_psa_cipher.h File Reference
#include "psa/crypto.h"
#include "cc3xx_crypto_primitives.h"

Go to the source code of this file.

Functions

psa_status_t cc3xx_cipher_encrypt_setup (cc3xx_cipher_operation_t *operation, const psa_key_attributes_t *attributes, const uint8_t *key, size_t key_length, psa_algorithm_t alg)
 Setup a cipher encryption object by binding the key to the context of a multipart cipher operation.
 
psa_status_t cc3xx_cipher_decrypt_setup (cc3xx_cipher_operation_t *operation, const psa_key_attributes_t *attributes, const uint8_t *key, size_t key_length, psa_algorithm_t alg)
 Setup a cipher decryption object by binding the key to the context of a multipart cipher operation.
 
psa_status_t cc3xx_cipher_set_iv (cc3xx_cipher_operation_t *operation, const uint8_t *iv, size_t iv_length)
 Setup an IV on the operation object.
 
psa_status_t cc3xx_cipher_update (cc3xx_cipher_operation_t *operation, const uint8_t *input, size_t input_length, uint8_t *output, size_t output_size, size_t *output_length)
 Update the ciphering operation with new input to produce new output.
 
psa_status_t cc3xx_cipher_finish (cc3xx_cipher_operation_t *operation, uint8_t *output, size_t output_size, size_t *output_length)
 Finalize the multipart cipher operation by encrypting any buffered input from the previous call to update()
 
psa_status_t cc3xx_cipher_abort (cc3xx_cipher_operation_t *operation)
 Abort a multipart cipher operation.
 
psa_status_t cc3xx_cipher_encrypt (const psa_key_attributes_t *attributes, const uint8_t *key_buffer, size_t key_buffer_size, psa_algorithm_t alg, const uint8_t *iv, size_t iv_length, const uint8_t *input, size_t input_length, uint8_t *output, size_t output_size, size_t *output_length)
 Perform a one-shot encryption operation.
 
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.
 

Detailed Description

This file contains the declaration of the entry points associated to the cipher capability (single-part and multipart) as described by the PSA Cryptoprocessor Driver interface specification