A montgomery modular multiplication calculation method suitable for embedded systems
An embedded system and calculation method technology, which is applied in the direction of calculation using non-numerical representation, calculation using residual algorithm, calculation, etc., can solve problems such as inability to use, improve implementation efficiency, and reduce the number of memory accesses Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0046] The method of the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.
[0047] A kind of Montgomery modular multiplication calculation method applicable to embedded systems, said method comprising:
[0048] Step 1) If the large number N is an m-bit prime number, and the word length of the processor is W bits, then the word size of N is A, B are two N residual classes, namely 0nW , n 0 '=-n 0 -1 mod r, n 0 is the lowest bit of N; select d, d is the word size of the inner loop (using operand scanning); then the size of the outer loop (using product scanning) is It is the smallest integer operation greater than or equal to it;
[0049] Step 2) Calculate the modular multiplication result C of A and B, the calculation process is:
[0050] 1) C=A*B;
[0051] 2) M=C*n 0 'mod R;
[0052] 3) C=(C+M*N) / R.;
[0053] Such as image 3 As shown, A and B represent 2 m-bit multi-precision int...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


