CRACEN — Cryptographic accelerator engine

CRACEN (Cryptographic accelerator engine) is a dedicated hardware peripheral that provides a comprehensive set of cryptographic primitives and services to accelerate and harden cryptographic operations on the device.

CRACEN integrates symmetric ciphers, authenticated encryption, public-key arithmetic engines, and high-quality random number generation. It also includes an isolated key generator (IKG) to provision and hold keys securely, reducing exposure of sensitive material to the host CPU and software.

CRACEN is intended to offload compute-intensive and security-sensitive tasks from the main processor: encrypting and decrypting data, computing digests and message authentication codes, performing signature generation and verification, and carrying out key-exchange protocols such as Diffie-Hellman.

The main features of the CRACEN peripheral are the following:

Figure 1. Cryptographic accelerator engine block diagram

Disclaimer

This section contains an important disclaimer about the CRACEN peripheral documentation.

CRACEN is recommended for use with the libraries in Nordic Semiconductor device SDKs. These libraries are tested and verified to work with the CRACEN hardware. The CRACEN subsystem documentation and register descriptions are for reference only and can be used for modifying the Nordic supplied SDK libraries or implementing new features.

Nordic Semiconductor ASA reserves the right to change the CRACEN documentation and register descriptions without further notice. Changes will not trigger erratas and will not be seen as changing form/fit/function of the device.

Please note that Nordic cannot support questions directly related to the register interface or modification of the source code implementation. Nordic provide support for the top-level API in the software library distributed as part of the device SDK.

Initialization

The CRACEN peripheral is a hardware and software solution where software is delivered as libraries in Nordic device SDKs. Recommended usage of the CRACEN subsystem is to use the SDK library implementation available for the device. The CRACEN subsystem is documented for reference purpose only, please see section Disclaimer for more information.

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

CRACEN is enabled using the ENABLE register. 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.

After CRACEN has been enabled, the CRACENCORE registers can be used.

Each hardware crypto operation category (module) must then be individually enabled. Note that ongoing crypto operations will complete even if the module is disabled during the operation.

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 address range of the Protected RAM memory range is defined in Memory.

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)
  • IKG/PKE – Protection against timing attacks and DPA

If CRACEN IKG/PKE is used maliciously, a TAMPC event will be generated and countermeasures executed according to the TAMPC configuration. The bits in TAMPC that control the countermeasures have lock bits, preventing further modification to the configuration.

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 to the 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

Before keys can be generated, KMU must push the key generation seed used by the IKG to the SEED register and marked as valid.

To create and derive a seed the following sequence of operations are needed.

Create device unique seed
  1. Create three 128-bit random numbers using CRACEN RNG.
  2. Provision the random numbers to KMU slots 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 (random number results from CRACEN.RND operation in step 1)
Load seed from KMU to CRACEN
  1. Push the KMU slots where the seed is stored (KMU slots 0, 1, and 2).
  2. Once all SEED registers have been pushed, CRACEN locks the SEED register and validates the seed for the IKG.
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
CRACENGLOBAL0x50059000HFSNSANoCrypto 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 0x50018000) 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 0x5001C000) 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.
SEEDVALID0x404Indicates the SEED register is valid. Writing this register has no effect.
SEED[n]0x410

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

This register is only writable from KMU.

SEEDLOCK0x440Indicates the access to the SEED register is locked. Writing this register has no effect.
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

Indicates the SEED register is valid. Writing this register has no effect.

This register is set when all SEED registers have been written, and the SEED is now valid.

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

Indicates the access to the SEED register is locked. Writing this register has no effect.

This register is set when all SEED registers have been written, and the SEED is now locked.

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
CRACENCOREGLOBAL0x50010000HFSNSANoCRACEN core

Configuration

InstanceDomainConfiguration
CRACENCOREGLOBAL

Access to CRACENCORE registers is blocked while KMU is performing a PUSH operation.

CRYPTMSTRDMA registers included

CRYPTMSTRHW registers included

RNGCONTROL registers included

PK registers included

IKG registers included

RNGDATA registers included

