Datasheet

Table Of Contents
In the generation of a random number from the Deterministic RNG service, the following parameters need
to be provided:
XKey the input and output Key (pointed by {nu1XKeyBase,u2XKeyLength})
XSeed the input Seed (pointed by {nu1XseedBase,u2XKeyLength})
Q the prime number (pointed by {nu1QBase, 20bytes})
R the generated number area (pointed by {nu1RBase, 20bytes})
43.3.4.13.5 Hardware RNG Parameters Definition
The parameters for the generation of random from the Hardware RNG are described in the following
table. This service can easily be accessed through the use of the PUKCL_Rng() and PUKCL() macros.
Table 43-39. RNG Service Hardware Generated Parameters
Parameter Type Dir. Location Data Length Before Executing
the Service
After Executing the
Service
u2Options u2 I Option (see Table
43-41)
Option (see Table 43-41)
nu1RBase nu1 I Crypto RAM or
Device RAM
u2RLength Base of R Base of R filled with
random values
depending on the option
u2RLength u2 I Length of R Length of R
43.3.4.13.6 Deterministic RNG Parameters Definition
The parameters for the generation of random from the Deterministic RNG are described in the following
table. This service can easily be accessed through the use of the PUKCL_Rng() and PUKCL() macros.
Table 43-40. RNG Service Deterministic Generated Parameters
Parameter Type Direction Location Data Length Before
Executing the
Service
After
Executing the
Service
u2Options u2 I Option (see
Table 43-41)
Option (see
Table 43-41)
nu1XKeyBase nu1 I/O Crypto
RAM
u2XKeyLength Base of XKey Base of XKey
filled with the
resulting XKey
nu1Workspace nu1 NA Crypto
RAM
64 bytes Base of the
workspace
Base of the
workspace
corrupted
nu1Workspace2
(see Note 1)
nu1 NA Crypto
RAM
2*u1XKeyLength + 4 Base of the
workspace 2
Base of the
workspace
corrupted
nu1XSeedBase nu1 I/O Crypto
RAM
max
( 2*u2XKeyLength,
44 bytes)
Base of the
values
XSeed[0] and
XSeed[1]
Base of XSeed
filled with the
result on 20
bytes
SAM D5x/E5x Family Data Sheet
Public Key Cryptography Controller (PUKCC)
© 2019 Microchip Technology Inc.
Datasheet
DS60001507E-page 1481