A public-private key cryptosystem based on integer reversibility of clamping matrix

Through the integer reversible public and private key cryptography system based on the clamp matrix, the existing technology's problems of relying on rare prime numbers and being easily broken by quantum computing are solved. It achieves low-cost and fast key generation and forward security, and is suitable for frequent key replacement. , to resist quantum computing attacks.

CN114826598BActive Publication Date: 2024-10-25ZHEJIANG UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210465885.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-29
Publication Date
2024-10-25
Estimated Expiration
2042-04-29

AI Technical Summary

Technical Problem

The existing public and private key cryptosystems rely on rare prime number resources. Key generation costs are high and difficult to replace. They are easily broken by quantum computing and have signature and encryption reuse issues.

Method used

An integer reversible public-private key cryptography system based on a clamp matrix is ​​used. Keys are generated by randomly generating a clamp matrix, and integer matrix multiplication is used for encryption, decryption and signature operations. It is suitable for frequent key changes and resists quantum computing attacks.

Benefits of technology

It achieves low-cost and fast key generation, is suitable for frequent key replacement, resists quantum computing attacks, reduces computing costs, and ensures forward security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114826598B_ABST
    Figure CN114826598B_ABST
Patent Text Reader

Abstract

This invention discloses a public-private key cryptosystem based on the integer invertibility of clamped matrices, comprising the following steps: 1.1) Randomly generating two n-order clamped matrices as seeds A and B; 1.2) Calculating V1, U1, V2, and U2; 1.3) Generating a key pair, V1U2 and V2U1; 2.1) Digitizing plaintext characters into 0 to 10. 2k+1 The method involves: 1) generating a non-negative integer between -1 and 2) mapping the plaintext to be encrypted sequentially to matrix M; 2.2) encryption operation; 2.3) decryption operation; 3.1) generating a digest of the plaintext to be signed and mapping it to matrix M; 3.2) signing operation; 3.3) verifying the signature. This invention provides a low-cost and fast public-private key encryption method that does not rely on rare prime number resources. It utilizes integer matrix multiplication to construct the cryptographic system, and key generation is simple and frequent, suitable for applications where keys are frequently changed, thus effectively ensuring forward security.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of cryptographic systems, and in particular to a public-private key cryptographic system based on integer reversibility of a clamping matrix. Background Art

[0002] The mainstream public-private key cryptosystems include RSA system, Elgamal algorithm and elliptic cryptosystem. The most commonly used one is RSA system with additional random padding. RSA is a type of algorithm designed by taking advantage of the difficulty of factoring large numbers. All public-private key cryptosystems use a mechanism called one-way function to separate the public and private roles of keys, that is, knowing one of them, it is not feasible to solve the other in practice. The key design of the above RSA algorithm and Elgamal algorithm requires finding one or two large prime numbers. Especially in today's increasingly abundant computing resources, finding a large prime number that is not controlled by a third party is still quite costly. In industrial practice, the so-called signature and encryption symmetry problem for public-private key cryptosystems is also due to the difficulty of key generation, which is caused by the reuse of a pair of keys in encryption and signature. In addition, these traditional public key cryptosystems are attacked by quantum computing due to the commutativity based on number field computing. Now the so-called post-quantum cryptography is to find a cryptosystem that can resist quantum attacks based on traditional computing. Summary of the invention

[0003] In view of the problems existing in the prior art, the present invention provides a public-private key cryptographic system based on the integer reversibility of the clamped matrix. The key generation is low-cost and fast, and the public-private key encryption method does not rely on rare prime number resources; the cryptographic system is constructed by integer matrix multiplication, and the key generation can be simple and high-frequency, which is suitable for occasions where the key is frequently changed, thereby effectively ensuring forward security.

[0004] The technical solution of the present invention is as follows:

[0005] A public-private key cryptographic system based on integer reversibility of a clamping matrix comprises the following steps:

[0006] 1) Generate a key:

[0007] 1.1) Randomly generate two n-order clamp matrices A and B, each element of which is between 0 and 10 2k+1 -A random number between 1 and 2;

[0008] 1.2) Calculate V1 = 10A + E, U1 = (10A) 2k -(10A) 2k-1 +...+(10A) 2 -(10A)+E and V2=10B+E, U2=(10B) 2k -(10B) 2k-1+...+(10B) 2 -(10B)+E; E is an n-order unit matrix. The above calculations are all multiplication, addition or subtraction of the clamping mechanism, and the subtraction also satisfies the condition that the minuend is greater than the subtrahend;

