Lightweight and efficient encryption / decryption coprocessor and method based on RLWE hypothesis

By using the CDT Gaussian sampler and the Schoolbook polynomial multiplication module with multiple degrees of parallelism in the encryption/decryption coprocessor, the problem of poor performance and resource utilization of polynomial multipliers in the existing technology is solved, and efficient encryption and decryption operations are achieved. , significantly improving resource utilization and performance.

CN118780382AActive Publication Date: 2024-10-15XI AN JIAOTONG UNIV
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410779548.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-10-15
Estimated Expiration
2044-06-17

AI Technical Summary

Technical Problem

Existing polynomial multipliers are difficult to achieve a good trade-off between performance and resource utilization, especially on lightweight devices, and cannot effectively improve the speed of Schoolbook polynomial multiplication operations.

Method used

A lightweight and efficient encryption/decryption coprocessor based on the RLWE hypothesis is designed, using CDT Gaussian sampler, multi-parallelism Schoolbook polynomial multiplication module and modular addition module to improve the multiplication efficiency through parallelism, and through data Storage and ciphertext storage optimize resource utilization.

Benefits of technology

It significantly reduces the time complexity of Schoolbook polynomial multiplication, saves storage resources, improves hardware efficiency and resource utilization, achieves a good balance between performance and resources, and achieves significant improvements in performance and hardware efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure BDA0004896692950000051
    Figure BDA0004896692950000051
  • Figure BDA0004896692950000061
    Figure BDA0004896692950000061
  • Figure BDA0004896692950000062
    Figure BDA0004896692950000062
Patent Text Reader

Abstract

The invention provides the lightweight and efficient encryption / decryption co-processing method based on the RLWE hypothesis, and the performance and resource utilization are well balanced. According to the invention, the lightweight and efficient RLWE cryptographic coprocessor is developed based on the Schoolbook algorithm, and the time complexity of the Schoolbook polynomial multiplication is greatly reduced by improving the parallelism of the Schoolbook polynomial multiplication; a CDT Gaussian sampler is adopted to generate a key, and redundant data in a classical CDT Gaussian sampler structure is further compressed, so that storage resources are remarkably saved. Therefore, the performance and the resource utilization are well balanced, the hardware efficiency is high, and the resource utilization rate can be greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a polynomial multiplier and a post-quantum cryptography hardware accelerator, and in particular to a lightweight and efficient encryption / decryption coprocessor and method based on the RLWE assumption. Background Art

[0002] With the continuous development of quantum computing, efficient quantum algorithms can crack the mathematical difficulties of mainstream public key cryptographic systems such as RSA and ECC, making public key cryptographic systems no longer secure. Therefore, in the post-quantum era, the development of more secure cryptographic systems has become a new focus. Lattice-based (RLWE) cryptographic schemes are becoming mainstream cryptographic schemes. NIST began to solicit standards for a new generation of public key cryptographic algorithms in 2016. Among the many cryptographic schemes published, cryptographic systems based on lattice problems accounted for the largest proportion due to their many advantages.

[0003] Polynomial multiplication is the core computing module of lattice cryptography, which directly affects the overall computing speed of the cryptographic system. Usually, polynomial multiplication is implemented through the Schoolbook or NTT algorithm. The NTT algorithm has a lower complexity and can better improve the speed of Schoolbook polynomial multiplication, but it is limited by the selected parameters. At the same time, the algorithm is relatively complex and is not suitable for lightweight devices. The Schoolbook algorithm is relatively simple to implement, and its low resource consumption allows it to be applied on resource-constrained devices.

[0004] There are many works focused on implementing polynomial multiplication based on the Schoolbook algorithm. Multipliers based on the Schoolbook algorithm are widely used due to their wide applicability. However, previous studies have only focused on high performance or lightweight design. Existing works are difficult to achieve a good trade-off between performance and resources. Summary of the invention

[0005] In order to solve the above-mentioned problems in the prior art, the present invention provides a lightweight and efficient encryption / decryption co-processing and method based on the RLWE assumption, which achieves a good balance between performance and resource utilization.

[0006] The present invention is achieved through the following technical solutions:

[0007] The present invention provides a lightweight and efficient encryption / decryption coprocessor based on RLWE assumption, comprising: a CDT Gaussian sampler, a first polynomial multiplication module, an encoder, a first modular addition module, a second polynomial multiplication module, a decoder and a second modular addition module;