Apply reset values for registers in Lite Medium configuration

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 cut-off register.
RNGCONTROL.PROPTESTCUTOFF0x1028Proportion test cut-off register.
RNGCONTROL.LFSRSEED0x102CLFSR seed register.
RNGCONTROL.STATUS0x1030Status register.
RNGCONTROL.WARMUPPERIOD0x1034Number of clock cycles in warm-up sequence.
RNGCONTROL.DISABLEOSC0x1038DisableOsc register.
RNGCONTROL.SAMPLINGPERIOD0x1044Number of clock cycles between sampling moments.
RNGCONTROL.HWCONFIG0x1058Hardware configuration register.
RNGCONTROL.COOLDOWNPERIOD0x105CNumber of clock cycles in cool-down sequence.
RNGCONTROL.AUTOCORRTESTCUTOFF00x1060AutoCorrTestCutoff register 0
RNGCONTROL.AUTOCORRTESTCUTOFF10x1064AutoCorrTestCutoff register 1
RNGCONTROL.CORRTESTCUTOFF00x1068CorrTestCutoff register 0
RNGCONTROL.CORRTESTCUTOFF10x106CCorrTestCutoff register 1
RNGCONTROL.AUTOCORRTESTFAILED0x1070Auto-correlation test failing ring(s).
RNGCONTROL.CORRTESTFAILED0x1074Correlation test failing ring.
RNGCONTROL.HWVERSION0x107CFixed to 1 for this version.
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.ECCERRORBITPOS0x2040ECC Error bit position register.
PK.ECCCONTROLSTATUSREG0x2044ECC Control and Status register.
PK.MICROCODEFORMAT0x2078Microcode Format register.
PK.HWVERSION0x207CHardware Version 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
IDDCBAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWFETCHLENLength of data block
BRWFETCHCSTADDRConstant address
CRWFETCHREALIGNRealign length
DRWFETCHZPADDING

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). Set the bit to '1' for a duration of 300 ns before setting to zero again.

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
IDONMLKJIHGFEDCBA
Reset 0x0000067100000000000000000000011001110001
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

ORBA422ARIAINCLUDED

Generic g_IncludeAria value.

BA424–Aria IP included if set

CRYPTMSTRHW.BA411EAESHWCFG1

Address offset: 0x404

Generic g_AesModesPoss value.

Bit number313029282726252423222120191817161514131211109876543210
IDFEDDDCBAAAAAAAAA
Reset 0x1D02016700011101000000100000000101100111
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.

ERCONTEXTEN

Generic g_CxSwitch value.

BA411E-AES engine configuration.

FRGLITCHPROT

Generic g_GlitchProtection value.

BA411E-AES engine configuration.

CRYPTMSTRHW.BA411EAESHWCFG2

Address offset: 0x408

Generic g_CtrSize value.

BA411E-AES engine configuration.

Bit number313029282726252423222120191817161514131211109876543210
IDCCCCBBBBAAAAAAAAAAAAAAAA
Reset 0x0200001000000010000000000000000000010000
IDR/WFieldValue IDValueDescription
ARBA411EAESHWCFG2

Maximum size in bits for the counter in CTR and CCM modes (g_CtrSize value).

BA411E-AES engine configuration.

BRNBEXTAESKEYS

Generic g_Ext_nb_AES_keys value.

BA411E-AES engine configuration.

CRNBIKGAESKEYS

Generic g_IKG_nb_AES_keys value.

BA411E-AES engine configuration.

CRYPTMSTRHW.BA413HASHHWCFG

Address offset: 0x40C

Generic g_Hash value

Bit number313029282726252423222120191817161514131211109876543210
IDFFFFEEEEDCBAAAAAAA
Reset 0x0001003E00000000000000010000000000111110
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.

ERNBEXTHASHKEYS

Generic g_Ext_nb_Hash_keys value.

BA413-Hash number of Hash HW keys.

FRNBIKGHASHKEYS

Generic g_IKG_nb_Hash_keys value.

BA413-Hash number of Hash IKG keys.

CRYPTMSTRHW.BA418SHA3HWCFG

Address offset: 0x410

Generic g_Sha3CtxtEn value.

