CRACEN — Cryptographic accelerator engine

The main features of the CRACEN peripheral are the following:

Figure 1. Cryptographic accelerator engine block diagram

Initialization

Before the CRACEN peripheral can be used, it must be configured.

At reset, each hardware crypto operation category is disabled and must be individually enabled using the ENABLE register. To use CRACEN, the desired module must first be enabled. Ongoing crypto operations will complete even if the module is disabled during the operation.

Before transferring data to CRACENCORE, CRACEN must be enabled using ENABLE.

When CRACEN is enabled, it will erase the PKE data RAM by starting a zeroization process. When the PKBUSY field of the PK.STATUS is cleared, the zeroization operation is complete. The PKE engine is not available until the zeroization process has finished.

Protected RAM

Protected RAM regions can be retained and locked for storing symmetric keys. The CPU cannot access these regions.

After KMU has pushed keys into the protected RAM, PROTECTEDRAMLOCK must be set to Enabled before CRACEN can access and use the keys.

Register PROTECTEDRAMLOCK is a write-once register, and cannot be changed until the next device reset.

The following areas are defined for the protected RAM.
Protected RAM
AddressEnd addressDescription
0x518100400x5181005FAES Protected key 0
0x518100600x5181007FAES Protected key 1
0x518100800x5181008FSM4 Protected key 0
0x518100900x5181009FSM4 Protected key 1
0x518100A00x518100AFSM4 Protected key 2
0x518100B00x518100BFSM4 Protected key 3

Countermeasures

CRACEN contains security countermeasures to prevent malicious usage.

The following engines implement countermeasures:
  • AES – Masking against Simple Power Analysis (SPA) and Differential Power Analysis (DPA)
  • SM4 – Masking against SPA and DPA
  • IKG/PKE – Protection against timing attacks and DPA

If CRACEN IKG/PKE is used maliciously, a TAMPC event will be generated and countermeasures enacted according to the TAMPC configuration. The countermeasures are controlled by TAMPC. The bits in TAMPC that control the countermeasures have lock bits.

Isolated Key Generator

The Isolated Key Generator (IKG) is a module that derives symmetric and asymmetric keys from the unique seed and optional personalization string.

After IKG has been enabled, CRACEN performs an IKG health test. The CTRDRBGBUSY field of the IKG.STATUS is cleared when the operation has completed. IKG is started by writing to the IKG.START register. The generated IKG keys are valid as long as CRACEN remains enabled. For details on enabling and disabling CRACEN, see ENABLE.

The IKG derives the following keys from seed upon request:

Note: The IKG generated keys are not directly accessible by CPU but are used by the PKE and AES engines. The IKG generated AES keys are not the same as protected keys in protected RAM, but can be used by the same AES engine.

Loading seed to IKG

The seed used by the IKG to generate keys must be pushed by the KMU to the SEED register and marked as valid before the keys can be generated.

To create and derive a seed the following sequence of operations are needed.
  1. Create device unique seed:
    1. Create 3 x 128 bit random number using CRACEN RNG
    2. Provision random number to KMU slots, e.g. 0, 1, and 2 (128 bits in each slot)
      1. SRC.DEST = CRACEN.SEED[n], where n=0, 4, and 8.
      2. SRC.VALUE = random[i], where i=0,1, and 2 (i.e. random number results from CRACEN.RND operation above)
  2. Load seed from KMU to CRACEN:
    1. Push the KMU slots where the SEED is stored, e.g. KMU slots 0, 1, and 2
    2. Write CRACEN.SEEDVALID  register to mark the seed as valid for the IKG
    3. To prevent any subsequent changes to the SEED, write CRACEN.SEEDLOCK  register.
Note: Any IKG key generations without valid seed (CRACEN.SEEDVALID) will fail.

Low power

To ensure lowest possible power consumption when the peripheral is not needed, disable CRACEN.

Make sure any operations are finished before disabling the peripheral in register ENABLE.

Registers

Instances

InstanceDomainBase addressTrustZoneSplit accessDescription
MapAttDMA
CRACENGLOBAL0x50048000HFSNSANoCrypto accelerator

Configuration

InstanceDomainConfiguration
CRACENGLOBAL

Access to CRACEN registers is blocked while KMU is performing a PUSH operation. CRACEN cannot write RRAM.

CRACEN CRYPTOACCELERATOR specific configuration registers included

PKE data (address 0x51808000) must be read and written using aligned access, i.e. using an operation where a word-aligned address is used for a word, or a halfword-aligned address is used for a halfword access.

PKE code (address 0x5180C000) must be read and written using aligned access, i.e. using an operation where a word-aligned address is used for a word, or a halfword-aligned address is used for a halfword access.

Register overview

RegisterOffsetTZDescription
EVENTS_CRYPTOMASTER0x100Event indicating that interrupt triggered at Cryptomaster
EVENTS_RNG0x104Event indicating that interrupt triggered at RNG
EVENTS_PKEIKG0x108Event indicating that interrupt triggered at PKE or IKG
INTEN0x300Enable or disable interrupt
INTENSET0x304Enable interrupt
INTENCLR0x308Disable interrupt
INTPEND0x30CPending interrupts
ENABLE0x400Enable CRACEN peripheral modules.
SEEDVALID0x404Marks the SEED register as valid.
SEED[n]0x410

Seed word [n] for symmetric and asymmetric key generation.

This register is only writable from KMU.

SEEDLOCK0x440Lock the access to the SEED register.
PROTECTEDRAMLOCK0x444Lock the access to the protected RAM.

EVENTS_CRYPTOMASTER

Address offset: 0x100

Event indicating that interrupt triggered at Cryptomaster

The interrupt source must be cleared at Cryptomaaster before clearing this event.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENTS_CRYPTOMASTER

Event indicating that interrupt triggered at Cryptomaster

The interrupt source must be cleared at Cryptomaaster before clearing this event.

NotGenerated0Event not generated
Generated1Event generated

EVENTS_RNG

Address offset: 0x104

Event indicating that interrupt triggered at RNG

The interrupt source must be cleared at RNG before clearing this event.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENTS_RNG

Event indicating that interrupt triggered at RNG

The interrupt source must be cleared at RNG before clearing this event.

NotGenerated0Event not generated
Generated1Event generated

EVENTS_PKEIKG

Address offset: 0x108

Event indicating that interrupt triggered at PKE or IKG