[0009] 1.3) Generate a pair of keys, V1U2 and V2U1, use one of them, V1U2, as the public key, and the remaining one, V2U1, as the private key;

[0010] 2) Encryption and decryption algorithm:

[0011] 2.1) Digitize the plaintext characters to 0 to 10 2k+1 -1, and the plaintext to be encrypted is sequentially mapped to the matrix M, where M is the clamping matrix;

[0012] 2.2) Encryption operation, perform matrix multiplication C=V1U2M, the matrix C is the ciphertext, and the matrix calculation is under the action of the clamping mechanism;

[0013] 2.3) Decryption operation: first use the private key to perform matrix multiplication, that is, calculate V2U1C. The matrix calculation is also under the action of the clamping mechanism. The decrypted plaintext is the clamping matrix V2U1C.

[0014] 3) Signature algorithm:

[0015] 3.1) Generate the plaintext summary to be signed and map it to the matrix M;

[0016] 3.2) Signature operation, perform matrix multiplication C=MV2U1, the matrix C is the signature;

[0017] 3.3) To verify the signature, first use the public key to perform matrix multiplication, that is, calculate CV1U2, and verify whether the clamped matrix CV1U2 is M to confirm the authenticity of the signature.

[0018] The beneficial effects of the present invention are as follows:

[0019] 1) The key generation of the present invention is low-cost and fast, and the public-private key encryption method does not rely on rare prime number resources. The cryptographic system is constructed by using integer matrix multiplication. The key generation can be simple and high-frequency, which is suitable for occasions where keys are frequently changed, thereby effectively ensuring forward security.

[0020] 2) The computing unit of the present invention is a matrix. Since matrix multiplication does not satisfy the commutative law, it cannot be attacked by quantum computing. Therefore, the design of the present invention is also in line with the trend of the post-quantum cryptography era.

[0021] 3) The encrypted data processing method of the present invention is batch processing, which is different from the traditional mode of processing data point by point, and the larger the scale of batch processing, the more difficult it is to crack; in addition, the batch processing mode makes it computationally cheaper than general systems. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 It is a system flow chart of the present invention. DETAILED DESCRIPTION

[0023] The present invention will be further described below in conjunction with the accompanying drawings.

[0024] like Figure 1 As shown, a public-private key cryptographic system based on integer reversibility of a clamping matrix specifically comprises the following steps:

[0025] 1) Generate a key:

[0026] 1.1) Randomly generate two n-order clamp matrices as seeds A and B, each element of these two matrices is 0 to 10 2k +1 -A random number between 1 and 2;

[0027] 1.2) Calculate V1 = 10A + E, U1 = (10A) 2k -(10A) 2k-1 +...+(10A) 2 -(10A)+E and V2=10B+E, U2=(10B) 2k -(10B) 2k-1 +...+(10B) 2 -(10B)+E; E is an n-order unit matrix. The above calculations are all multiplication, addition or subtraction of the clamping mechanism, and the subtraction also satisfies the condition that the minuend is greater than the subtrahend;

[0028] 1.3) Generate a pair of keys, V1U2 and V2U1, use one of them, V1U2, as the public key, and the remaining one, V2U1, as the private key;

[0029] 2) Encryption and decryption algorithm:

[0030] 2.1) Digitize the plain text characters into 0 to 10 2k+1 -1, and the plaintext to be encrypted is sequentially mapped to the matrix M, where M is the clamping matrix;

[0031] 2.2) Encryption operation, perform matrix multiplication C=V1U2M, the matrix C is the ciphertext, and the matrix calculation is under the action of the clamping mechanism;

[0032] 2.3) Decryption operation: first use the private key to perform matrix multiplication, that is, calculate V2U1C. The matrix calculation is also under the action of the clamping mechanism. The decrypted plaintext is the clamping matrix V2U1C.

[0033] 3) Signature algorithm:

[0034] 3.1) Generate the plaintext summary to be signed and map it to the matrix M;

[0035] 3.2) Signature operation, perform matrix multiplication C=MV2U1, the matrix C is the signature;

[0036] 3.3) To verify the signature, first use the public key to perform matrix multiplication, that is, calculate CV1U2, and verify whether the clamped matrix CV1U2 is M to confirm the authenticity of the signature.

[0037] In this system, k and n are known parameters of both parties, and the role of the private key V2U1 is not fixed. If it is used as a public key, then the private key is V1U2. Mathematically, it can be proved that all key attack methods are reduced to guessing A and B, and the probability of guessing correctly is When k = 2, n = 10, the probability of successful cracking is