BA418-SHA3 configuration.

Bit number313029282726252423222120191817161514131211109876543210
IDEEEEDDDDCBA
Reset 0x0000000100000000000000000000000000000001
IDR/WFieldValue IDValueDescription
ARBA418SHA3HWCFG

Generic g_Sha3CtxtEn value.

BA418-SHA3 configuration.

BRHMAC

HMAC enabled.

BA418-SHA3 configuration.

CRVERIFYDIGEST

Support to digest verification.

BA418-SHA3 configuration.

DRNBEXTHASHKEYS

Number of SHA3 HW keys.

BA418-SHA3 configuration.

ERNBIKGHASHKEYS

Number of SHA3 IKG keys.

BA418-SHA3 configuration.

CRYPTMSTRHW.BA419SM4HWCFG

Address offset: 0x414

Generic g_SM4ModesPoss value.

BA419-SM4 engine configuration.

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
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 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARBA424ARIAHWCFG

Generic g_aria_modePoss value.

BA424-Aria engine configuration.

RNGCONTROL.CONTROL

Address offset: 0x1000

Control register

Bit number313029282726252423222120191817161514131211109876543210
IDPPOOONNMLKJJJJIHGFEDCBA
Reset 0x0004000000000000000001000000000000000000
IDR/WFieldValue IDValueDescription
AWENABLEStart the NDRNG. Self-clearing bit.
BRWLFSRENSelect between the NDRNG with asynchronous free running 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).
ERWINTENREPEnable interrupt if any of the health test fails.
FRWINTENFULLEnable interrupt if FIFO is full.
GRWSOFTRSTDatapath content flush and control FSM
HRWFORCEACTIVEROSForce oscillators to run when FIFO is full.
IRWIGNOREHEALTHTESTSFAILFORFSM

Results of the health tests during start-up and online test do not affect the control FSM state.

It also bypass control FSM StartUp phase.

JRWNB128BITBLOCKS

Number of 128 bit blocks used in conditioning (AES-CBC-MAC) post-processing.

Zero value is not allowed.

KRWFIFOWRITESTARTUPEnable write of the samples in the FIFO during start-up.
LRWDISREPETTESTSAll repetition tests (each share) are disabled via this single bit.
MRWDISPROPTESTSAll proportion tests (each share) are disabled via this single bit.
NRWDISAUTOCORRTESTS

Disable specific delay(s) check in auto-correlation test - same RO:

x1: vs. the following sample of the same RO -> (0) delay check

1x: vs. the later sample of the same RO -> (+1) delay check

ORWDISCORRTESTS

Disable specific delay(s) check in correlation test - different ROs:

xx1: vs. the same sample of the other RO -> (0) delay check

x1x: vs. the preceding sample of the other RO -> (-1) delay check

1xx: vs. the next sample of the other RO -> (+1) delay check

PRWBLENDINGMETHODSelect blending method
CONCATENATION0Concatenation
XORLEVEL11XOR level 1
XORLEVEL22XOR level 2
VONNEUMANN3VON-NEUMANN debiasing

RNGCONTROL.FIFOLEVEL

Address offset: 0x1004

FIFO level register.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWFIFOLEVEL

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

Any write 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 when writing this register, 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.

RNGCONTROL.KEY[n]

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

Key register.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWKEY

Key register.

Key0 is byte 0-3, Key1 is byte 4-7, Key2 is byte 8-11 and Key3 is byte 12-15.

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 cut-off register.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAA
Reset 0x0000000400000000000000000000000000000100
IDR/WFieldValue IDValueDescription
ARWREPEATTHRESHOLDRepetition Test cut-off value.

RNGCONTROL.PROPTESTCUTOFF

Address offset: 0x1028

Proportion test cut-off register.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAA
Reset 0x0000000D00000000000000000000000000001101
IDR/WFieldValue IDValueDescription
ARWPROPTESTCUTOFFProportion test cut-off value.

RNGCONTROL.LFSRSEED

Address offset: 0x102C

LFSR seed register.

Bit number313029282726252423222120191817161514131211109876543210
IDBBAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x00FFFFFF00000000111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWLFSRSEEDLFSR initialization value.
BWLFSRSSELECTIONShare index for which initialization value should be used.