[0008] The CDT Gaussian sampler is used to sample the input random number according to the probability value in the pre-stored probability pre-storage table to obtain the key vector; wherein the probability value is obtained by compressing N consecutive 1s in the Freq(cur) function value into one 1;

[0009] The encoder is used to encode the plaintext vector to obtain a plaintext polynomial;

[0010] The first polynomial multiplication module is used to perform a Schoolbook polynomial multiplication operation on the public key vector and the secret key vector in a multi-degree parallel manner to obtain a first polynomial multiplication operation result;

[0011] The first modular addition module is used to perform modular addition operation on the plaintext polynomial and the multiplication result of the first polynomial to obtain the ciphertext polynomial;

[0012] The second polynomial multiplication module is used to perform a Schoolbook polynomial multiplication operation on the ciphertext polynomial and the external input secret vector in a multi-degree parallel manner to obtain a second polynomial multiplication operation result;

[0013] The second modular addition module is used to perform a modular addition operation on the multiplication result of the ciphertext polynomial and the second polynomial to obtain a decrypted plaintext polynomial;

[0014] The decoder is used to decode the decrypted plaintext polynomial to obtain the decrypted plaintext vector.

[0015] Preferably, N≥4.

[0016] Preferably, the first polynomial multiplication module and the second polynomial multiplication module both include a PE multiplication unit, a modular addition unit and an accumulation unit;

[0017] The PE multiplication unit is used to perform multiplication operations;

[0018] The modular addition unit is used to perform modular addition operation on the operation result of the PE multiplication unit;

[0019] The accumulation unit is used to accumulate the operation results of the modular addition unit until the accumulation reaches the dimension of the current polynomial multiplication matrix and then output the accumulation result.

[0020] Furthermore, the PE multiplication unit is composed of a lookup table and a trigger.

[0021] Preferably, the multi-degree of parallelism is 8 degrees of parallelism.

[0022] Preferably, the lightweight and efficient encryption / decryption coprocessor based on the RLWE assumption further includes a data storage module, which is used to store the key vector and the public key vector.

[0023] Preferably, the data storage module stores the key vector in a format of four data items per group.

[0024] Preferably, the lightweight and efficient encryption / decryption coprocessor based on the RLWE assumption further includes a ciphertext memory, and the ciphertext polynomial obtained by the first modular addition module is stored in the ciphertext memory.

[0025] The present invention provides a lightweight and efficient encryption / decryption method based on the RLWE assumption. Based on the above-mentioned encryption / decryption coprocessor, it includes:

[0026] Sampling the key vector through a CDT Gaussian sampler, and the public key vector is generated offline; the plaintext vector is encoded by an encoder to obtain a plaintext polynomial;

[0027] Import the public key vector and the key vector into the first polynomial multiplication module in a fixed order, and perform Schoolbook polynomial multiplication operations in a multi-parallelism manner to obtain the result of the first polynomial multiplication operation;

[0028] Perform modular addition on the result of the first polynomial multiplication operation and the plaintext polynomial to obtain a ciphertext polynomial;

[0029] Import the ciphertext polynomial and an externally input secret vector into the second polynomial multiplication module, and perform Schoolbook polynomial multiplication operations in a multi-parallelism manner to obtain the result of the second polynomial multiplication operation;

[0030] Perform modular addition on the result of the second polynomial multiplication operation and the ciphertext polynomial to obtain the decrypted plaintext polynomial, and output the final plaintext result after decoding.

[0031] Preferably, the multi-parallelism is 8-parallelism, and the Schoolbook polynomial multiplication operation is performed in a multi-parallelism manner, specifically including:

[0032] Public key vector Key vector Result of polynomial multiplication operation n is the polynomial dimension;

[0033] The Schoolbook polynomial multiplication operation specifically includes:

[0034] When i < n - 4, execute the outer loop

[0035] When j < n, execute the inner loop

[0036] (1) In a single clock cycle, read data, including a[j], a[(j+n / 2)modn], b[(ij)modn], b[(i-j+1)modn], b[(i-j+2)modn], b[(i-j+3)modn]

[0037] (2) Perform 12-bit × 5-bit multiplication, calculate 8 partial products, and perform modular addition on the partial products;

[0038] (3) The modular result of accumulating partial products;

[0039] At the end of the inner loop, eight calculation results are output

[0040] The outer loop ends and all results are calculated.

[0041] Compared with the prior art, the present invention has the following beneficial effects:

[0042] The present invention develops a lightweight and efficient RLWE cryptographic coprocessor based on the Schoolbook algorithm. By improving the parallelism of the Schoolbook polynomial multiplication operation, the time complexity of the Schoolbook polynomial multiplication is greatly reduced. In addition, a CDT Gaussian sampler is used for key generation, and the redundant data in the classic CDT Gaussian sampler structure is further compressed, so that the storage resources are reduced by 22.2%, thereby significantly saving storage resources. Therefore, this cryptographic coprocessor achieves a good balance between performance and resource utilization, has high hardware efficiency, and can greatly improve resource utilization.

[0043] Furthermore, the present invention utilizes lookup table (LUT) and flip-flop (FF) resources instead of digital signal processing (DSP) to implement the multiplication unit, which effectively saves computing resources, reduces the design area, and improves resource utilization.

[0044] Furthermore, the data storage module stores the key vectors in a format of four data groups, thereby saving repeated data groups. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0046] Figure 1 The overall architecture of the lightweight encryption / decryption processor constructed for the present invention.

[0047] Figure 2 Schematic diagram of the hardware structure of the CDT Gaussian sampler constructed for the present invention.

[0048] Figure 3 A schematic diagram of the hardware structure of the polynomial multiplication module constructed for the present invention. DETAILED DESCRIPTION

[0049] The following describes the embodiments of the present invention through specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention.

[0050] It should be noted that the process equipment or devices not specifically specified in the following embodiments are all conventional equipment or devices in the art.

[0051] It should be noted that the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices. Moreover, unless otherwise specified, the numbering of each method step is only a convenient tool for identifying each method step, and is not intended to limit the order of arrangement of each method step or to define the scope of the present invention. Changes or adjustments in their relative relationships should also be regarded as the scope of the present invention without substantially changing the technical content.

[0052] The key generation, encryption and decryption algorithm 1 of the present invention is shown in Table 1 below.

[0053] Table 1 Key generation, encryption and decryption algorithms

[0054]

[0055] In Algorithm 1, the input consists of a public key vector, a key vector sampled by CDT Gaussian, and a plaintext vector. After completing the above calculation process, the decrypted plaintext vector m′ is generated as the output.

[0056] In Algorithm 1, the multi-bit plaintext vector m is converted into a polynomial by the encoder Where q is the modulus of the polynomial multiplication, as shown in the formula.

[0057]

[0058] The decrypted plaintext c is converted into a plaintext vector m′ by the decoder as shown below.

[0059]

[0060] The current discrete Gaussian sampling algorithms mainly include rejection sampling, Bernoulli sampling, Knuth-Yao sampling and CDT Gaussian sampling. CDT Gaussian sampling is widely favored because of its simple hardware implementation. The algorithm flow of the CDT Gaussian sampler of the present invention is shown in Algorithm 2. In Algorithm 2, a random number generator is used to generate a 36-bit random number r. If r satisfies formula (3), the sampling value x=k.

[0061] Freq(k-1)≤r≤Freq(k)#(3)

[0062] Table 2 Algorithm of CDT Gaussian sampler

[0063]

[0064] The lightweight and efficient encryption / decryption coprocessor architecture based on RLWE assumption implemented by the present invention is as follows: Figure 1 shown.

[0065] The lightweight and efficient encryption / decryption coprocessor based on the RLWE assumption includes: a CDT Gaussian sampler, a first polynomial multiplication module, an encoder, a first modular addition module, a ciphertext memory, a second polynomial multiplication module, a second modular addition module, a decoder, and a data storage module;

[0066] The CDT Gaussian sampler is used to sample the input random number according to the probability value in the pre-stored probability pre-storage table, take the sampled random number as the address, take out the corresponding sampling value according to the address, obtain the key vector and store it in the data storage module; wherein the probability value is obtained by compressing N consecutive 1s in the Freq(cur) function value into one 1, N≥4;

[0067] The encoder is used to encode the plaintext vector to obtain a plaintext polynomial;

[0068] The first polynomial multiplication module is used to perform a Schoolbook polynomial multiplication operation on the public key vector and the secret key vector in a multi-degree-of-parallel manner to obtain a first polynomial multiplication operation result;

[0069] The first modular addition module is used to perform modular addition operation on the plaintext polynomial and the multiplication result of the first polynomial to obtain the ciphertext polynomial and store it in the ciphertext memory;