The interrupt source must be cleared at PKE or IKG before clearing this event.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENTS_PKEIKG

Event indicating that interrupt triggered at PKE or IKG

The interrupt source must be cleared at PKE or IKG before clearing this event.

NotGenerated0Event not generated
Generated1Event generated

INTEN

Address offset: 0x300

Enable or disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCRYPTOMASTER

Enable or disable interrupt for event CRYPTOMASTER

The interrupt source must be cleared at Cryptomaaster before clearing this event.

Disabled0Disable
Enabled1Enable
BRWRNG

Enable or disable interrupt for event RNG

The interrupt source must be cleared at RNG before clearing this event.

Disabled0Disable
Enabled1Enable
CRWPKEIKG

Enable or disable interrupt for event PKEIKG

The interrupt source must be cleared at PKE or IKG before clearing this event.

Disabled0Disable
Enabled1Enable

INTENSET

Address offset: 0x304

Enable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARW
W1S
CRYPTOMASTER

Write '1' to enable interrupt for event CRYPTOMASTER

The interrupt source must be cleared at Cryptomaaster before clearing this event.

Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled
BRW
W1S
RNG

Write '1' to enable interrupt for event RNG

The interrupt source must be cleared at RNG before clearing this event.

Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled
CRW
W1S
PKEIKG

Write '1' to enable interrupt for event PKEIKG

The interrupt source must be cleared at PKE or IKG before clearing this event.

Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled

INTENCLR

Address offset: 0x308

Disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARW
W1C
CRYPTOMASTER

Write '1' to disable interrupt for event CRYPTOMASTER

The interrupt source must be cleared at Cryptomaaster before clearing this event.

Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
BRW
W1C
RNG

Write '1' to disable interrupt for event RNG

The interrupt source must be cleared at RNG before clearing this event.

Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
CRW
W1C
PKEIKG

Write '1' to disable interrupt for event PKEIKG

The interrupt source must be cleared at PKE or IKG before clearing this event.

Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled

INTPEND

Address offset: 0x30C

Pending interrupts

Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARCRYPTOMASTER

Read pending status of interrupt for event CRYPTOMASTER

The interrupt source must be cleared at Cryptomaaster before clearing this event.

NotPending0Read: Not pending
Pending1Read: Pending
BRRNG

Read pending status of interrupt for event RNG

The interrupt source must be cleared at RNG before clearing this event.

NotPending0Read: Not pending
Pending1Read: Pending
CRPKEIKG

Read pending status of interrupt for event PKEIKG

The interrupt source must be cleared at PKE or IKG before clearing this event.

NotPending0Read: Not pending
Pending1Read: Pending

ENABLE

Address offset: 0x400

Enable CRACEN peripheral modules.

Each module of CRACEN can be enabled individually. When any of these modules are not in use, it can be disabled to save power. The module you want to use must first be enabled. Any ongoing crypto operations will be finished even if the module is disabled during the operation.

Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCRYPTOMASTEREnable cryptomaster
Disabled0Cryptomaster disabled.
Enabled1Cryptomaster enabled.
BRWRNGEnable RNG
Disabled0RNG disabled.
Enabled1RNG enabled.
CRWPKEIKGEnable PKE and IKG
Disabled0PKE and IKG disabled.
Enabled1PKE and IKG enabled.

SEEDVALID

Address offset: 0x404

Marks the SEED register as valid.

This register must be written after the SEED register is written, and before the IKG is started.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWVALID

Marks the SEED as valid

Disabled0Valid disabled.
Enabled1Valid enabled.

SEED[n]

Address offset: 0x410 + (n × 0x4)

Seed word [n] for symmetric and asymmetric key generation.

This register is only writable from KMU.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWVALSeed value

SEEDLOCK

Address offset: 0x440

Lock the access to the SEED register.

Note. If SEEDVALID was not written prior to SEEDLOCK, the write to SEEDLOCK will also mark the SEED as valid.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWENABLE

Enable the lock

Only possible to write a value 1.

Disabled0Lock disabled.
Enabled1Lock enabled.

PROTECTEDRAMLOCK

Address offset: 0x444

Lock the access to the protected RAM.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWENABLE

Enable the lock

Only possible to write a value 1.

Disabled0Lock disabled.
Enabled1Lock enabled.

Registers

Instances

InstanceDomainBase addressTrustZoneSplit accessDescription
MapAttDMA
CRACENCOREGLOBAL0x51800000HFSNSANoCRACEN core

Configuration

InstanceDomainConfiguration
CRACENCOREGLOBAL

CRYPTMSTRDMA registers included

CRYPTMSTRHW registers included

RNGCONTROL registers included

PK registers included

IKG registers included

RNGDATA registers included

PKDATAMEMORY registers included

PKUCODE registers included

Using CRACENCORE configuration reset values

Register overview

