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

— AES-ECB block via mbedTLS, backing the CCC key schedule on SoCs without a PSA provider (e.g. More...

#include <errno.h>
#include <stddef.h>
#include <stdint.h>
#include <mbedtls/aes.h>
#include "ccc_kdf.h"
Include dependency graph for ccc_crypto_mbedtls.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 mbedTLS, supporting 128-bit and 256-bit keys, as the portable crypto seam selected by CONFIG_WOZ_CRYPTO_MBEDTLS (see docs/porting.md; same contract as ccc_crypto_psa.c).
 

Detailed Description

— AES-ECB block via mbedTLS, backing the CCC key schedule on SoCs without a PSA provider (e.g.

ESP32-S3).

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 mbedTLS, supporting 128-bit and 256-bit keys, as the portable crypto seam selected by CONFIG_WOZ_CRYPTO_MBEDTLS (see docs/porting.md; same contract as ccc_crypto_psa.c).

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