RNGCONTROL.STATUS

Address offset: 0x1030

Status register.

Bit number313029282726252423222120191817161514131211109876543210
IDJIIIIHHHHGFEDCBBBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARTESTDATABUSYHigh when data written to TestData register is being processed.
BRSTATEState of the control FSM:
RESET0Reset
STARTUP1Startup
IDLERON2Idle / FIFO full
FILLFIFO4Fill FIFO
ERROR5Error
CRREPFAILNIST repetition test(s) failure.
DRPROPFAILNIST proportion test(s) failure.
ERW
W0C
ANYHEALTHTESTFAILAny of the enabled health tests is failing.
FRFULLINTFIFO full status.
GRW
W0C
STARTUPFAILStart-up test(s) failure.
HRREPTESTFAILPERSHARENIST Repetition test failure per share.
IRPROPTESTFAILPERSHARENIST Proportion test failure per share.
JRW
W0C
CONDITIONINGISTOOSLOW

Conditioning consumes data slower than they are provided to it.

This can happen for SAMPLINGPERIOD < 15, BLENDINGMETHOD = CONCATENATION, or four shares.

RNGCONTROL.WARMUPPERIOD

Address offset: 0x1034

Number of clock cycles in warm-up sequence.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAA
Reset 0x0000020000000000000000000000001000000000
IDR/WFieldValue IDValueDescription
ARWWARMUPPERIODNumber of clock cycles in warm-up sequence.

RNGCONTROL.DISABLEOSC

Address offset: 0x1038

DisableOsc register.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDISABLEOSC

Disable oscillator rings.

Oscillators are grouped in shares. Each group of 8 bits controls one share: bits [7:0] disable oscillators from the first share, bits [15:8] disable oscillators from the second share, bits [23:16] disable oscillators from the third share, and bits [31:24] disable oscillators from the fourth share.

RNGCONTROL.SAMPLINGPERIOD

Address offset: 0x1044

Number of clock cycles between sampling moments.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAA
Reset 0x00000FFF00000000000000000000111111111111
IDR/WFieldValue IDValueDescription
ARWSAMPLINGPERIODNumber of clock cycles between sampling moments.

RNGCONTROL.HWCONFIG

Address offset: 0x1058

Hardware configuration register.

Bit number313029282726252423222120191817161514131211109876543210
IDDDCCCCBBBBAAAAAAAA
Reset 0x0002410F00000000000000100100000100001111
IDR/WFieldValue IDValueDescription
ARNBOFINVGeneric g_NbOfInverters value.
BRLOG2NBOFAUTOCORRTESTSPERSHAREGeneric g_Log2NbOfAutoCorrTestsPerShare value.
CRLOG2FIFODEPTHGeneric g_Log2FifoDepth value.
DRLOG2NBOFSHARESGeneric g_Log2NbOfShares value.

RNGCONTROL.COOLDOWNPERIOD

Address offset: 0x105C

Number of clock cycles in cool-down sequence.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCOOLDOWNPERIODNumber of clock cycles in cool-down sequence.

RNGCONTROL.AUTOCORRTESTCUTOFF0

Address offset: 0x1060

AutoCorrTestCutoff register 0

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBBBBAAAAAAA
Reset 0x007F007F00000000011111110000000001111111
IDR/WFieldValue IDValueDescription
ARWDLYZEROCUTOFFAuto-correlation test cut-off value for delay of 0 samples.
BRWDLYONECUTOFFAuto-correlation test cut-off value for delay of +1 sample.

RNGCONTROL.AUTOCORRTESTCUTOFF1

Address offset: 0x1064

AutoCorrTestCutoff register 1

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBBBBAAAAAAA
Reset 0x007F007F00000000011111110000000001111111
IDR/WFieldValue IDValueDescription
ARWDLYTWOCUTOFFAuto-correlation test cut-off value for delay of +2 samples.
BRWDLYTHREECUTOFFAuto-correlation test cut-off value for delay of +3 samples.

RNGCONTROL.CORRTESTCUTOFF0