RegisterOffsetTZDescription
CRYPTMSTRDMA.FETCHADDRLSB0x000Fetch Address Least Significant Word
CRYPTMSTRDMA.FETCHADDRMSB0x004Fetch Address Most Significant Word
CRYPTMSTRDMA.FETCHLEN0x008Fetch DMA Length (only used in direct mode)
CRYPTMSTRDMA.FETCHTAG0x00CFetch User Tag (only used in direct mode)
CRYPTMSTRDMA.PUSHADDRLSB0x010Push Address Least Significant Word
CRYPTMSTRDMA.PUSHADDRMSB0x014Push Address Most Significant Word
CRYPTMSTRDMA.PUSHLEN0x018Push Length (only used in direct mode)
CRYPTMSTRDMA.INTEN0x01CInterrupt Enable mask
CRYPTMSTRDMA.INTENSET0x020Interrupt Set
CRYPTMSTRDMA.INTENCLR0x024Interrupt Clear
CRYPTMSTRDMA.INTSTATRAW0x028Interrupt Status Raw
CRYPTMSTRDMA.INTSTAT0x02CInterrupt Status
CRYPTMSTRDMA.INTSTATCLR0x030Interrupt Status Clear
CRYPTMSTRDMA.CONFIG0x034Cryptomaster configuration
CRYPTMSTRDMA.START0x038Start
CRYPTMSTRDMA.STATUS0x03CStatus
CRYPTMSTRHW.INCLIPSHWCFG0x400Incuded IPs Hardware configuration
CRYPTMSTRHW.BA411EAESHWCFG10x404Generic g_AesModesPoss value.
CRYPTMSTRHW.BA411EAESHWCFG20x408Generic g_CtrSize value.
CRYPTMSTRHW.BA413HASHHWCFG0x40CGeneric g_Hash value
CRYPTMSTRHW.BA418SHA3HWCFG0x410Generic g_Sha3CtxtEn value.
CRYPTMSTRHW.BA419SM4HWCFG0x414Generic g_SM4ModesPoss value.
CRYPTMSTRHW.BA424ARIAHWCFG0x418Generic g_aria_modePoss value.
RNGCONTROL.CONTROL0x1000Control register
RNGCONTROL.FIFOLEVEL0x1004FIFO level register.
RNGCONTROL.FIFOTHRESHOLD0x1008FIFO threshold register.
RNGCONTROL.FIFODEPTH0x100CFIFO depth register.
RNGCONTROL.KEY[n]0x1010Key register.
RNGCONTROL.TESTDATA0x1020Test data register.
RNGCONTROL.REPEATTHRESHOLD0x1024Repetition Test Count Cut-Off value.
RNGCONTROL.PROPTHRESHOLD0x1028Adaptive Proportion Test (1024-sample window) Cut-Off value.
RNGCONTROL.STATUS0x1030Status register.
RNGCONTROL.INITWAITVAL0x1034Initial wait counter value.
RNGCONTROL.DISABLEOSC[n]0x1038Disable oscillator rings #n*32 to #((n+1)*32)-1.
RNGCONTROL.SWOFFTMRVAL0x1040Switch off timer value.
RNGCONTROL.CLKDIV0x1044Sample clock divider.
RNGCONTROL.AIS31CONF00x1048AIS31 configuration register 0.
RNGCONTROL.AIS31CONF10x104CAIS31 configuration register 1.
RNGCONTROL.AIS31CONF20x1050AIS31 configuration register 2.
RNGCONTROL.AIS31STATUS0x1054AIS31 status register.
RNGCONTROL.HWCONFIG0x1058Hardware configuration register.
RNGCONTROL.FIFO[n]0x1080FIFO data
PK.POINTERS0x2000Pointers register.
PK.COMMAND0x2004Command register.
PK.CONTROL0x2008Command register.
PK.STATUS0x200CStatus register.
PK.TIMER0x2014Timer register.
PK.HWCONFIG0x2018Hardware configuration register.
PK.OPSIZE0x201COperand size register.
PK.RAMERRORINJECT0x2040RAM error injection register.
PK.RAMERRORSTATUS0x2044RAM error status register.
IKG.START0x3000Start register.
IKG.STATUS0x3004Status register.
IKG.INITDATA0x3008InitData register.
IKG.NONCE0x300CNonce register.
IKG.PERSONALISATIONSTRING0x3010Personalisation String register.
IKG.RESEEDINTERVALLSB0x3014Reseed Interval LSB register.
IKG.RESEEDINTERVALMSB0x3018Reseed Interval MSB register.
IKG.PKECONTROL0x301CPKE Control register.
IKG.PKECOMMAND0x3020PKE Command register.
IKG.PKESTATUS0x3024PKE Status register.
IKG.SOFTRST0x3028SoftRst register.
IKG.HWCONFIG0x302CHwConfig register.

CRYPTMSTRDMA.FETCHADDRLSB

Address offset: 0x000

Fetch Address Least Significant Word

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWFETCHADDRLSB

Address

In direct mode this register is written by SW with the address of the data block. In Scatter-gather mode this register is written by SW with the address of the first descriptor, and subsequently updated by the hardware after each processed descriptor.

CRYPTMSTRDMA.FETCHADDRMSB

Address offset: 0x004

Fetch Address Most Significant Word

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWFETCHADDRMSBAs the platform has 32bit addresses this register and ADDRMSB registers both give access to the same 32-bit register.

CRYPTMSTRDMA.FETCHLEN

Address offset: 0x008

Fetch DMA Length (only used in direct mode)

Bit number313029282726252423222120191817161514131211109876543210
IDCBAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWFETCHLENLength of data block
BRWFETCHCSTADDRConstant address
CRWFETCHREALIGNRealign length

CRYPTMSTRDMA.FETCHTAG

Address offset: 0x00C

Fetch User Tag (only used in direct mode)

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWFETCHTAGUser tag

CRYPTMSTRDMA.PUSHADDRLSB

Address offset: 0x010

Push Address Least Significant Word

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWPUSHADDRLSB

Address

In direct mode this register is written by SW with the address of the data block. In Scatter-gather mode this register is written by SW with the address of the first descriptor, and subsequently updated by the hardware after each processed descriptor.

CRYPTMSTRDMA.PUSHADDRMSB

Address offset: 0x014

Push Address Most Significant Word

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWPUSHADDRMSBAs the platform has 32bit addresses this register and ADDRMSB registers both give access to the same 32-bit register.

CRYPTMSTRDMA.PUSHLEN

Address offset: 0x018

Push Length (only used in direct mode)

Bit number313029282726252423222120191817161514131211109876543210
IDDCBAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWPUSHLENLength of data block
BRWPUSHCSTADDRConstant address
CRWPUSHREALIGNRealign length
DRWPUSHDISCARDDiscard data

CRYPTMSTRDMA.INTEN

Address offset: 0x01C

Interrupt Enable mask

Bit number313029282726252423222120191817161514131211109876543210
IDFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWFETCHERBLOCKENDFetcher DMA reached the end of a block (if enabled in the descriptor; scatter-gather only)
BRWFETCHERSTOPPEDFetcher DMA reached the end of a block with Stop=1, or end of direct transfer
CRWFETCHERERRORBus error during fetcher DMA access
DRWPUSHERBLOCKENDPusher DMA reached the end of a block (if enabled in the descriptor; scatter-gather only)
ERWPUSHERSTOPPEDPusher DMA reached the end of a block with Stop=1, or end of direct transfer
FRWPUSHERERRORBus error during pusher DMA access

CRYPTMSTRDMA.INTENSET

Address offset: 0x020

Interrupt Set

Writing a 1 to a bit in this register enables the corresponding interrupt. Writing 0 has no effect.

