openaliro
Aliro reader: UWB/CCC core and ESP32-S3/C5/C6 port
Loading...
Searching...
No Matches
ccc_crypto_psa.c File Reference

— On-target AES-ECB block (PSA/CC312) backing the CCC key schedule. More...

#include <errno.h>
#include <stddef.h>
#include <stdint.h>
#include <psa/crypto.h>
#include "ccc_kdf.h"
Include dependency graph for ccc_crypto_psa.c:

Functions

int crypto_aes_ecb_encrypt (const uint8_t *key, size_t key_bits, const uint8_t in[16], uint8_t out[16])
 Encrypt one AES-ECB block using PSA Crypto, supporting 128-bit and 256-bit keys.
 

Detailed Description

— On-target AES-ECB block (PSA/CC312) backing the CCC key schedule.

Function Documentation

◆ crypto_aes_ecb_encrypt()

int crypto_aes_ecb_encrypt ( const uint8_t *  key,
size_t  key_bits,
const uint8_t  in[16],
uint8_t  out[16] 
)

Encrypt one AES-ECB block using PSA Crypto, supporting 128-bit and 256-bit keys.

AES block-cipher seam: one 128-bit ECB block encrypt (out may alias in).