Address offset: 0x1068

CorrTestCutoff register 0

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBBBBAAAAAAA
Reset 0x007F007F00000000011111110000000001111111
IDR/WFieldValue IDValueDescription
ARWDLYZEROCUTOFFCorrelation test cut-off value for delay of 0 samples.
BRWDLYONECUTOFFCorrelation test cut-off value for delay of +/-1 sample.

RNGCONTROL.CORRTESTCUTOFF1

Address offset: 0x106C

CorrTestCutoff register 1

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAA
Reset 0x007F007F00000000011111110000000001111111
IDR/WFieldValue IDValueDescription
ARWDLYTWOCUTOFFCorrelation test cut-off value for delay of +/- 2 samples.
BRWDLYTHREECUTOFFCorrelation test cut-off value for delay of +/- 3 samples.

RNGCONTROL.AUTOCORRTESTFAILED

Address offset: 0x1070

Auto-correlation test failing ring(s).

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARAUTOCORRTESTFAILEDAuto-correlation test failing ring(s).

RNGCONTROL.CORRTESTFAILED

Address offset: 0x1074

Correlation test failing ring.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARCORRTESTFAILEDCorrelation test failing ring.

RNGCONTROL.HWVERSION

Address offset: 0x107C

Fixed to 1 for this version.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000100000000000000000000000000000001
IDR/WFieldValue IDValueDescription
ARHWVERSIONFixed to 1 for this version.

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
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWTIMERNumber of clock cycles (as the number of core cycles is always even, register bit 0 is tied to zero).

PK.HWCONFIG

Address offset: 0x2018

Hardware configuration register.

Bit number313029282726252423222120191817161514131211109876543210
IDPONMLKJIHGFEDCBBBBAAAAAAAAAAAA
Reset 0x01F3020000000001111100110000001000000000
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.
ERDATAMEMECCSupport data memory error correction.
FRCODEMEMECCSupport code memory error correction.
GRP256Support ECC P256 acceleration.
HRP384Support ECC P384 acceleration.
IRP521Support ECC P521 acceleration.
JRP192Support ECC P192 acceleration.
KRX25519Support Curve25519/Ed25519 acceleration.
LRAHBMASTERMemory access
SLAVE0Memory access through AHB Slave and internally in the PKE.
MASTER1Memory access through AHB Master, outside the PKE.
MRCODERAMCode memory
ROM0Code memory is a ROM.
RAM1Code memory is a RAM.
NRDISABLESMXState of DisableSMx input (high when SM2/SM9 operations are disabled).
ORDISABLECLRMEMState of DisableClrMem input (high when automatic clear of the RAM after reset is disabled).
PRDISABLECMState 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.
OPSIZE40960x10004096 bytes.

PK.ECCERRORBITPOS

Address offset: 0x2040

ECC Error bit position register.

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBBBBBBBAAAAAAAAAA
Reset 0x03FF03FF00000011111111110000001111111111
IDR/WFieldValue IDValueDescription
ARWERRORBITPOS1Position of error bit 1
BRWERRORBITPOS2Position of error bit 2

PK.ECCCONTROLSTATUSREG

Address offset: 0x2044

ECC Control and Status register.

Bit number313029282726252423222120191817161514131211109876543210
IDDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARW
W1C
DATAMEMCORRECTIONData Memory Correction flag, clear on write
BRW
W1C
DATAMEMFAILUREData Memory Failure flag, clear on write
CRW
W1C
CODEMEMCORRECTIONCode Memory Correction flag, clear on write
DRW
W1C
CODEMEMFAILURECode Memory Failure flag, clear on write

PK.MICROCODEFORMAT

Address offset: 0x2078

Microcode Format register.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0xD4B79DDA11010100101101111001110111011010
IDR/WFieldValue IDValueDescription
ARMICROCODEFORMATMicrocode format number.

PK.HWVERSION

Address offset: 0x207C

Hardware Version register.

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAA
Reset 0x0001000100000000000000010000000000000001
IDR/WFieldValue IDValueDescription
ARMINORMinor version number.
BRMAJORMajor version number.

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.