Bit number313029282726252423222120191817161514131211109876543210
IDFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWFETCHERBLOCKENDFetcher DMA reached the end of a block (if enabled in the descriptor; scatter-gather only)
BRWFETCHERSTOPPEDFetcher DMA reached the end of a block with Stop=1, or end of direct transfer
CRWFETCHERERRORBus error during fetcher DMA access
DRWPUSHERBLOCKENDPusher DMA reached the end of a block (if enabled in the descriptor; scatter-gather only)
ERWPUSHERSTOPPEDPusher DMA reached the end of a block with Stop=1, or end of direct transfer
FRWPUSHERERRORBus error during pusher DMA access

CRYPTMSTRDMA.INTENCLR

Address offset: 0x024

Interrupt Clear

Writing a 1 to a bit in this register disables the corresponding interrupt. Writing 0 has no effect.

Bit number313029282726252423222120191817161514131211109876543210
IDFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWFETCHERBLOCKENDFetcher DMA reached the end of a block (if enabled in the descriptor; scatter-gather only)
BRWFETCHERSTOPPEDFetcher DMA reached the end of a block with Stop=1, or end of direct transfer
CRWFETCHERERRORBus error during fetcher DMA access
DRWPUSHERBLOCKENDPusher DMA reached the end of a block (if enabled in the descriptor; scatter-gather only)
ERWPUSHERSTOPPEDPusher DMA reached the end of a block with Stop=1, or end of direct transfer
FRWPUSHERERRORBus error during pusher DMA access

CRYPTMSTRDMA.INTSTATRAW

Address offset: 0x028

Interrupt Status Raw

Interrupt status before bitmasking with INTEN.

Bit number313029282726252423222120191817161514131211109876543210
IDFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWFETCHERBLOCKENDFetcher DMA reached the end of a block (if enabled in the descriptor; scatter-gather only)
BRWFETCHERSTOPPEDFetcher DMA reached the end of a block with Stop=1, or end of direct transfer
CRWFETCHERERRORBus error during fetcher DMA access
DRWPUSHERBLOCKENDPusher DMA reached the end of a block (if enabled in the descriptor; scatter-gather only)
ERWPUSHERSTOPPEDPusher DMA reached the end of a block with Stop=1, or end of direct transfer
FRWPUSHERERRORBus error during pusher DMA access

CRYPTMSTRDMA.INTSTAT

Address offset: 0x02C

Interrupt Status

Interrupt Status after bitmasking with INTEN. If any bit of this register is high, this sub-module interrupt line towards the CRACEN interrupt generation logic is high.

Bit number313029282726252423222120191817161514131211109876543210
IDFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWFETCHERBLOCKENDFetcher DMA reached the end of a block (if enabled in the descriptor; scatter-gather only)
BRWFETCHERSTOPPEDFetcher DMA reached the end of a block with Stop=1, or end of direct transfer
CRWFETCHERERRORBus error during fetcher DMA access
DRWPUSHERBLOCKENDPusher DMA reached the end of a block (if enabled in the descriptor; scatter-gather only)
ERWPUSHERSTOPPEDPusher DMA reached the end of a block with Stop=1, or end of direct transfer
FRWPUSHERERRORBus error during pusher DMA access

CRYPTMSTRDMA.INTSTATCLR

Address offset: 0x030

Interrupt Status Clear

Writing a 1 to a bit in this register clears the corresponding interrupt. Writing 0 has no effect.

Bit number313029282726252423222120191817161514131211109876543210
IDFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWFETCHERBLOCKENDFetcher DMA reached the end of a block (if enabled in the descriptor; scatter-gather only)
BRWFETCHERSTOPPEDFetcher DMA reached the end of a block with Stop=1, or end of direct transfer
CRWFETCHERERRORBus error during fetcher DMA access
DRWPUSHERBLOCKENDPusher DMA reached the end of a block (if enabled in the descriptor; scatter-gather only)
ERWPUSHERSTOPPEDPusher DMA reached the end of a block with Stop=1, or end of direct transfer
FRWPUSHERERRORBus error during pusher DMA access

CRYPTMSTRDMA.CONFIG

Address offset: 0x034

Cryptomaster configuration

Bit number313029282726252423222120191817161514131211109876543210
IDEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWFETCHCTRLINDIRECT

Fetcher scatter/gather.

When this bit is zero, the fetcher runs in direct mode. When this bit is one, the fetcher runs in scatter-gather mode.

BRWPUSHCTRLINDIRECT

Pusher scatter/gather.

When this bit is zero, the pusher runs in direct mode. When this bit is one, the pusher runs in scatter-gather mode.

CRWFETCHSTOP

Stop fetcher.

When this bit is high, the fetcher will stop at the end of the current block (even if the STOP bit in the descriptor is low).

DRWPUSHSTOP

Stop pusher DMA.

When this bit is high, the pusher will stop at the end of the current block (even if the STOP bit in the descriptor is low).

ERWSOFTRST

Soft reset the cryptomaster.

When this bit is high, the software reset of the DMA modules, the FIFO's and the processing module will be activated. The bus is not affected (pending transfers will be completed).

CRYPTMSTRDMA.START

Address offset: 0x038

Start

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWSTARTFETCHWriting a '1' starts the fetcher DMA. Writing a '0' has no effect.
BWSTARTPUSHWriting a '1' starts the pusher DMA. Writing a '0' has no effect.

CRYPTMSTRDMA.STATUS

Address offset: 0x03C

Status

Bit number313029282726252423222120191817161514131211109876543210
IDFFFFFFFFFFFFFFFFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARFETCHBUSYThis bit is high as long as the fetcher DMA is busy.
BRPUSHBUSYThis bit is high as long as the pusher DMA is busy.
CRFETCHNOTEMPTYNot empty flag for fetcher DMA input FIFO
DRPUSHWAITINGFIFOPusher DMA Waiting FIFO. This bit is high when the pusher is waiting for more data in output FIFO.
ERSOFTRSTBUSYThis bit is high when the soft reset is on going
FRPUSHNBDATAAmount of data in the pusher DMA output FIFO

CRYPTMSTRHW.INCLIPSHWCFG

Address offset: 0x400

Incuded IPs Hardware configuration

Bit number313029282726252423222120191817161514131211109876543210
IDNMLKJIHGFEDCBA
Reset 0x0000077100000000000000000000011101110001
IDR/WFieldValue IDValueDescription
ARBA411AESINCLUDED

Generic g_IncludeAES value.

BA411E–AES IP included if set

BRBA415HPAESGCMINCLUDED

Generic g_IncludeAESGCM value.