[0038] In addition, the present invention is different from traditional public-private key cryptographic systems such as RSA, Elgamal and ECC in an important way. In traditional methods, the points mapped to the ciphertext space as an independent unit in plaintext semantics (such as a Chinese character or an English word) are very sparse, that is, a large number of ciphertext space points are wasted. Of course, this can be overcome by using the combined preprocessing of the plaintext semantics at the front end. For example, in the history of telegraph development, there is a processing method that maps some commonly used short sentences and phrases in Chinese to a code point. The code point space of the present invention has 100,000 when k=2, which is enough for some languages. Even for English, if it is not enough, k can be defined as 3, and then there will be 10 million. In addition, there is another difference, which is the advantage of the present invention. The traditional method is point-by-point encryption and decryption encoding, while the design of the present invention is batch processing, and each batch of encrypted and decrypted plaintext is n. 2 The traditional one is just one.

[0039] Design principle:

[0040] Consider a general n-order non-negative integer square matrix A, that is

[0041]

[0042] where a ijis a non-negative integer. The so-called clamped matrix refers to this type of non-negative integer matrix that, when participating in matrix calculations (mainly matrix multiplication and addition, and only rarely involving a certain limited subtraction), the calculated value exceeds 10. 2k +1 , then discard the excess part and keep the less than 10 2k+1 If the value of an element of the result matrix obtained in a certain calculation is c, then c = cc / 10 2k+1 10 2k+1 , where c is an integer, so in this formula c / 10 2k+1 It can be regarded as the division between integers. The result is that c can be divided into 10 parts. 2k+1 Integer multiples of . In the matrix multiplication and addition here, all the multiplication and addition between elements involved are performed in the "clamped" sense. When performing subtraction, it is necessary to ensure that the minuend is greater than the subtrahend, that is, the result must be non-negative. In the clamped matrix, matrices with negative elements and intermediate values ​​in the calculation process of negative elements are not allowed.

[0043] When k is a fixed natural number, such as 1, 2, 3, ..., the system parameter of the clamping matrix is ​​2k+1, all matrices in the system are non-negative integer matrices, and the integer value of each element of each matrix is ​​between 0 and 10. 2k+1 Because of the clamping mechanism, any element of any matrix in the system is between 0 and 10. 2k+1 -1 room range.

Claims

1. A public-private key cryptosystem based on integer reversibility of clamping matrices, characterized in that: The steps include: 1) Generate a key: 1.1) Randomly generate two n-order clamp matrices A and B, each element of which is from 0 to 10 2k+1 -A random number between 1 and 2; 1.2) Calculate V1 = 10A + E, U1 = (10A) 2k -(10A) 2k-1 +...+(10A) 2 -(10A)+E and V2=10B+E, U2=(10B) 2k -(10B) 2k-1 +...+(10B) 2 -(10B)+E; E is the n-order identity matrix. The above calculations are all multiplications, additions, or subtractions of the clamping mechanism, and subtraction also satisfies the condition that the minuend is greater than the subtrahend. 1.3) Generate a pair of keys, V1U2 and V2U1, with V1U2 as the public key and the remaining V2U1 as the private key; In this system, k and n are known parameters between the sender and the receiver, while the role of the private key V2U1 is not fixed. If it is used as a public key, then the private key is V1U2. 2) Encryption and decryption algorithms: 2.1) Digitize the plaintext characters into 0 to 10 2k+1 -1, and the plaintext to be encrypted is sequentially mapped to the matrix M, where M is the clamping matrix; 2.2) Encryption operation, perform matrix multiplication C = V1U2M, where the matrix C is the ciphertext, and the matrix calculation is under the action of the clamping mechanism; 2.3) Decryption operation: First, use the private key to perform matrix multiplication, that is, calculate V2U1C. The matrix calculation is also under the action of the clamping mechanism. The decrypted plaintext is the clamped matrix V2U1C. 3) Signature algorithm: 3.1) Generate the plaintext summary to be signed and map it to the matrix M; 3.2) Signature operation: perform matrix multiplication C=MV2U1, where matrix C is the signature; 3.3) Verify the signature by first performing matrix multiplication using the public key, i.e. calculating CV1U2, and verifying whether the clamped matrix CV1U2 is M, thereby confirming the authenticity of the signature; When k is a fixed natural number, the system parameter of the clamping matrix is ​​2k+1, all matrices in the system are non-negative integer matrices, and the integer value of each element of each matrix is ​​between 0 and 10. 2k+1 -1; because of the clamping mechanism, any element of any matrix in the system is between 0 and 10 2k+1 -1 room range.