Datasheet

Table Of Contents
R (pointed by {nu1RBase,u2ModLength}) to contain the calculated Remainder.
The service name for this operation is Div.
43.3.4.11.4 Parameters Definition
Table 43-35. Div Service Parameters
Parameter Type Dir. Location Data Length Before Executing
the Service
After Executing
the Service
Specific/Gf2n Bit I GF(2n) Bit
nu1NumBase nu1 I Crypto RAM u2NumLength Base of Num
Filled with the
Numerator
Base of Num
Filled with the
Remainder
u2NumLength u2 I Length of the
Numerator
Length of the
Numerator
nu1ModBase nu1 I Crypto RAM u2ModLengt Base of the
Divisor
Base of the
Divisor untouched
u2ModLength u2 I Length of the
Divisor
Length of the
Divisor
nu1QuoBase (see
Note 1)
nu1 I Crypto RAM u2NumLength -
u2ModLength + 4
Base of the
Quotient
Base of the
Quotient
nu1WorkSpace nu1 I Crypto RAM GF(p): 64
GF(2n): 68
Base of the
WorkSpace
Base of the
WorkSpace
corrupted
nu1RBase ( see
Note 2)
nu1 I Crypto RAM u2ModLength Base of the
Remainder
Base of the
Remainder
Note: 
1. If the quotient is not needed, set nu1QuoBase to zero and the quotient will not be written to
memory. If the quotient is needed, set the nu1QuoBase to the beginning of an area of size
(u2NumLength - u2ModLength + 4) to write the whole quotient.
2. The Remainder is present in the area {nu1NumBase, u2NumLength} at the end of the calculus. The
nu1RBase parameter makes it possible to copy this result in the other area {nu1RBase,
u2ModLength}, if this copy is not needed, set nu1RBase to the same value as nu1NumBase and
the copy will not be done.
SAM D5x/E5x Family Data Sheet
Public Key Cryptography Controller (PUKCC)
© 2019 Microchip Technology Inc.
Datasheet
DS60001507E-page 1475