BA415–HP-AES-GCM IP included if set

CRBA416HPAESXTSINCLUDED

Generic g_IncludeAESXTS value.

BA416–HP-AES-XTS IP included if set

DRBA412DESINCLUDED

Generic g_IncludeDES value.

BA412–3DES IP included if set

ERBA413HASHINCLUDED

Generic g_IncludeHASH value.

BA413–HASH IP included if set

FRBA417CHACHAPOLYINCLUDED

Generic g_IncludeChachaPoly value.

BA417–ChaChaPoly IP included if set

GRBA418SHA3INCLUDED

Generic g_IncludeSHA3 value.

BA418–SHA3 IP included if set

HRBA421ZUCINCLUDED

Generic g_IncludeZUC value.

BA421–ZUC IP included if set

IRBA419SM4INCLUDED

Generic g_IncludeSM4 value.

BA419–SM4 IP included if set

JRBA414EPPKEINCLUDED

Generic g_IncludePKE value.

BA414EP-PKE IP included if set

KRBA431NDRNGINCLUDED

Generic g_IncludeNDRNG value.

BA431–NDRNG IP included if set

LRBA420HPCHACHAPOLYINCLUDED

Generic g_IncludeHPChachaPoly value.

BA420–HP-ChaChaPoly IP included if set

MRBA423SNOW3GINCLUDED

Generic g_IncludeSnow3G value.

BA423–Snow3G IP included if set

NRBA422KASUMIINCLUDED

Generic g_IncludeKasumi value.

BA422–Kasumi IP included if set

CRYPTMSTRHW.BA411EAESHWCFG1

Address offset: 0x404

Generic g_AesModesPoss value.

Bit number313029282726252423222120191817161514131211109876543210
IDDDDCBAAAAAAAAA
Reset 0x070301FF00000111000000110000000111111111
IDR/WFieldValue IDValueDescription
ARBA411EAESHWCFGMODE

Generic g_AesModesPoss value.

BA411E-AES engine configuration.

BRBA411EAESHWCFGCS

Generic g_CS value.

BA411E-AES engine configuration.

CRBA411EAESHWCFGMASKING

Generic g_UseMasking value.

BA411E-AES engine configuration.

DRBA411EAESHWCFGKEYSIZE

Generic g_Keysize value.

BA411E-AES engine configuration.

CRYPTMSTRHW.BA411EAESHWCFG2

Address offset: 0x408

Generic g_CtrSize value.

BA411E-AES engine configuration.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAA
Reset 0x0000008000000000000000000000000010000000
IDR/WFieldValue IDValueDescription
ARBA411EAESHWCFG2

Generic g_CtrSize value.

BA411E-AES engine configuration.

CRYPTMSTRHW.BA413HASHHWCFG

Address offset: 0x40C

Generic g_Hash value

Bit number313029282726252423222120191817161514131211109876543210
IDDCBAAAAAAA
Reset 0x0003003F00000000000000110000000000111111
IDR/WFieldValue IDValueDescription
ARBA413HASHHWCFGMASK

Generic g_HashMaskFunc value.

BA413-Hash engine configuration.

BRBA413HASHHWCFGPADDING

Generic g_HashPadding value.

BA413-Hash engine configuration.

CRBA413HASHHWCFGHMAC

Generic g_HMAC_enabled value.

BA413-Hash engine configuration.

DRBA413HASHHWCFGVERIFYDIGEST

Generic g_HashVerifyDigest value.

BA413-Hash engine configuration.

CRYPTMSTRHW.BA418SHA3HWCFG

Address offset: 0x410

Generic g_Sha3CtxtEn value.

BA418-SHA3 configuration.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000100000000000000000000000000000001
IDR/WFieldValue IDValueDescription
ARBA418SHA3HWCFG

Generic g_Sha3CtxtEn value.

BA418-SHA3 configuration.

CRYPTMSTRHW.BA419SM4HWCFG

Address offset: 0x414

Generic g_SM4ModesPoss value.

BA419-SM4 engine configuration.

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAAAA
Reset 0x000201FF00000000000000100000000111111111
IDR/WFieldValue IDValueDescription
ARBA419SM4HWCFG

Generic g_SM4ModesPoss value.

BA419-SM4 engine configuration.

BRUSEMASKING

Generic g_sm4UseMasking value.

BA419-SM4 engine configuration.

CRYPTMSTRHW.BA424ARIAHWCFG

Address offset: 0x418

Generic g_aria_modePoss value.

BA424-Aria engine configuration.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAA
Reset 0x0000017F00000000000000000000000101111111
IDR/WFieldValue IDValueDescription
ARBA424ARIAHWCFG

Generic g_aria_modePoss value.

BA424-Aria engine configuration.

RNGCONTROL.CONTROL

Address offset: 0x1000

Control register

Bit number313029282726252423222120191817161514131211109876543210
IDQPPPPONMLKJIHGFEDCBA
Reset 0x0004000000000000000001000000000000000000
IDR/WFieldValue IDValueDescription
ARWENABLEEnable the RNG. Clearing this bit resets the RNG FSM.
BRWLFSRENSelect between the RNG with asynchronous free running ring oscillators (when 0) and the Pseudo-Random generator with synchronous oscillators for simulation purpose (when 1).
CRWTESTENSelect input for conditioning function and continuous tests:
NORMAL0Noise source (normal mode).
TEST1Test data register (test mode).
DRWCONDBYPASSConditioning function bypass.
NORMAL0the conditioning function is used (normal mode).
BYPASS1the conditioning function is bypassed (to observe entropy source directly).
ERWINTENREPInterrupt enable for Repetition Count Test failure.
FRWINTENPROPInterrupt enable for Adaptive Proportion Test failure (1024-sample window).
GRWINTENFULLInterrupt enable for FIFO full.
HRWSOFTRST

Software reset:

This bit is not cleared automatically.

NORMAL0Normal mode.
CTEST1The continuous test, the conditioning function and the FIFO are reset.
IRWINTENPREInterrupt enable for AIS31 preliminary noise alarm.
JRWINTENALMInterrupt enable for AIS31 noise alarm.
KRWFORCEACTIVEROSForce oscillators to run when FIFO is full.
LRWHEALTHTESTBYPASSBypass NIST tests such that the results of the start-up and online test do not affect the FSM state.
MRWAIS31BYPASSBypass AIS31 tests such that the results of the start-up and online tests do not affect the FSM state.
NRWHEALTHTESTSELSelect input to health test module:
BEFORE0Before conditioning.
AFTER1After conditioning.
ORWAIS31TESTSELSelect input to the AIS31 test module:
BEFORE0Before conditioning.
AFTER1After conditioning.
PRWNB128BITBLOCKS

