nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
cracen_sw_common.h File Reference
#include <stddef.h>
#include <stdint.h>
#include <psa/crypto.h>
#include <sxsymcrypt/keyref.h>

Go to the source code of this file.

Functions

psa_status_t cracen_sw_aes_ecb_encrypt (struct sxblkcipher *blkciph, const struct sxkeyref *key, const uint8_t *input, size_t input_length, uint8_t *output, size_t output_size, size_t *output_length)
 Encrypt a single AES block using ECB mode.
 
psa_status_t cracen_sw_aes_ecb_decrypt (struct sxblkcipher *blkciph, const struct sxkeyref *key, const uint8_t *input, size_t input_length, uint8_t *output, size_t output_size, size_t *output_length)
 Decrypt a single AES block using ECB mode.
 
psa_status_t cracen_sw_aes_primitive (struct sxblkcipher *blkciph, const struct sxkeyref *key, const uint8_t *input, uint8_t *output)
 Perform a single AES block encryption operation.
 
psa_status_t cracen_sw_increment_counter_be (uint8_t *ctr_buf, size_t ctr_buf_size, size_t start_pos)
 Increment counter value stored as a big endian buffer.
 
void cracen_sw_encode_value_be (uint8_t *buffer, size_t buffer_size, size_t value, size_t value_size)
 Encode value as big-endian, right-aligned in buffer.