Datasheet

Table Of Contents
...........continued
Parameter Type Direction Location Data Length Before
Executing the
Service
After Executing
the Service
nu1CnsBase nu1 I Crypto
RAM
u2ModLength + 8
or 64 bytes
Base of Cns Base of Cns
untouched
u2ModLength u2 I Length of N Length of N
nu1XBase nu1 I Crypto
RAM
u2XLength or
u2ModLength + 4
(see Note 1)
Base of X Base of X (see
Note 2)
u2XLength u2 I Length of X Length of X
nu1YBase nu1 I Crypto
RAM
u2YLength Base of Y Base of Y
u2YLength u2 I Length of Y Length of Y
nu1ZBase nu1 I Crypto
RAM
u2XLength +
u2YLength
Base of Z Base of Z
untouched
nu1RBase nu1 I Crypto
RAM
u2XLength +
u2YLength
Base of R Base of R (see
Note 3)
Note: 
1. In case of a reduction option is specified, if necessary, the area X will be extended to u2ModLength
+ 4 bytes.
2. If FMult is without reduction, X is untouched. If FMult is with reduction, X is filled with the final
result.
3. If FMult is without reduction, R is filled with the final result. If FMult is with reduction, R is corrupted.
43.3.4.9.5 Available Options
The options are set by the u2Options input parameter, which is composed of:
the mandatory Full Multiplication operation option described in Table 43-26
the mandatory CarryOperand option described in Table 43-27 and Table 43-28
the facultative Modular Reduction option (see 43.3.5.1 Modular Reduction). If the Modular Reduction
is not requested, this option is absent.
The u2Options number is calculated by an Inclusive OR of the options.
Some Examples in C language are:
Operation: Full Multiply only without carry and without Modular Reduction
PUKCL(u2Options) = SET_MULTIPLIEROPTION(PUKCL_FMULT_ONLY) |
SET_CARRYOPTION(CARRY_NONE);
Operation: Full Multiply with addition with Specific/CarryIn addition and with Fast Modular Reduction
PUKCL(u2Options) = SET_MULTIPLIEROPTION(PUKCL_FMULT_ADD) |
SET_CARRYOPTION(ADD_CARRY) |
PUKCL_REDMOD_REDUCTION |
PUKCL_REDMOD_USING_FASTRED;
SAM D5x/E5x Family Data Sheet
Public Key Cryptography Controller (PUKCC)
© 2019 Microchip Technology Inc.
Datasheet
DS60001507E-page 1466