Anti-quantum-attack public key cryptosystem based on cascaded codes
Through the combination of cascading Polar code and blocked QC-LDPC code, the problems of large key size and high decoding complexity of the public key cryptography system are solved, and the resistance to quantum attacks is improved, and efficient and secure encrypted communication is achieved.
Patent Information
- Application Number
- CN202411465335.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-21
- Publication Date
- 2024-11-15
AI Technical Summary
When facing the threat of quantum computing, the existing public key cryptography system has a large key size, high decoding complexity and insufficient security, making it difficult to effectively resist quantum attacks.
The cascading Polar code and blocked QC-LDPC code generation matrix are used to introduce random error vectors through the combination of multiple error correction codes in the process of key generation, encryption and decryption to form a public key cryptographic system that resists quantum attacks.
Significantly reduce the size of public and private keys, improve the system's ability to resist quantum attacks, increase the difficulty of decoding attacks in information sets, reduce storage and transmission costs, and achieve efficient and secure encryption in a variety of application scenarios. Communication.
Smart Images

Figure CN118972060A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of public key cryptography, and in particular to a quantum attack-resistant public key cryptography system based on cascade codes. Background Art
[0002] Common public key cryptographic algorithms include RSA, elliptic curve cryptography (ECC), etc. However, with the rapid development of quantum computing technology, traditional public key cryptographic algorithms based on number theory problems (such as large integer factorization and discrete logarithm) are facing serious threats. Shor's algorithm proves that quantum computers can solve these problems in polynomial time, thereby cracking existing public key cryptographic systems.
[0003] The earliest coding-based cryptographic system is the McEliece system, which is based on the coding theory of Goppa codes and whose security relies on the difficulty of decoding general linear codes. This cryptographic system shows strong resistance to quantum attacks under the threat of quantum computing. However, the main disadvantage of the McEliece scheme is the huge size of its public key, which limits its widespread adoption in practical applications. In order to overcome the defects of the original McEliece scheme, researchers have proposed a variety of improved schemes, trying to use different types of linear codes, such as Reed-Solomon codes, Reed-Muller codes, LDPC codes, MDPC codes, QC-LDPC codes, Polar codes, etc. These improved schemes reduce the key size and improve the efficiency of encryption and decryption to varying degrees, but there is still a trade-off between security and practical applications.
[0004] Polar code converts the original channel into a set of reliable and unreliable sub-channels through channel polarization technology. Quasi-cyclic low-density parity-check code (QC-LDPC code) is a special structure of LDPC code with the characteristics of cyclic symmetry, which enables its generator matrix to be represented by less storage space. QC-LDPC code is widely used in communication systems and storage devices due to its good error correction performance and low decoding complexity. Introducing QC-LDPC code in McEliece scheme can reduce the key size.
[0005] The current McEliece variant has made some progress in optimizing key size, but there is still room for improvement in the following aspects: 1) Key management: storage and transmission problems caused by the huge size of public and private keys; 2) Decoding complexity: while maintaining low complexity, ensure the efficiency and reliability of the decoding algorithm; 3) Security: in the face of quantum computing and modern cryptanalysis technology, the existing improvement scheme still needs to further verify its anti-attack capabilities.
[0006] Therefore, technicians in this field are committed to developing a new public key cryptographic system that is resistant to quantum attacks to solve the above-mentioned defects in the prior art. Summary of the invention
[0007] In view of the above-mentioned defects of the prior art, the technical problem to be solved by the present invention is how to design a new public key cryptographic system that is resistant to quantum attacks, thereby reducing the size of the password and improving the anti-attack capability.
[0008] To achieve the above object, the present invention provides a public key cryptographic system based on cascade codes and resistant to quantum attacks, the system comprising the following steps: Step 1: In the key generation phase, Polar code and block QC-LDPC code are used to generate private and public keys. Step 2, encryption stage, using the Polar code and the block QC-LDPC code to encrypt the plaintext successively, and both introduce random error vectors, and finally generate ciphertext; Step 3, decryption stage, first use the decoding algorithm of the block QC-LDPC code to perform outer error correction decryption, then use the decoding algorithm of the Polar code to perform inner error correction decryption, and then combine the plaintext after block decryption to obtain the plaintext.
[0009] Furthermore, the step 1 includes the following sub-steps: Step 1.1, obtaining the generator matrices of the Polar code and the block QC-LDPC code, and using them as the private key; Step 1.2: multiply the generator matrices of the Polar code and the block QC-LDPC code by a reversible matrix and a permutation matrix respectively, and combine the calculated results to form a public key.
[0010] Furthermore, the step 1.1 includes the following sub-steps: Step 1.1.1, obtaining a generator matrix of the Polar code; Step 1.1.2, obtaining a generator matrix of the block QC-LDPC code; Wherein, the step 1.1.1 includes the following sub-steps: Step 1.1.1.1, generate the Polar code: randomly select a correctable The polar code with errors is used to divide the channel into a reliable channel and an unreliable channel through polar transformation; Select from the channels The reliable channels are taken as the secret information set, denoted as , the remaining channels as frozen secret information sets, denoted as ; Step 1.1.1.2, obtain the generator matrix of the Polar code, denoted as , The size is , From the matrix Take out the corresponding The line is obtained, where From the basic matrix Do The Kronecker product is obtained.
[0011] Furthermore, the step 1.1.2 includes the following sub-steps: Step 1.1.2.1. Select The generator matrices of the block QC-LDPC codes are , and the error correction capabilities are ; Step 1.1.2.2: According to the block structure cascade, after diagonal expansion, a large generator matrix is formed : .
[0012] Furthermore, the step 1.2 includes the following sub-steps: Step 1.2.1: Generate the matrix of the Polar code Take out the corresponding Column, get a reversible matrix , size is ,Right now ; Step 1.2.2: Get a permutation matrix , size is , ;in, The size is , 1 are located in Ledi Row, where ; The size is , 1 randomly distributed in List; Step 1.2.3, calculation , and Diagonally expand to get : in, is The diagonal line will repeat times, at this time, The size is .
[0013] Furthermore, the step 1.2 also includes the following sub-steps: Step 1.2.4, random selection indivual The reversible matrix and indivual The permutation matrix , and perform block diagonal cascade to obtain and : Step 1.2.5: Calculation , get the diagonal expansion matrix after the hidden structure, and multiply the two diagonal matrices after the hidden structure to get .
[0014] Furthermore, the step 1.2 also includes the following sub-steps: Step 1.2.6: Generate an error vector set , Include vectors, and , each vector consists of the following form: , is Uniformly selected vectors, where each Is the size of error vector with weight 1, Indicates the length is The binary vector space of , which represents all vectors of length 0 and 1 A vector collection of ; Step 1.2.7, the public key is finally expressed as , the private key is finally expressed as , and the decoding algorithm of the Polar code , the decoding algorithm of the block QC-LDPC code ,in, and Respectively represent the error correction capabilities of the Polar code and the block QC-LDPC code.
[0015] Furthermore, the step 2 includes the following sub-steps: Step 2.1: Divide the plaintext to be encrypted into blocks, so that each block of data can be combined with the matrix Perform the operation, recorded as ; From the error vector set Evenly select A random vector , and The random vectors are XORed and the result is recorded as ; Step 2.2: Random selection The length is , weight is vector and concatenate it diagonally into blocks to form , the length of the plaintext to be encrypted is the information bit length of the concatenated code; for each block of plaintext data, use the Polar code to generate the matrix Perform preliminary encryption to generate intermediate ciphertext .
[0016] Furthermore, step 2 also includes the following sub-steps: Step 2.3: Introduce the first layer of random error vector , improve the obfuscation of data; Step 2.4: The intermediate ciphertext Input to the generator matrix of the block QC-LDPC code Perform secondary encryption in the , generating the final ciphertext .
[0017] Furthermore, the step 3 includes the following sub-steps: Step 3.1: The receiver obtains the encrypted ciphertext , through the inverse permutation matrix , the ciphertext Restore to the original sort order; Step 3.2: Decoding algorithm using the block QC-LDPC code , for the ciphertext after inverse permutation Perform preliminary decoding to remove the second layer of random error vectors , restore the intermediate ciphertext ; Step 3.3: Using the Polar code decoding algorithm For the intermediate ciphertext Decode the Polar code and remove the first layer of random error vectors. , and then combine the decrypted plaintexts in blocks to get the plaintext.
[0018] The quantum attack-resistant public key cryptography system based on cascade codes provided by the present invention has at least the following technical effects: 1. The technical solution provided by the present invention significantly reduces the size of public and private keys by cascading the generator matrices of Polar codes and block QC-LDPC codes. The public key of the traditional McEliece cryptographic system is usually very large due to the use of Goppa codes, while the solution of the present invention optimizes the key structure and greatly reduces the storage and transmission costs.
[0019] 2. The technical solution provided by the present invention utilizes the combined characteristics of Polar codes and block QC-LDPC codes to effectively improve the system's ability to resist quantum attacks, so that the system still maintains a high level of security when facing quantum computing attacks.
[0020] 3. The technical solution provided by the present invention increases the difficulty of information set decoding attack by introducing double-layer random error vectors and complex generator matrix structure. This multi-layered security measure makes it difficult for attackers to crack the system through known plaintext attacks or other traditional methods.
[0021] 4. The technical solution provided by the present invention is easy to implement on existing hardware and software platforms, does not require additional complex equipment and technical support, has high practical value and application prospects, and the design of the system takes into account the needs of actual deployment. It is not only suitable for traditional encrypted communications, but can also be widely used in cloud storage security, Internet of Things device protection, smart card security, e-government and other fields, and can be flexibly used in a variety of application scenarios.
[0022] The concept, specific structure and technical effects of the present invention will be further described below in conjunction with the accompanying drawings to fully understand the purpose, characteristics and effects of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 It is an encryption flow chart of a preferred embodiment of the present invention; Figure 2 yes Figure 1 Decryption flow chart of the illustrated embodiment. DETAILED DESCRIPTION
[0024] The following describes several preferred embodiments of the present invention with reference to the drawings in the specification, so that the technical content is clearer and easier to understand. The present invention can be embodied in many different forms of embodiments, and the protection scope of the present invention is not limited to the embodiments mentioned in the text.
[0025] The embodiment of the present invention proposes an effective solution through a unique cascade combination of Polar code and block QC-LDPC code, utilizing the channel polarization characteristics of Polar code and the structural advantages of block QC-LDPC code cascade, and through a carefully designed key generation, encryption and decryption process, which not only solves the key size problem, but also improves the system's anti-attack capability, and achieves significant improvements in security and efficiency. Specifically, the embodiment of the present invention involves using cascade, block, and quasi-cyclic techniques to design public keys and private keys required for the encryption and decryption process, and involves a public key cryptographic system for polar (Polar) code and quasi-cyclic low-density parity check (Quasi-Cyclic Low-Density Parity Check, QC-LDPC) code. In the key generation stage, the generator matrices of Polar code and block QC-LDPC code are used as private keys. These matrices are then multiplied by reversible and random permutation matrices, respectively, and the calculated results are combined to form a public key. The cascade of these two error correction codes effectively hides the structural characteristics of the generator matrix. In the encryption phase, the plaintext is encrypted sequentially using the Polar code and the block QC-LDPC code. This process introduces two layers of random error vectors and ultimately generates encrypted ciphertext. In the decryption phase, the outer layer error correction decryption is first performed using the block QC-LDPC code decoding algorithm, and then the inner layer error correction decryption is performed using the Polar code decoding algorithm. The plaintext after block decryption is combined to obtain the final plaintext.
[0026] Example 1 The embodiment of the present invention provides a public key cryptographic system based on cascade codes and resistant to quantum attacks, comprising the following steps: Step 1: In the key generation phase, Polar code and block QC-LDPC code are used to generate private and public keys. Step 2: In the encryption phase, the plaintext is encrypted using Polar code and block QC-LDPC code, and random error vectors are introduced to generate ciphertext. Step 3: In the decryption phase, first use the decoding algorithm of the block QC-LDPC code to perform error correction decryption on the outer layer, then use the decoding algorithm of the Polar code to perform error correction decryption on the inner layer, and then combine the plaintext after block decryption to obtain the plaintext.
[0027] Example 2 Based on Example 1, step 1 includes the following sub-steps: Step 1.1, obtain the generator matrix of Polar code and block QC-LDPC code, and use it as the private key; Step 1.2: Multiply the generator matrices of the Polar code and the block QC-LDPC code by the reversible matrix and the permutation matrix respectively, and combine the calculated results to form the public key.
[0028] In particular, step 1.1 includes the following sub-steps: Step 1.1.1, obtain the generator matrix of the Polar code; Step 1.1.2, obtain the generator matrix of the block QC-LDPC code; Wherein, step 1.1.1 includes the following sub-steps: Step 1.1.1.1, Generate Polar Code: Randomly select a code that can be corrected The channel is divided into reliable channel and unreliable channel through Polar transform. Select from the channels reliable channels as the secret information set, denoted as , the remaining channels as frozen secret information sets, denoted as ; Step 1.1.1.2: Obtain the generator matrix of the Polar code, denoted as , The size is , From the matrix Take out the corresponding The line is obtained, where From the basic matrix Do The Kronecker product is obtained.
[0029] Wherein, step 1.1.2 includes the following sub-steps: Step 1.1.2.1. Select The generator matrices of the block QC-LDPC codes are , and the error correction capabilities are ; Step 1.1.2.2: According to the block structure cascade, after diagonal expansion, a large generator matrix is formed : .
[0030] Example 3 Based on Example 1 or 2, step 1.2 includes the following sub-steps: Step 1.2.1: Generate the Polar Code Matrix Take out the corresponding Column, get a reversible matrix , size is ,Right now ; Step 1.2.2: Get a permutation matrix , size is , ;in, The size is , 1 are located in Ledi Row, where ; The size is , 1 randomly distributed in List; Step 1.2.3, calculation , and Diagonally expand to get : in, is The diagonal line will repeat times, at this time, The size is .
[0031] Step 1.2.4, random selection indivual The reversible matrix and indivual The permutation matrix , and perform block diagonal cascade to obtain and : Step 1.2.5: Calculation , get the diagonal expansion matrix after the hidden structure, and multiply the two diagonal matrices after the hidden structure to get .
[0032] Step 1.2.6: Generate an error vector set , Include vectors, and , each vector consists of the following form: , is Uniformly selected vectors, where each Is the size of error vector with weight 1, Indicates the length is The binary vector space of , which represents all vectors of length 0 and 1 A vector collection of ; Step 1.2.7, the public key is finally expressed as , the private key is finally expressed as , and the decoding algorithm of the Polar code , the decoding algorithm of the block QC-LDPC code ,in, and Respectively represent the error correction capabilities of the Polar code and the block QC-LDPC code.
[0033] Example 4 Based on Example 1, 2 or 3, step 2 includes the following sub-steps: Figure 1 As shown: Step 2.1: Divide the plaintext to be encrypted into blocks, so that each block of data can be combined with the matrix Perform the operation, recorded as ; From the error vector set Evenly select A random vector , and The random vectors are XORed and the result is recorded as ; Step 2.2: Random selection The length is , weight is vector and concatenate it diagonally into blocks to form , the length of the plaintext to be encrypted is the information bit length of the concatenated code; for each block of plaintext data, use the Polar code to generate the matrix Perform preliminary encryption to generate intermediate ciphertext .
[0034] Step 2.3: Introduce the first layer of random error vector , improve the obfuscation of data; Step 2.4: The intermediate ciphertext Input to the generator matrix of the block QC-LDPC code Perform secondary encryption in the , further enhance the security of data and generate the final ciphertext .
[0035] Example 5 Based on the embodiment 1, 2, 3 or 4, in step 3, the received ciphertext is first converted into Restore to intermediate ciphertext , and then use Polar code to decode and get the plaintext ,like Figure 2 Specifically, step 3 includes the following sub-steps: Step 3.1: The receiver obtains the encrypted ciphertext , through the inverse permutation matrix , the ciphertext Restore to the original sort order; Step 3.2: Decoding algorithm using block QC-LDPC code , for the ciphertext after inverse permutation Perform preliminary decoding to remove the second layer of random error vectors , restore the intermediate ciphertext ; Step 3.3: Decoding algorithm using Polar code Intermediate ciphertext Decode the Polar code and remove the first layer of random error vectors , and then combine the decrypted plaintexts in blocks to get the plaintext.
[0036] Example 6 The following is an implementation case in a cloud storage environment, including the password generation phase, encryption phase, and decryption phase.
[0037] During the key generation phase: On the user's local device, Polar code and QC-LDPC code are used to generate public and private keys. The specific process is as follows: 1) Randomly select a correct The channel is divided into reliable channel and unreliable channel through Polar transform.
[0038] 2) From Select from the channels reliable channels as secret information sets and generate the corresponding generator matrix , after left multiplication by the reversible matrix and right-multiply the permutation matrix After the operation, we get ,Will conduct The matrix is obtained by diagonal expansion .
[0039] 3) Select The error correction capability is The generator matrix of the QC-LDPC code , block diagonal expansion generates a large QC-LDPC code matrix , after the operation of the reversible matrix and the permutation matrix, we get .
[0040] 4) Generate an error vector set , Include vectors, and , each vector consists of the following form: , is Uniformly selected vectors, where each Is the size of error vector with weight 1, Indicates the length is The binary vector space of , which represents all vectors of length 0 and 1 vector collection.
[0041] 5) Calculation , get the final public key , the private key contains the generator matrix and the decoding algorithm of Polar code and QC-LDPC code. The private key is finally expressed as And the decoding algorithm of Polar code , Decoding Algorithm for Block QC-LDPC Codes ,in, and Represent the error correction capabilities of Polar codes and block QC-LDPC codes respectively.
[0042] During the encryption phase: The user divides the file to be uploaded to the cloud storage into multiple data blocks, denoted as The divided data will go through the following encryption process: 1) From the error vector set Evenly select A random vector , and The random vectors are XORed and the result is recorded as . Random Selection The length is , weight is vector and concatenate it diagonally into blocks to form The length of the plaintext to be encrypted is the information bit length of the concatenated code; for each block of plaintext data, the Polar code generation matrix is used Perform preliminary encryption and introduce the first layer of random error vectors , generate the intermediate ciphertext .
[0043] 2) To further enhance security, block QC-LDPC codes are used to encode intermediate ciphertexts. Perform secondary encryption and add a random error vector . Generate the final ciphertext .
[0044] 3) Upload the encrypted ciphertext to the cloud storage server.
[0045] During the decryption phase: When a user needs to download and read a file from the cloud, perform the following steps: 1) User downloads ciphertext from cloud storage , and decrypted using the local private key.
[0046] 2) Using the QC-LDPC code decoding algorithm, first remove the outer random error vector , recover the intermediate ciphertext .
[0047] 3) Then use the Polar code decoding algorithm to remove the inner random error vector , restore the original data blocks, and combine all data blocks to get the original plaintext.
[0048] Example 7 In Internet of Things (IoT) devices, the transmitted data is vulnerable to high-complexity attacks such as man-in-the-middle attacks and quantum computing. The following are implementation cases in data protection of IoT devices.
[0049] During the key generation phase: During the initialization process of the IoT device, Polar code and block QC-LDPC code are used to generate the device's private key and public key. The private key is stored inside the device, and the public key can be used to exchange with other devices during the communication process.
[0050] During the encryption phase: When an IoT device needs to transmit sensor data to a server, the data will first be encrypted locally: 1) First, the data is processed in blocks, and each data block is encrypted using Polar code to generate a preliminary intermediate ciphertext.
[0051] 2) Then, the block QC-LDPC code is used for secondary encryption to generate the final ciphertext. This process introduces two layers of random error vectors to further enhance the obfuscation and security of the data.
[0052] During the decryption phase: After the server receives the encrypted sensor data, it decrypts it using the device's public key: 1) The server first uses the QC-LDPC code to decrypt, remove the random error vector of the second layer, and restore the intermediate ciphertext.
[0053] 2) Next, use Polar code to decrypt and remove the random error vector of the first layer to obtain the original data.
[0054] Example 8 In smart card applications, encryption algorithms that are resistant to quantum attacks are very important when storing sensitive information (such as identity information and bank card data). The following is an implementation case in smart card encryption storage.
[0055] During the key generation phase: When the smart card is manufactured, the cryptographic system of the present invention is used to generate public and private keys, and the private key is stored in the internal chip of the smart card. Polar code and QC-LDPC code are used to generate keys to ensure the security of information transmission and storage.
[0056] During the encryption phase: When writing data to a smart card, the local private key is used for encryption. Through the cascade encryption of Polar code and QC-LDPC code, sensitive data is securely stored in the smart card.
[0057] During the decryption phase: When the smart card needs to read data, it performs a decryption operation, first removing the second layer of random errors through the QC-LDPC code, and then removing the first layer of random errors through the Polar code, thereby restoring the original data.
[0058] The preferred specific embodiments of the present invention are described in detail above. It should be understood that ordinary technicians in the field can make many modifications and changes based on the concept of the present invention without creative work. Therefore, all technical solutions that can be obtained by technicians in the technical field based on the concept of the present invention through logical analysis, reasoning or limited experiments on the basis of the prior art should be within the scope of protection determined by the claims.
Claims
1. A quantum attack-resistant public key cryptosystem based on cascade codes, characterized in that: The system comprises the following steps: Step 1: In the key generation phase, Polar code and block QC-LDPC code are used to generate private and public keys. Step 2, encryption stage, using the Polar code and the block QC-LDPC code to encrypt the plaintext successively, and both introduce random error vectors, and finally generate ciphertext; Step 3, decryption stage, first use the decoding algorithm of the block QC-LDPC code to perform outer error correction decryption, then use the decoding algorithm of the Polar code to perform inner error correction decryption, and then combine the plaintext after block decryption to obtain the plaintext.
2. The quantum attack-resistant public key cryptosystem based on cascade codes as claimed in claim 1, characterized in that: The step 1 includes the following sub-steps: Step 1.1, obtaining the generator matrices of the Polar code and the block QC-LDPC code, and using them as the private key; Step 1.2: multiply the generator matrices of the Polar code and the block QC-LDPC code by a reversible matrix and a permutation matrix respectively, and combine the calculated results to form a public key.
3. The quantum attack-resistant public key cryptosystem based on cascade codes as claimed in claim 2, characterized in that: The step 1.1 includes the following sub-steps: Step 1.1.1, obtaining a generator matrix of the Polar code; Step 1.1.2, obtaining a generator matrix of the block QC-LDPC code; Wherein, the step 1.1.1 includes the following sub-steps: Step 1.1.1.1, generate the Polar code: randomly select a correctable The polar code with errors is used to divide the channel into a reliable channel and an unreliable channel through polar transformation; Select from the channels The reliable channels are used as secret information sets, denoted as , the remaining channels as frozen secret information sets, denoted as ; Step 1.1.1.2, obtain the generator matrix of the Polar code, denoted as , The size is , From the matrix Take out the corresponding The line is obtained, where From the basic matrix Do The Kronecker product is obtained.
4. The quantum attack-resistant public key cryptosystem based on cascade codes as claimed in claim 3, characterized in that: The step 1.1.2 includes the following sub-steps: Step 1.1.2.
1. Select The generator matrices of the block QC-LDPC codes are , and the error correction capabilities are ; Step 1.1.2.2: According to the block structure cascade, after diagonal expansion, a large generator matrix is formed : 。 5. The quantum attack-resistant public key cryptosystem based on cascade codes as claimed in claim 4, characterized in that: The step 1.2 includes the following sub-steps: Step 1.2.1: Generate the matrix of the Polar code Take out the corresponding Column, get a reversible matrix , size is ,Right now ; Step 1.2.2: Get a permutation matrix , size is , ;in, The size is , 1 are located in Ledi Row, where ; The size is , 1 randomly distributed in List; Step 1.2.
3. Calculation , and Diagonally expand to get : in, is The diagonal line will repeat times, at this time, The size is .
6. The quantum attack-resistant public key cryptosystem based on cascade codes as claimed in claim 5, characterized in that: The step 1.2 also includes the following sub-steps: Step 1.2.4, random selection indivual The reversible matrix and indivual The permutation matrix , and perform block diagonal cascade to obtain and : Step 1.2.5: Calculation , get the diagonal expansion matrix after the hidden structure, and multiply the two diagonal matrices after the hidden structure to get .
7. The quantum attack-resistant public key cryptosystem based on cascade codes as claimed in claim 6, characterized in that: The step 1.2 also includes the following sub-steps: Step 1.2.6: Generate an error vector set , Include vectors, and , each vector consists of the following form: , is Uniformly selected vectors, where each Is the size of error vector with weight 1, Indicates the length is The binary vector space of , which represents all vectors of length 0 and 1 A vector collection of ; Step 1.2.7, the public key is finally expressed as , the private key is finally expressed as , and the decoding algorithm of the Polar code , the decoding algorithm of the block QC-LDPC code ,in, and Respectively represent the error correction capabilities of the Polar code and the block QC-LDPC code.
8. The quantum attack-resistant public key cryptosystem based on cascade codes as claimed in claim 7, characterized in that: The step 2 includes the following sub-steps: Step 2.1: Divide the plaintext to be encrypted into blocks, so that each block of data can be combined with the matrix Perform the operation, recorded as ; From the error vector set Evenly select A random vector , and The random vectors are XORed and the result is recorded as ; Step 2.2: Random selection The length is , weight is vector and concatenate it diagonally into blocks to form , the length of the plaintext to be encrypted is the information bit length of the concatenated code; for each block of plaintext data, use the Polar code to generate the matrix Perform preliminary encryption to generate intermediate ciphertext .
9. The quantum attack-resistant public key cryptosystem based on cascade codes as claimed in claim 8, characterized in that: The step 2 also includes the following sub-steps: Step 2.3: Introduce the first layer of random error vector , improve the obfuscation of data; Step 2.4: The intermediate ciphertext Input to the generator matrix of the block QC-LDPC code Perform secondary encryption in the , generating the final ciphertext .
10. The quantum attack-resistant public key cryptosystem based on cascade codes as claimed in claim 9, characterized in that: The step 3 includes the following sub-steps: Step 3.1: The receiver obtains the encrypted ciphertext , through the inverse permutation matrix , the ciphertext Restore to the original order; Step 3.2: Decoding algorithm using the block QC-LDPC code , for the ciphertext after inverse permutation Perform preliminary decoding to remove the second layer of random error vectors , restore the intermediate ciphertext ; Step 3.3: Using the Polar code decoding algorithm For the intermediate ciphertext Perform the decoding process of the Poalr code to remove the first layer of random error vectors , and then combine the decrypted plaintexts in blocks to get the plaintext.
Citation Information
Patent Citations
McEliece system encryption and decryption method based on QC-LDPC code
CN111756727A
McEliece system encryption and decryption method based on sliding window QC-LDPC code
CN113132100A
Cryptographic system based on Classic McEliece cryptosystem
CN114866231A
Key encapsulation mechanism based on polarization code
CN117478321A
Method and Apparatus for Error Correcting Code Based Public Key Encryption Schemes
US20170104590A1