Number of 128 bit blocks used in AES-CBCMAC post-processing.

This value cannot be zero.

QRWFIFOWRITESTARTUPEnable write of the samples in the FIFO during start-up.

RNGCONTROL.FIFOLEVEL

Address offset: 0x1004

FIFO level register.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARW
RME
FIFOLEVEL

Number of 32 bits words of random values available in the FIFO.

Any read to this register clears the FULLINT flag in the STATUS register, but does not affect this register content. Note that if the FIFO is still full, the status flag and interrupt will be set back up right away

RNGCONTROL.FIFOTHRESHOLD

Address offset: 0x1008

FIFO threshold register.

Bit number313029282726252423222120191817161514131211109876543210
IDAAA
Reset 0x0000000300000000000000000000000000000011
IDR/WFieldValue IDValueDescription
ARWFIFOTHRESHOLD

FIFO level threshold below which the module leaves the idle state to refill the FIFO. Expressed in number of 128bit blocks.

After a FIFO read, the RNG will start refilling the FIFO if FIFOLEVEL is smaller than (FIFOTHRESHOLD + 1) * 4

RNGCONTROL.FIFODEPTH

Address offset: 0x100C

FIFO depth register.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000001000000000000000000000000000010000
IDR/WFieldValue IDValueDescription
ARFIFODEPTHMaximum number of 32 bits words that can be stored in the FIFO: 2**g_fifodepth.

RNGCONTROL.KEY[n]

Address offset: 0x1010 + (n × 0x4)

Key register.

128-bit AES key used for conditioning

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWKEY

Key register.

Note: Byte 0 of Key0 is the MSB and byte 3 of Key3 is the LSB.

RNGCONTROL.TESTDATA

Address offset: 0x1020

Test data register.

This register is used to feed known data to the conditioning function or to the continuous tests. When one word is written into this register, the 32-bit are sent to those modules. Since some time is needed for processing, there is one busy flag (TESTDATABUSY in the STATUS register) going high as soon as data is written, and going low when the next word can be written. Write access to this register is ignored when CONTROL.TESTEN is 0. Test data written through this interface is expected to be a multiple of 128 bits.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWTESTDATATest data register.

RNGCONTROL.REPEATTHRESHOLD

Address offset: 0x1024

Repetition Test Count Cut-Off value.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAA
Reset 0x0000002900000000000000000000000000101001
IDR/WFieldValue IDValueDescription
ARWREPEATTHRESHOLDRepetition Test Count Cut-Off value.

RNGCONTROL.PROPTHRESHOLD

Address offset: 0x1028

Adaptive Proportion Test (1024-sample window) Cut-Off value.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAA
Reset 0x0000031900000000000000000000001100011001
IDR/WFieldValue IDValueDescription
ARWPROPTHRESHOLDAdaptive Proportion Test (1024-sample window) Cut-Off value.

RNGCONTROL.STATUS

Address offset: 0x1030

Status register.

Bit number313029282726252423222120191817161514131211109876543210
IDIHGFEDCBBBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARTESTDATABUSYHigh when data written to TestData register is being processed.
BRSTATEState of the control FSM:
RESET0Reset
STARTUP1Startup
IDLERON2Idle (Rings On)
IDLEROFF3Idle (Rings Off)
FILLFIFO4Fill FIFO
ERROR5Error
CRWREPFAILNIST-800-90B repetition Count Test interrupt status.
DRWPROPFAILNIST-800-90B adaptive Proportion Test (1024-sample window) interrupt status.
ERWFULLINTFIFO full status.
FRWPREINTAIS31 preliminary noise alarm interrupt status.
GRWALMINTAIS31 noise alarm interrupt status.
HRSTARTUPFAILStart-up test failure.
IRWFIFOACCFAILSet when a FIFO data read is performed while the NDRNG is disabled AND has its FIFO empty (FIFOLevel = 0).

RNGCONTROL.INITWAITVAL

Address offset: 0x1034

Initial wait counter value.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAA
Reset 0x0000FFFF00000000000000001111111111111111
IDR/WFieldValue IDValueDescription
ARWINITWAITVALNumber of clock cycles to wait before sampling data from the noise source.

RNGCONTROL.DISABLEOSC[n]

Address offset: 0x1038 + (n × 0x4)

Disable oscillator rings #n*32 to #((n+1)*32)-1.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDISABLEOSCDisable oscillator rings #n*32 to #((n+1)*32)-1.

RNGCONTROL.SWOFFTMRVAL

Address offset: 0x1040

Switch off timer value.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAA
Reset 0x0000FFFF00000000000000001111111111111111
IDR/WFieldValue IDValueDescription
ARWSWOFFTMRVALNumber of clk cycles to wait before stopping the rings after the FIFO is full.

RNGCONTROL.CLKDIV

Address offset: 0x1044

Sample clock divider.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCLKDIV

Sample clock divider.

The frequency at which the outputs of the rings are sampled is given by: Fs=Fpclk/(ClkDiv+1).

RNGCONTROL.AIS31CONF0

Address offset: 0x1048

AIS31 configuration register 0.

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBBBBBBBBBBBBAAAAAAAAAAAAAAA
Reset 0x4340104001000011010000000001000001000000
IDR/WFieldValue IDValueDescription
ARWSTARTUPTHRESHOLDStart-up test threshold.
BRWONLINETHRESHOLDOnline threshold.

RNGCONTROL.AIS31CONF1

Address offset: 0x104C

AIS31 configuration register 1.

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBBBBBBBBBBBBAAAAAAAAAAAAAAA
Reset 0x03C0068000000011110000000000011010000000
IDR/WFieldValue IDValueDescription
ARWONLINEREPTHRESHOLDOnline repeat threshold.
BRWHEXPECTEDVALUEExpected history value.

RNGCONTROL.AIS31CONF2

Address offset: 0x1050

AIS31 configuration register 2.

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBBBBBBBBBBBBAAAAAAAAAAAAAAA
Reset 0x0440034000000100010000000000001101000000
IDR/WFieldValue IDValueDescription
ARWHMINMinimum allowed history value.
BRWHMAXMaximum allowed history value.

