Modular inverse operating method and operational unit

A modulo inverse operation and operator technology, applied in the field of modulo inverse operation methods and operators, can solve the problems of complex implementation, inability to obtain the modulo of any non-zero integer, complex calculation process, etc., so as to reduce hardware power consumption and improve operation speed. , the effect of improving computing efficiency

Inactive Publication Date: 2017-10-10
张家豪
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Using the divider as the hardware operation unit, the implementation is still relatively complicated
The binary extended Euclidean algorithm converts division into shifting and addition and subtraction. However, during the shifting process, the weight of the operand changes, and the final operation result contains 2n (n is the bit of the operand Long) item weight factor, removing the weight factor requires multiple operations of dividing by 2, therefore, the modulus must be an odd number
The existing binary extended Euclidean algorithm method still has certain limitations in the modular inverse operation, it cannot be used to calculate the modulus for any non-zero integer, and the calculation process is relatively complicated

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] The existing binary extended Euclidean algorithm converts division into shift and addition and subtraction. However, in the process of shifting, the weight of operands has changed, and the final operation result contains 2 n (n is the bit length of the operand) item weight factor, the operation of dividing by 2 needs to be performed multiple times to remove the weight factor, therefore, the modulus must be an odd number. However, the existing binary extended Euclidean algorithm method still has certain limitations when performing modular inversion operations, and cannot perform modulo calculations for any non-zero integers, and the calculation process is relatively complicated.

[0036] The present invention proposes a modular inverse operation,

[0037] Given the positive integers u and m, find u -1 mod m, characterized in that it comprises the steps of:

[0038] S1, if m is an odd number, then n1=u, n2=m, flag bit flag=0; otherwise m is not an odd number: if u is an...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a modulo inversion operation method and an arithmetic unit. The positive integers u and m are known, and u‑1modm is calculated. In the modular inverse operation method and arithmetic unit provided by the present invention, the algorithm only needs to add one flag bit, and at most one multiplication and two subtraction operations, which can greatly improve the operation speed, and has the characteristics of versatility and high efficiency in terms of hardware implementation; Compared with the existing binary extended Euclidean algorithm, there is no need to eliminate the weight factor of the operation result, and the modulus is not limited to be an odd number, and the modulus inverse operation of any non-zero integer can be realized, and Improve the computational efficiency of modular inverse operations and reduce hardware power consumption.

Description

technical field [0001] The invention relates to the technical field of modular inverse calculation, and more specifically, relates to a modular inverse calculation method and a computing device. Background technique [0002] Modular inverse operations are widely used in public key cryptosystems. For example, modular inverse operations are used in the generation of decryption keys in the RSA algorithm. Modular inverse operations can also be used in point addition and point multiplication in elliptic curve cryptographic algorithms. [0003] At present, the methods for solving modular inverse operations mainly include modular exponentiation algorithm, extended Euclidean algorithm, and binary extended Euclidean algorithm. The modular exponentiation algorithm is based on Fermat's little theorem, and converts the modular inversion operation into a modular exponentiation operation, but the modular exponentiation algorithm cannot determine whether the modular inversion result exists...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F7/72
CPCG06F7/72
Inventor 张家豪张云峰武阿娜
Owner 张家豪
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products