PebbleOS v4.47.0-1075-g013613c8a
Loading...
Searching...
No Matches
Nordic nRF54L CRACEN

Core of the CRACEN crypto accelerator. More...

Data Structures

struct  pbl_nrf_cracen
 CRACEN. More...
 

Macros

#define PBL_NRF_CRACEN_DEFINE(sym, _name, _wrapper, _core)
 Define the CRACEN.
 

Functions

void pbl_nrf_cracen_enable (const struct pbl_nrf_cracen *cracen, uint32_t parts)
 Turn parts of the accelerator on.
 
void pbl_nrf_cracen_disable (const struct pbl_nrf_cracen *cracen, uint32_t parts)
 Turn parts of the accelerator off.
 

Variables

const struct pbl_nrf_cracen pbl_nrf_cracen_inst
 The CRACEN of the SoC.
 

Detailed Description

Core of the CRACEN crypto accelerator.

The core is a struct pbl_nrf_cracen device. It turns the parts of the accelerator on and off for its users: the random number generator (RNG) and the cipher and hash engine (Crypto).


Data Structure Documentation

◆ pbl_nrf_cracen

struct pbl_nrf_cracen

CRACEN.

Data Fields
uintptr_t core Engine registers.
struct pbl_device dev Device.
uintptr_t wrapper Wrapper registers.

Macro Definition Documentation

◆ PBL_NRF_CRACEN_DEFINE

#define PBL_NRF_CRACEN_DEFINE (   sym,
  _name,
  _wrapper,
  _core 
)
Value:
PBL_DEVICE_INSTANCE_DEV(sym, struct pbl_nrf_cracen) { \
.dev = PBL_DEVICE_INIT(sym, _name, pbl_nrf_cracen_init, nullptr), .wrapper = (_wrapper), \
.core = (_core), \
}
#define PBL_DEVICE_INIT(sym, _name, _init, _parent)
Initializer for the struct pbl_device of device instance sym.
Definition device.h:169
#define PBL_DEVICE_STATE_DEFINE(sym)
Define the runtime state of device instance sym.
Definition device.h:132
CRACEN.
Definition nrf_cracen.h:22

Define the CRACEN.

Parameters
symSymbol of the device.
_nameName.
_wrapperWrapper registers.
_coreEngine registers.

Function Documentation

◆ pbl_nrf_cracen_disable()

void pbl_nrf_cracen_disable ( const struct pbl_nrf_cracen *  cracen,
uint32_t  parts 
)

Turn parts of the accelerator off.

Parameters
cracenCRACEN.
partsCRACEN_ENABLE_* bits.

◆ pbl_nrf_cracen_enable()

void pbl_nrf_cracen_enable ( const struct pbl_nrf_cracen *  cracen,
uint32_t  parts 
)

Turn parts of the accelerator on.

Parameters
cracenCRACEN.
partsCRACEN_ENABLE_* bits.

Variable Documentation

◆ pbl_nrf_cracen_inst

const struct pbl_nrf_cracen pbl_nrf_cracen_inst
extern

The CRACEN of the SoC.