[0070] The second polynomial multiplication module is used to perform a Schoolbook polynomial multiplication operation on the ciphertext polynomial and the external input secret vector in a multi-degree parallel manner to obtain a second polynomial multiplication operation result.

[0071] The second modular addition module is used to perform a modular addition operation on the multiplication result of the ciphertext polynomial and the second polynomial to obtain a decrypted plaintext polynomial;

[0072] The decoder is used to decode the decrypted plaintext polynomial to obtain a decrypted plaintext vector;

[0073] The data storage module is used to store public key vectors and secret key vectors.

[0074] The present invention proposes an optimized CDT Gaussian sampler structure, which saves storage resources. The original CDT Gaussian sampler needs to store 24 probability values ​​in the probability pre-storage table, and each value contains 36 bits. This requirement may consume a large amount of storage resources on lightweight devices. In order to solve this problem, the present invention adopts compression technology to eliminate redundant information in the probability value and improve the utilization efficiency of storage resources. When the probability value is close to 1, the function Freq(x) shows more and more 1s in the high position. Therefore, the present invention eliminates the redundant information in the probability value by compressing N consecutive 1s in the Freq(cur) function value into a data compression method of one 1. That is, the present invention takes N consecutive 1s as a group, and compresses multiple 1s in a group into one 1. In the embodiment of the present invention, compression is specifically performed in groups of 4 1s. Of course, N can be selected according to actual conditions, and there is no need to specifically limit that N must be equal to 4.

[0075] Based on the proposed data compression method, Figure 2 The CDT Gaussian sampler scheme of the present invention is given in the text, which mainly consists of the following four steps. The specific process is shown in Algorithm 2: (1) Compare the input random number r with the probability value read from the probability pre-storage table (corresponding to line 3 of Algorithm 2). (2) Different comparison results enable the DMUX and MUX selectors to change the values ​​of parameters max, min, and cur (corresponding to lines 4-8 of Algorithm 2). (3) Only when min+1 == max will the data valid signal be pulled up. (4) Output the correct sampling value. Among them, steps (2)-(4) are conventional technologies and will not be discussed in detail here.

[0076] The proposed CDT Gaussian sampler optimization method has been applied to various parameter sets, and the optimization results show that the method can save up to 27.4% of trigger resources. The data recovery module in the CDT Gaussian sampler can restore the compressed probability value to its original standard bit width.

[0077] The present invention is based on the structure of a lightweight and efficient encryption / decryption coprocessor of RLWE, and utilizes the computational characteristics of polynomial multiplication to realize parallel design and improve computational efficiency. The parallelism of the present invention can be set according to actual conditions. In the embodiment of the present invention, the parallelism of the two polynomial multiplication modules is set to 8. Of course, other parallelisms can also be selected according to actual conditions.

[0078] The hardware structure of the polynomial multiplication module with a parallelism of 8 proposed by the present invention is as follows: Figure 3 shown.

[0079] The first polynomial multiplication module and the second polynomial multiplication module described in the present invention both include a PE multiplication unit, a modular addition unit, and an accumulation unit;

[0080] The PE multiplication unit is used to perform multiplication operations;

[0081] The modular addition unit is used to perform modular addition operation on the operation result of the PE multiplication unit;

[0082] The accumulation unit is used to accumulate the operation results of the modular addition unit until the accumulation reaches the dimension of the current polynomial multiplication matrix and then output the accumulation result.

[0083] The PE multiplication unit described in the present invention is composed of a lookup table and a trigger.

[0084] In the structure implemented by the present invention, 8 parallel PE multiplication units are used to concurrently execute 8 12bit*5bit multiplications, and the time complexity is reduced from n^2 to n^2 / 8. The polynomial coefficients a(x) and b(x) are pre-stored in two data storage modules (BRAM modules) as multipliers and multiplicands, respectively. In each cycle, eight partial product results are calculated, and then simple modular addition (modular addition) is performed in the modular addition unit and then input into eight accumulation units. After all iterations are completed, the eight coefficients of the generated polynomial c(x) are output.

[0085] The polynomial multiplication module structure proposed in the present invention is synthesized and implemented on the Xilinx Kintex-7 FPGA platform. Table 3 provides detailed information about the hardware implementation results, including resource consumption, performance indicators (frequency, latency, throughput), and throughput per slice (TPS) as a representation of hardware efficiency. For fair comparison, the FPGABRAM and DSP are converted into an equivalent number of slices, so the larger the equivalent number of slices, the larger the area occupied by the structure. The delay reflects the difference in encryption and decryption speed, so the higher the delay, the slower the calculation speed. TPS is a balanced design method that takes into account both throughput and hardware resource consumption, and a high TPS value represents a well-balanced design.