RNGCONTROL.AIS31STATUS

Address offset: 0x1054

AIS31 status register.

This register is used to obtain diagnostic information about the AIS31 start-up and online tests. Writing to this register clears the NUMPRELIMALARMS value. The PRELIMNOISEALARMREP and PRELIMNOISEALARMRNG flags are cleared by clearing the PREINT flag in the STATUS register.

Bit number313029282726252423222120191817161514131211109876543210
IDCBAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWNUMPRELIMALARMSNumber of preliminary noise alarms since counter was last cleared.
BRWPRELIMNOISEALARMRNGLast preliminary noise alarm occurred due to history value out of range.
CRWPRELIMNOISEALARMREPLast preliminary noise alarm occurred due to consecutive high Χ**2.

RNGCONTROL.HWCONFIG

Address offset: 0x1058

Hardware configuration register.

Bit number313029282726252423222120191817161514131211109876543210
IDCBAAAAAAAA
Reset 0x0000033700000000000000000000001100110111
IDR/WFieldValue IDValueDescription
ARNUMBOFRINGSGeneric g_NumRings value.
BRAIS31Generic g_AIS31 value.
CRAIS31FULLGeneric g_AIS31Full value.

RNGCONTROL.FIFO[n]

Address offset: 0x1080 + (n × 0x4)

FIFO data

The FIFO contains the RNG output data.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARDATAFIFO data

PK.POINTERS

Address offset: 0x2000

Pointers register.

Bit number313029282726252423222120191817161514131211109876543210
IDDDDDCCCCBBBBAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWOPPTRAWhen executing primitive arithmetic operations, this pointer defines where operand A is located in memory (location 0x0 to 0xF).
BRWOPPTRBWhen executing primitive arithmetic operations, this pointer defines where operand B is located in memory (location 0x0 to 0xF).
CRWOPPTRCWhen executing primitive arithmetic operations, this pointer defines the location (0x0 to 0xF) where the result will be stored in memory.
DRWOPPTRNWhen executing primitive arithmetic operations, this pointer defines the location where the modulus is located in memory (location 0x0 to 0xF).

PK.COMMAND

Address offset: 0x2004

Command register.

Bit number313029282726252423222120191817161514131211109876543210
IDLKJIHGFEEEDCCCCCCCCCCBAAAAAAA
Reset 0x0000000F00000000000000000000000000001111
IDR/WFieldValue IDValueDescription
ARWOPEADDR

This field defines the operation to be performed.

See documentation for more details.

BRWFIELDF0: Field is GF(p) 1: Field is GF(2**m)
CRWOPBYTESM1

This field defines the size (= number of bytes minus one) of the operands for the current operation.

Possible values are limited by the maximum supported operand size. Examples: - 0x014 - ECC on curve K-163 - 0x01F - ECC on curve P-256 - 0x02F - ECC on curve P-384 - 0x033 - ECC on curve K-409 - 0x041 - ECC on curve P-521 - 0x07F - 1024-bit RSA - 0x09F - 1280-bit RSA - 0x1FF - 4096-bit RSA - 0x3FF - 8192-bit RSA

DRWRANDMODEnable randomization of modulus (counter-measure).
ERWSELCURVE

Enable accelerator for specific curve modulus:

This field has no effect when the optional acceleration hardware is not included.

NOACCEL0x0No acceleration (default)
P2560x1P256
P3840x2P384
P5210x3P521
P1920x4P192
CURVE255190x5Curve25519
ED255190x6Ed25519.
FRWRANDKEEnable randomization of exponent/scalar (counter-measure).
GRWRANDPROJEnable randomization of projective coordinates (counter-measure).
HRWEDWARDSEnable Edwards curve.
IRWSWAPBYTES

Swap the bytes on AHB interface:

This bit must be programmed before writing/reading any data in data memory.

NATIVE0Native format (little endian).
SWAPPED1Byte swapped (big endian).
JRWFLAGAFlag A.
KRWFLAGBFlag B.
LRWCALCR2

This bit indicates if the IP has to calculate R**2 mod N for the next operation.

This bit must be set to 1 when a new prime number has been programmed. This bit is used for primitive operations and ignored for the other operations.

NRECALCULATE0don't recalculate R² mod N
RECALCULATE1re-calculate R² mod N

PK.CONTROL

Address offset: 0x2008

Command register.

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWSTARTWriting a 1 starts the processing.
BWCLEARIRQWriting a 1 clears the IRQ output.

PK.STATUS

Address offset: 0x200C

Status register.

Bit number313029282726252423222120191817161514131211109876543210
IDDDDDDCBAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARERRORFLAGS

These bits indicate an error condition.

They are updated at the end of the operation. They are cleared when starting a new operation.

BRPKBUSY

This bit reflects the BUSY output value.

It is set when the operation starts and it is cleared when the operation is finished.

CRINTRPTSTATUS

This bit reflects the IRQ output value.

It is set when the operation is finished. It is cleared when the CPU writes the bit 1 of Control Register.

DRFAILPTR

These bits indicate which data location generated the error flag.

They are not available for all error flags.

PK.TIMER

Address offset: 0x2014

Timer register.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWTIMERNumber of core clock cycles.

PK.HWCONFIG

Address offset: 0x2018

Hardware configuration register.

Bit number313029282726252423222120191817161514131211109876543210
IDNMLKJIHGFEDCBBBBAAAAAAAAAAAA
Reset 0x01F7220000000001111101110010001000000000
IDR/WFieldValue IDValueDescription
ARMAXOPSIZEMaximum operand size (number of bytes).
BRNBMULTNumber of multipliers:
MULT101 multiplier
MULT414 multipliers
MULT16216 multipliers
MULT64464 multipliers
MULT2568256 multipliers
CRPRIMEFIELDSupport prime field.
DRBINARYFIELDSupport binary field.
ERECCSupport error correction.
FRP256Support ECC P256 acceleration.
GRP384Support ECC P384 acceleration.
HRP521Support ECC P521 acceleration.
IRP192Support ECC P192 acceleration.
JRX25519Support Curve25519/Ed25519 acceleration.
KRAHBMASTERMemory access
SLAVE0Memory access through AHB Slave and internally in the PKE.
MASTER1Memory access through AHB Master, outside the PKE.
LRDISABLESMXState of DisableSMx input (high when SM2/SM9 operations are disabled).
MRDISABLECLRMEMState of DisableClrMem input (high when automatic clear of the RAM after reset is disabled).
NRDISABLECMState of DisableCM input (high when counter-measures are disabled).

