MSC8144E Reference Manual, Rev. 3
26-28
Freescale
Semiconductor
Security Engine (SEC)
In prime field elliptic curve cryptography, the modulus should be a large prime number.
In polynomial field elliptic curve cryptography, the modulus should be a bit string
representing a large irreducible polynomial.
in RSA, the modulus should be a product of two large prime numbers.
The following sections give a brief description of the function performed by each routine using
the inputs, outputs, and requirements.
26.4.1.11.1 CLEARMEMORY: Clear Memory (0x01)
Input: Data Size (Note: this register must be loaded, but the value is not used.)
Output: A=0, B=0, E=0, N=0
Requirements:
— minimum Data Size = 97
— maximum Data Size = 2048
26.4.1.11.2 MOD_EXP: Prime field (F
p
) Exponential mod N and Deconvert From
Montgomery Format (0x02)
Input:
— N = modulus, an odd number (If an even number is supplied, the EVM—even modulus
error bit in the PKEU Interrupt Status Register is set by the SEC.)
— Data Size =
the number of significant bits in N
— A = field element in Montgomery format
— E = Exponent
— Key Size =
the number of significant bytes in E
Output: B = A
E
mod N, a field element, non-Montgomery format
Requirements:
— minimum modulus size = 97 bits
— maximum modulus size = 2048 bits
— E > 1
— maximum key (exponent) size 256 bytes
— A < N
26.4.1.11.3 MOD_R2MODN: Prime Field (F
p
) Compute Montgomery Converter
Constant (0x03)
Input:
— N = modulus. For a mathematically meaningful result, N should be odd.
— Data Size =
the number of significant bits in N
Output: B = R
2
mod N, where R = 2
Sz’(N)
Requirements:
— minimum modulus size = 97 bits
— maximum modulus size = 2048 bits
Summary of Contents for MSC8144E
Page 1: ...MSC8144E Reference Manual Quad Core Media Signal Processor MSC8144ERM Rev 3 July 2009 ...
Page 48: ...MSC8144E Reference Manual Rev 3 xlviii Freescale Semiconductor ...
Page 86: ...MSC8144E Reference Manual Rev 3 1 38 Freescale Semiconductor Overview ...
Page 168: ...MSC8144E Reference Manual Rev 3 3 60 Freescale Semiconductor External Signals ...
Page 242: ...MSC8144E Reference Manual Rev 3 5 26 Freescale Semiconductor Reset ...
Page 314: ...MSC8144E Reference Manual Rev 3 8 24 Freescale Semiconductor General Configuration Registers ...
Page 414: ...MSC8144E Reference Manual Rev 3 10 14 Freescale Semiconductor MSC8144E SC3400 DSP Subsystem ...
Page 452: ...MSC8144E Reference Manual Rev 3 11 38 Freescale Semiconductor Internal Memory Subsystem ...
Page 520: ...MSC8144E Reference Manual Rev 3 12 68 Freescale Semiconductor DDR SDRAM Memory Controller ...
Page 1070: ...MSC8144E Reference Manual Rev 3 21 28 Freescale Semiconductor Timers ...