[0086] Table 3 Accelerator performance comparison

[0087]

[0088] As can be seen from Table 1, compared with the currently mainstream Schoolbook polynomial multiplication accelerator, the polynomial multiplication module structure proposed by the present invention achieves a 2.3-fold performance acceleration and a 2.7-fold hardware efficiency of the encryption core. In addition, it also achieves a 2.4-fold performance acceleration and a 3.2-fold improvement in the hardware efficiency of the decryption core.

[0089] Based on the above lightweight and efficient encryption / decryption coprocessor, the lightweight and efficient encryption / decryption method of the present invention based on the RLWE assumption includes:

[0090] S1, sampling the key vector through a CDT Gaussian sampler, and the public key vector is generated offline; both the public key vector and the key vector are stored in the data storage module; the plaintext vector is encoded by an encoder to obtain a plaintext polynomial;

[0091] S2, importing the public key vector and the key vector into the first polynomial multiplication module in a fixed order, and performing Schoolbook polynomial multiplication operations (modular multiplication, modular addition, and accumulation operations) in a multi-parallelism manner to obtain the first polynomial multiplication operation result;

[0092] S3, performing a modular addition operation on the first polynomial multiplication operation result and the plaintext polynomial, and storing the obtained ciphertext polynomial in the ciphertext memory;

[0093] S4, importing the ciphertext polynomial stored in the ciphertext memory and an externally input secret vector into the second polynomial multiplication module, and performing Schoolbook polynomial multiplication operations (modular multiplication, modular addition, and accumulation operations) in a multi-parallelism manner to obtain the second polynomial multiplication operation result;

[0094] S5, performing a modular addition operation on the second polynomial multiplication operation result and the ciphertext polynomial, obtaining the decrypted plaintext polynomial and importing it into the decoder, and finally outputting the plaintext result after decoding.

[0095] The Schoolbook polynomial multiplication operation adopted in the embodiment of the present invention specifically includes:

[0096] Public key vector Key vector Polynomial multiplication operation result n is the polynomial dimension, q is the modulus of the modular operation; j is an index value ranging from 0 to n;

[0097] S2 and S4 specifically include:

[0098] When i < n - 4, execute the outer loop

[0099] When j < n, execute the inner loop

[0100] (1) Read data from the data storage module within a single clock cycle, including a[j], a[(j + n / 2) mod n], b[(i - j) mod n], b[(i - j + 1) mod n], b[(i - j + 2) mod n], b[(i - j + 3) mod n]

[0101] (2) Perform 12bit × 5bit multiplication operations to calculate 8 partial products and perform modulo addition on the partial products;

[0102] (3) Accumulate the modulo results of the partial products;

[0103] When the inner loop ends, output eight calculation results

[0104] When the outer loop ends, all results are calculated.

[0105] The structure of the lightweight and efficient encryption / decryption coprocessor based on RLWE of the present invention utilizes the computational characteristics of polynomial multiplication to achieve parallel design, shortens the iteration period to 1 / 8, compresses the memory resources of the CDT Gaussian sampler, and effectively balances performance and resource utilization. The structure proposed by the present invention is superior to other structures in terms of performance and efficiency indicators.

Claims

1. A lightweight and efficient encryption / decryption coprocessor based on RLWE assumption, characterized in that: include: CDT Gaussian sampler, a first polynomial multiplication module, an encoder, a first analog addition module, a second polynomial multiplication module, a decoder and a second analog addition module; The CDT Gaussian sampler is used to sample the input random number according to the probability value in the pre-stored probability pre-storage table to obtain the key vector; wherein the probability value is obtained by compressing N consecutive 1s in the Freq(cur) function value into one 1; The encoder is used to encode the plaintext vector to obtain a plaintext polynomial; The first polynomial multiplication module is used to perform a Schoolbook polynomial multiplication operation on the public key vector and the secret key vector in a multi-degree parallel manner to obtain a first polynomial multiplication operation result; The first modular addition module is used to perform modular addition operation on the plaintext polynomial and the multiplication result of the first polynomial to obtain the ciphertext polynomial; The second polynomial multiplication module is used to perform a Schoolbook polynomial multiplication operation on the ciphertext polynomial and the external input secret vector in a multi-degree parallel manner to obtain a second polynomial multiplication operation result; The second modular addition module is used to perform a modular addition operation on the multiplication result of the ciphertext polynomial and the second polynomial to obtain a decrypted plaintext polynomial; The decoder is used to decode the decrypted plaintext polynomial to obtain the decrypted plaintext vector.