PK.OPSIZE

Address offset: 0x201C

Operand size register.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAA
Reset 0x0000100000000000000000000001000000000000
IDR/WFieldValue IDValueDescription
ARWOPSIZEOperand size (number of bytes): This register is used when the memory is accessed via AHB Master
OPSIZE2560x0100256 bytes.
OPSIZE5210x0209521 bytes.
OPSIZE20480x08002048 bytes.
OPSIZE30720x0C003072 bytes.
OPSIZE40960x10004096 bytes.

PK.RAMERRORINJECT

Address offset: 0x2040

RAM error injection register.

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBBBBBBBAAAAAAAAAA
Reset 0x03FF03FF00000011111111110000001111111111
IDR/WFieldValue IDValueDescription
ARWBITERROR1Bit position of first error
BRWBITERROR2Bit position of second error

PK.RAMERRORSTATUS

Address offset: 0x2044

RAM error status register.

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARRAMCORRECTIONThis bit indicates that a 1-bit error has been detected and corrected on RAM interface
BRRAMFAILUREThis bit indicates that an uncorrectable error has been detected on the data RAM interface

IKG.START

Address offset: 0x3000

Start register.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWSTARTStart the Isolated Key Generation.

IKG.STATUS

Address offset: 0x3004

Status register.

Bit number313029282726252423222120191817161514131211109876543210
IDGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARSEEDERROR

Seed Error during Isolated Key Generation.

When the IKG module is in error state, a reset is required to restart the module.

BRENTROPYERROR

Entropy Error during Isolated Key Generation.

When the IKG module is in error state, a reset is required to restart the module.

CROKAYIsolated Key Generation is okay.
DRCTRDRBGBUSYCTR_DRBG health test is busy (only when g_hw_health_test = true).
ERCATASTROPHICERROR

Catastrophic error during CTR_DRBG health test (only when g_hw_health_test = true).

When the IKG module is in error state, a reset is required to restart the module.

FRSYMKEYSTOREDSymmetric Keys are stored.
GRPRIVKEYSTOREDPrivate Keys are stored.

IKG.INITDATA

Address offset: 0x3008

InitData register.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWINITDATAWriting a 1 initialise Nonce and Personalisation_String registers counters, i.e. start writing from the 32 LSB.

IKG.NONCE

Address offset: 0x300C

Nonce register.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWNONCENonce (write/read value 32-bit by 32-bit).

IKG.PERSONALISATIONSTRING

Address offset: 0x3010

Personalisation String register.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWPERSONALISATIONSTRING

Personalisation String (write/read value 32-bit by 32-bit).

If this register is not accessed, then Personalisation String is considered null.

IKG.RESEEDINTERVALLSB

Address offset: 0x3014

Reseed Interval LSB register.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x8000000010000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWRESEEDINTERVALLSBReseed Interval LSB.

IKG.RESEEDINTERVALMSB

Address offset: 0x3018

Reseed Interval MSB register.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWRESEEDINTERVALMSBReseed Interval MSB.

IKG.PKECONTROL

Address offset: 0x301C

PKE Control register.

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWPKESTARTStart the PKE operation or trigger for Secure mode exit.
BWCLEARIRQClear the IRQ output.

IKG.PKECOMMAND

Address offset: 0x3020

PKE Command register.

Bit number313029282726252423222120191817161514131211109876543210
IDCCBBBBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWSECUREMODE

Secure mode.

It is activated as soon as it is set to 1.It is deactivated when it is set to 0 and PKE_Start is set to 1.

DEACTIVATED0
ACTIVATED1
BRWSELECTEDKEY

Select Generated Private Key for PKE operation.

This Key Index should be between 0 and g_nb_priv_keys-1.

CRWOPSEL

Select PKE operation with Isolated Key

Note: Value 3 is reserved.

PUBKEY0Public Key Generation
ECDSA1ECDSA Signature
PTMUL2Point Multiplication

IKG.PKESTATUS

Address offset: 0x3024

PKE Status register.

Bit number313029282726252423222120191817161514131211109876543210
IDEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARERRORError because either Private Keys are not stored or the operation is not defined.
BRSTARTERRORError because a new operation is started while the previous one is still busy.
CRIKGPKBUSYBusy, set when the operation starts and cleared when the operation is finished.
DRIRQSTATUSIRQ, set when the operation is finished and cleared when the CPU writes the bit 1 of PKE_Control Register or a new operation is started.
ERERASEBUSYThe PKE Data RAM is being erased.

IKG.SOFTRST

Address offset: 0x3028

SoftRst register.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWSOFTRST

Software reset:

This bit is not cleared automatically.

NORMAL0Normal mode.
KEY1The Isolated Key Generation logic and the keys are reset.

IKG.HWCONFIG

Address offset: 0x302C

HwConfig register.

Bit number313029282726252423222120191817161514131211109876543210
IDKKKKJJJJIIIIHHHHGGGFEEDCBBBBAAAA
Reset 0xCC4C831211001100010011001000001100010010
IDR/WFieldValue IDValueDescription
ARNBSYMKEYSNumber of Symmetric Keys generated.
BRNBPRIVKEYSNumber of Private Keys generated.
CRIKGCMCountermeasures for IKG operations are implemented when 1.
DRHWHEALTHTESTCTR_DRBG health test is implemented when 1.
ERCURVE

ECC curve for IKG (input).

Note: value 3 is reserved

P2560P256.
P3841P384.
P5212P521.
FRDFDerivation function is implemented in the CTR_DRBG when 1.
GRKEYSIZE

AES Key Size support for the AES Core embedded in the CTR_DRBG.

[0]: supports AES128 when 1 [1]: supports AES192 when 1 [2]: supports AES256 when 1

AES1281supports AES128
AES1922supports AES192
AES2564supports AES256
HRENTROPYINPUTLENGTHValue of g_entropy_input_length/32.
IRNONCELENGTHValue of g_nonce_length/32.
JRPERSONALIZATIONSTRINGLENGTHValue of g_personalization_string_length/32.
KRADDITIONALINPUTLENGTHValue of g_additional_input_length/32.