2. The lightweight and efficient encryption / decryption coprocessor based on RLWE assumption according to claim 1, characterized in that: N≥4。 3. The lightweight and efficient encryption / decryption coprocessor based on RLWE assumption according to claim 1, characterized in that: The first polynomial multiplication module and the second polynomial multiplication module both include a PE multiplication unit, a modular addition unit and an accumulation unit; The PE multiplication unit is used to perform multiplication operations; The modular addition unit is used to perform modular addition operation on the operation result of the PE multiplication unit; The accumulation unit is used to accumulate the operation results of the modular addition unit until the accumulation reaches the dimension of the current polynomial multiplication matrix and then output the accumulation result.

4. The lightweight and efficient encryption / decryption coprocessor based on RLWE assumption according to claim 3, characterized in that: The PE multiplication unit is composed of a lookup table and a trigger.

5. The lightweight and efficient encryption / decryption coprocessor based on RLWE assumption according to claim 1, characterized in that: The multi-degree of parallelism is 8 degrees of parallelism.

6. The lightweight and efficient encryption / decryption coprocessor based on RLWE assumption according to claim 1, characterized in that: It also includes a data storage module, which is used to store the key vector and the public key vector.

7. The lightweight and efficient encryption / decryption coprocessor based on RLWE assumption according to claim 6, characterized in that: The data storage module stores the key vector in a format of four data sets.

8. The lightweight and efficient encryption / decryption coprocessor based on RLWE assumption according to claim 1, characterized in that: It also includes a ciphertext memory, in which the ciphertext polynomial obtained by the first modular addition module is stored.

9. A lightweight and efficient encryption / decryption method based on RLWE assumption, characterized in that: The encryption / decryption coprocessor according to any one of claims 1 to 8, comprising: The key vector is obtained by sampling with the CDT Gaussian sampler, and the public key vector is generated offline; the plaintext vector is encoded by the encoder to obtain the plaintext polynomial; Importing the public key vector and the secret key vector into the first polynomial multiplication module in a fixed order, performing the Schoolbook polynomial multiplication operation in a multi-parallel manner, and obtaining the first polynomial multiplication operation result; Perform a modular addition operation on the result of the multiplication operation of the first polynomial and the plaintext polynomial to obtain a ciphertext polynomial; Import the ciphertext polynomial and the external input secret vector into the second polynomial multiplication module, perform the Schoolbook polynomial multiplication operation in a multi-parallel manner, and obtain the second polynomial multiplication result; The result of the second polynomial multiplication operation is modulo-added to the ciphertext polynomial to obtain the decrypted plaintext polynomial, which is decoded to output the final plaintext result.

10. The lightweight and efficient encryption / decryption method based on RLWE assumption according to claim 9, characterized in that: The multi-parallelism is 8-parallelism. The Schoolbook polynomial multiplication operation is performed in a multi-parallelism manner, specifically including: Public Key Vector Key Vector Polynomial multiplication result n is the polynomial dimension; The Schoolbook polynomial multiplication operation specifically includes: When i < n - 4, execute the outer loop When j < n, execute the inner loop (1) In a single clock cycle, read data, including a[j], a[(j + n / 2) mod n], b[(i - j) mod n], b[(i - j + 1) mod n], b[(i - j + 2) mod n], b[(i - j + 3) mod n] (2) Perform a 12-bit × 5-bit multiplication operation, calculate 8 partial products, and perform modulo addition on the partial products; (3) Accumulate the modulo addition results of the partial products; When the inner loop ends, output eight calculation results When the outer loop ends, all results are calculated.

Citation Information

Patent Citations

  • Ring polynomial multiplier circuit in lattice password encryption and decryption

    CN112819168A

  • Post-quantum encryption method supporting multi-party private data operation in secret state

    CN113901506A

  • Toom-Cook polynomial multiplier based on improved Schoolbook algorithm and encryption and decryption method

    CN117608521A

  • Quantum-augmentable hybrid encryption system and method

    US20200259647A1

  • KR20240071692A