Methods, systems, devices, and media for generating discrete gaussian distribution random numbers in lwe cryptography

By generating discrete Gaussian distributed random numbers in LWE cryptography using quantum entropy sources and sampling quantization techniques, the problems of insufficient randomness and speed in existing technologies are solved, achieving high security and high-speed generation, and improving the computational performance of LWE cryptography.

CN117950625BActive Publication Date: 2026-11-27SOUTH CHINA NORMAL UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211338294.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-28
Publication Date
2026-11-27
Estimated Expiration
2042-10-28

AI Technical Summary

Technical Problem

Existing methods for generating discrete Gaussian distributed random numbers in LWE cryptography cannot strictly guarantee randomness and have a low generation rate, failing to meet the requirements of high speed and high security.

Method used

By employing quantum entropy sources, sampling quantization, and post-processing operations, discrete Gaussian random numbers that meet LWE cryptographic security requirements are generated through the principle of minimum entropy and linear mapping, ensuring their randomness and strict distribution, and improving the generation rate.

Benefits of technology

The generated discrete Gaussian distributed random numbers meet the cryptographic security requirements of LWE cryptography, and their randomness is strictly provable. The generation rate is increased by 1-2 orders of magnitude, significantly improving the operation speed of LWE cryptography.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117950625B_ABST
    Figure CN117950625B_ABST
Patent Text Reader

Abstract

The application discloses a method, system, device and medium for generating discrete Gaussian distribution random numbers in LWE (Learning With Errors) cryptography, relates to information security, quantum information technology and post-quantum cryptography, and can accurately model and prove the randomness and Gaussian distribution of the generated discrete Gaussian random numbers, and can fully ensure that the discrete Gaussian random numbers meet the cryptographic security requirements of LWE cryptography. Meanwhile, with the help of the high-speed generation rate of original random numbers and subsequent simple calculation steps, the generation rate of the discrete Gaussian random numbers proposed by the application is improved by 1-2 orders of magnitude compared with existing methods, and the calculation speed of the LWE cryptographic algorithm can be effectively improved, so that the problems in the background technology are effectively solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to information security, quantum information technology and post-quantum cryptography, and particularly to a method, system, device and medium for generating discrete Gaussian distributed random numbers in LWE cryptography using quantum entropy sources at high speed and with high security. Background Technology

[0002] In recent years, with the continuous development of quantum computers, public-key cryptography such as RSA and Diffie-Hellman has been proven to be efficiently cracked by quantum computers. Therefore, designing cryptographic algorithms that can resist quantum computers, i.e., post-quantum cryptography, has become a hot topic in academia. Currently, lattice-based Learning With Errors (LWE) cryptography is considered one of the most promising post-quantum cryptographic algorithms. The LWE cryptographic hard problem is based on solving B = A × S + e, where both the private key S and the error matrix e must be generated using discrete Gaussian random numbers. Therefore, how to generate discrete Gaussian random numbers that meet the requirements of LWE cryptography at a high speed and with high security is one of the key technologies for the implementation of this algorithm.

[0003] While existing methods for generating discrete Gaussian random numbers that meet the requirements of LWE cryptography differ in their specific calculation methods, they can generally be summarized into the following two steps:

[0004] ① Generate random or pseudo-random numbers that follow a uniform binomial distribution using classical noise sources (such as integrated electronic circuits based on phase-locked loop oscillation or metastable random numbers) or software algorithms;

[0005] ② Use discrete Gaussian sampling algorithms such as Cumulative Distribution Table (CDT), rejection sampling, and Knuth-Yao sampling to calculate the uniform binomial random numbers obtained in step ① above, and finally obtain discrete Gaussian random numbers.

[0006] However, the above methods have the following two shortcomings: 1. The random numbers generated by the existing methods based on random number integrated electronic circuits or software algorithms cannot strictly guarantee their randomness, and the discrete random numbers calculated by the Gaussian sampling algorithm approximately follow a Gaussian distribution. Therefore, the randomness quality of the discrete Gaussian distributed random numbers obtained by the existing methods is difficult to guarantee and only satisfies an approximate discrete Gaussian distribution, which poses a security risk in practical use. 2. The random number generation rate based on random number chips in the existing methods is slow (approximately tens of Mbps), and the subsequent discrete Gaussian sampling algorithm has complex calculation steps and consumes a lot of computational and storage resources, resulting in a low rate of generating discrete Gaussian distributed random numbers, only on the order of hundreds of megabits per second. In addition, the existing methods require the generation of a large number of random bits as input to the sampling algorithm, and generating these bits (e.g., using a pseudo-random generator) may have a non-negligible cost. Summary of the Invention

[0007] To address the shortcomings of existing technologies, this invention provides a method, system, device, and medium for generating discrete Gaussian distributed random numbers in LWE cryptography. This invention employs quantum entropy sources, sampling quantization, post-processing operations, and linear mapping to achieve precise modeling and analysis. The randomness and discrete Gaussian distribution of the obtained random numbers are rigorously proven theoretically, ensuring that they meet the cryptographic security requirements of LWE cryptography. Furthermore, this method generates discrete Gaussian distributed random numbers at a significantly higher rate than existing methods, effectively improving the running speed of the LWE cryptographic algorithm and thus overcoming the deficiencies of existing technologies.

[0008] To achieve the above objectives, the technical solution of the present invention is implemented as follows:

[0009] In a first aspect, the present invention provides a method for generating discrete Gaussian distributed random numbers in LWE cryptography, comprising,

[0010] The simulated quantum noise signal generated by the quantum entropy source is sampled, and the parameters of the analog-to-digital converter are adjusted so that the original random number N obtained by sampling satisfies the discrete Gaussian distribution required in LWE cryptography.

[0011] After determining the number of bits to retain using the minimum entropy principle, the original random number N is processed to retain the highest effective number of bits, so as to remove the classical noise contained in the original random number N, thereby obtaining the first quantum random number N′ that follows a discrete Gaussian distribution.

[0012] According to the security parameter requirements of LWE cryptography, the mean and variance of the second quantum random number N″ are set. The scaling factor and translation factor are calculated based on the mean and variance of the second quantum random number N″ and the mean and variance of the first quantum random number N′. The second quantum random number N″ that meets the security parameter requirements of LWE cryptography algorithm is then obtained by calculating based on the scaling factor, the translation factor and the first quantum random number N′.

[0013] The second quantum random number N″ is rounded down to obtain a discrete Gaussian random number N″′ that satisfies the statistical parameters required for LWE cryptographic security.

[0014] Secondly, the present invention provides a system for generating discrete Gaussian distributed random numbers in LWE cryptography, comprising:

[0015] A quantum entropy source generates simulated quantum noise signals in accordance with the principles of quantum mechanics. The uncertainty principle ensures the true randomness of the quantum noise signals output by the quantum entropy source. In this invention, it specifically refers to this type of quantum entropy source whose output quantum noise follows a Gaussian distribution.

[0016] A sampling and quantization unit is used to sample the analog noise signal generated by the quantum entropy source, convert the sampled analog quantum noise signal into an original random number N, and...

[0017] The post-processing and linear operation unit is used to determine the number of bits to retain using the minimum entropy principle, and then process the original random number N to retain the highest effective number of bits, so as to remove the classical noise contained in the original random number N, thereby obtaining a first quantum random number N′ that follows a discrete Gaussian distribution; the mean and variance of the second quantum random number N″ are set according to the security parameter requirements of LWE cryptography, and the scaling factor and translation factor are calculated based on the mean and variance of the second quantum random number N″ and the mean and variance of the first quantum random number N′, and the second quantum random number N″ that meets the security parameter requirements of LWE cryptography algorithm is obtained by calculation based on the scaling factor, the translation factor and the first quantum random number N′; the second quantum random number N″ is rounded to obtain the required discrete Gaussian distribution random number N″′.

[0018] Thirdly, the present invention provides an electronic device comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, wherein the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the method for generating discrete Gaussian distributed random numbers in LWE cryptography as described above.

[0019] Fourthly, the present invention provides a computer-readable storage medium storing at least one instruction, at least one program, a code set or instruction set, wherein the at least one instruction, the at least one program, the code set or instruction set is loaded and executed by a processor to implement the method for generating discrete Gaussian distributed random numbers in LWE cryptography as described above.

[0020] Compared with existing technologies, the advantages of this invention are as follows: This invention utilizes quantum random numbers to generate discrete Gaussian distributed random numbers for LWE cryptography. The randomness and discrete Gaussian distribution of the generated random numbers can be precisely quantitatively analyzed and proven using mathematical and physical models, thus fully ensuring that it meets the cryptographic security requirements of LWE cryptography. Furthermore, leveraging the high generation rate of the quantum entropy source and the advantages of simple subsequent computational processing steps, the generation rate of discrete Gaussian distributed random numbers proposed in this invention is increased by 1 to 2 orders of magnitude compared to existing methods, thereby effectively improving the computational speed of LWE cryptography and effectively solving the problems existing in the aforementioned background technologies. Attached Figure Description

[0021] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0022] Figure 1 This is a flowchart of the method in an embodiment of the present invention;

[0023] Figure 2 This is a flowchart illustrating the implementation of this invention.

[0024] Figure 3 This is a schematic diagram of the system in an embodiment of the present invention;

[0025] Figure 4 This is a schematic diagram of an electronic device in an embodiment of the present invention. Detailed Implementation

[0026] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0027] Example:

[0028] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, in the embodiments of this invention are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0029] In the description of this invention, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified. Furthermore, unless otherwise explicitly specified and limited, the terms "installed," "connected," and "linked" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal communication between two components. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.

[0030] The word “exemplary” as used below means “serving as an example, embodiment, or illustration.” Any embodiment illustrated as an “exemplary” need not be construed as superior to or better than other embodiments.

[0031] See Figure 1 and Figure 2 This invention proposes a method for generating discrete Gaussian distributed random numbers in LWE cryptography, which may include the following steps:

[0032] Step 100: Discretize and sample the simulated quantum noise signal that follows a Gaussian distribution generated by the quantum entropy source. Adjust the parameters of the analog-to-digital converter so that the sampled original random numbers satisfy the discrete Gaussian distribution required by LWE cryptography.

[0033] Specifically, the original random number N originates from an analog-to-digital converter (ADC), which samples and generates truly random numbers from a quantum entropy source. Each truly random number follows a discrete Gaussian distribution, i.e., N ~ (μ, σ). 2 ).

[0034] Step 200: After determining the number of bits to be retained using the minimum entropy principle, the original random number N is processed to retain the highest effective number of bits, so as to remove the classical noise contained in the original random number N, and thus obtain the first quantum random number N′ that follows a discrete Gaussian distribution.

[0035] Specifically, the minimum entropy principle is used to determine the number of bits to retain, as follows:

[0036] Through formula and The reserved number of bits k is obtained, where M and E represent the random variables of total measurement noise and classical noise, respectively, and m and e are the measured values, P M|E (m|e) is the conditional probability density function between the total measurement noise m and the classical noise e.

[0037] Step 300: Set the mean and variance of the second quantum random number N″ according to the security parameter requirements of LWE cryptography. Calculate the scaling factor and translation factor based on the mean and variance of the second quantum random number N″ and the mean and variance of the first quantum random number N′. Then, calculate the second quantum random number N″ that meets the security parameter requirements of the LWE cryptographic algorithm based on the scaling factor, the translation factor, and the first quantum random number N′.

[0038] Specifically, the scaling factor and translation factor are calculated as follows:

[0039] Scaling factor

[0040] Translation coefficient B = |A×μ2-μ1|, where, ,

[0041] Furthermore, the second quantum random number N″ that meets the security parameter requirements of the LWE cryptographic algorithm is obtained. Specifically, the second quantum random number N″ is calculated using the formula N″=A×N′±B.

[0042] Step 400: Round the second quantum random number N″ to obtain a discrete Gaussian random number N″′ that satisfies the statistical parameters required for LWE cryptographic security.

[0043] Specifically, rounding up means taking the nearest integer, i.e. Later obtained The sequence is then used to select random numbers from N″′ and substitute them into the LWE cipher to generate the required private key S and error matrix e.

[0044] In some embodiments, a method for generating discrete Gaussian distributed random numbers in LWE cryptography can also be implemented by the following steps:

[0045] Step 201: The quantum entropy source generates an analog noise signal that follows a Gaussian distribution.

[0046] Step 202: After the quantum noise signal is sampled and quantized by an analog-to-digital converter (ADC), the original random numbers N = {n1, n2, ..., n} are obtained. m ...} and satisfy N~(μ,σ 2 );

[0047] Step 203: Based on minimum entropy The calculation formula yields the minimum entropy, where M and E represent the random variables of total measurement noise and classical noise, respectively, and m and e are the measured values, P... M|E (m|e) is the conditional probability density function of the total measurement noise m and the classical noise e.

[0048] Step 204: Based on the minimum entropy formula The number of bits k to retain in the original random number is calculated. The original sequence N generated in step 202 is then processed by retaining k most significant bits, i.e., retaining the most significant k bits according to the quantization precision of the selected analog-to-digital converter (ADC). This yields a quantum random number N′ that has been freed from classical noise. This quantum random number N′ = {n'1, n'2, ..., n'} m ,...} follows a Gaussian distribution and satisfies and

[0049] Step 205: Based on the cryptographic security parameters and actual needs, set the mean μ2 and standard deviation σ2 of the statistical distribution of the required discrete Gaussian random numbers, and calculate the scaling factor accordingly. The translation coefficient B = |A×μ2-μ1| is used, and then the Gaussian distributed random number N″ = {n″1,n″2,...,n″ is calculated according to the formula N″ = A×N′±B. m ,...}and

[0050] Step 206: Apply the Gaussian random numbers obtained in step 205 Performing rounding (rounding to the nearest integer) calculations is... Later obtained The sequence is then used to select random numbers from N″′ and substitute them into the LWE cipher to generate the required private key S and error matrix e.

[0051] It can be noted that the method described in this invention has the following two main advantages:

[0052] (1) The simulated noise signal generated by the quantum entropy source used in this invention obeys the laws of quantum physics, and can establish a mathematical physics model for precise quantitative analysis. The randomness of the random numbers obtained by it and the strict theoretical proof of the discrete Gaussian distribution can ensure in principle that the discrete Gaussian distribution random numbers meet the cryptographic security requirements.

[0053] (2) The quantum entropy source used in this invention can generate simulated noise signals at a rate as high as Gbps and the subsequent data processing and calculation steps are simple. Therefore, the rate at which this method generates discrete Gaussian random numbers is 1-2 orders of magnitude higher than the existing method, which can significantly improve the computational performance of LWE cryptography.

[0054] See Figure 3 Based on the same inventive concept, this invention also proposes a system for generating discrete Gaussian distributed random numbers in LWE cryptography, comprising: a quantum entropy source, a sampling and quantization unit, and a post-processing and linear operation unit. Specifically, the quantum entropy source generates simulated quantum noise signals according to the principles of quantum mechanics, based on the uncertainty principle. The principle ensures the true randomness of the quantum noise signal output by the quantum entropy source. In this invention, it specifically refers to quantum entropy sources whose output quantum noise follows a Gaussian distribution. The sampling and quantization unit is used to sample the analog noise signal generated by the quantum entropy source and convert the sampled analog noise signal into an original random number N. The post-processing and linear operation unit is used to determine the number of bits to retain based on the minimum entropy principle, and then process the original random number N to retain the highest effective number of bits to remove the classical noise contained in the original random number N, thereby obtaining a first quantum random number N′ that follows a discrete Gaussian distribution. The mean and variance of the second quantum random number N″ are set according to the security parameter requirements of the LWE cryptography. The scaling factor and translation factor are calculated based on the mean and variance of the second quantum random number N″ and combined with the mean and variance of the first quantum random number N′. The scaling factor, the translation factor, and the first quantum random number N′ are used to calculate the second quantum random number N″ that meets the security parameter requirements of the LWE cryptography algorithm. The second quantum random number N″ is rounded to obtain the required discrete Gaussian distribution random number N″′.

[0055] For example, a quantum entropy source is a physical device that generates simulated quantum noise signals in accordance with the principles of quantum mechanics. The uncertainty principle ensures the true randomness of the quantum noise signal output by the quantum entropy source. This invention specifically refers to such quantum entropy sources in which the output quantum noise follows a Gaussian distribution, such as specific physical implementation devices for detecting vacuum shot noise to obtain quantum noise or detecting laser phase noise to obtain quantum noise.

[0056] For example, the sampling and quantization unit is a chip or device such as an analog-to-digital converter (ADC) or an oscilloscope that can sample and quantize analog quantum signals to obtain raw random numbers.

[0057] For example, the post-processing and linear operation unit can be a chip or circuit board with computing capabilities, such as a field-programmable gate array (FPGA), CPU, and DSP, to process the original random number into a discrete Gaussian distributed random number that meets the requirements of LWE cryptography.

[0058] Since this system is the system corresponding to the method for generating discrete Gaussian distributed random numbers in LWE cryptography in the embodiments of the present invention, and the principle of solving the problem in this system is similar to that of the method, the implementation of this system can refer to the implementation process of the above method embodiments, and the repeated parts will not be described again.

[0059] See Figure 4 Based on the same inventive concept, embodiments of the present invention also provide an electronic device, the electronic device including a processor and a memory, the memory storing at least one instruction, at least one program, code set or instruction set, the at least one instruction, the at least one program, the code set or instruction set being loaded and executed by the processor to implement the method for generating discrete Gaussian distributed random numbers in LWE cryptography as described above.

[0060] It is understood that the memory may include random access memory (RAM) or read-only memory. Optionally, the memory may include non-transitory computer-readable storage medium. The memory can be used to store instructions, programs, code, code sets, or instruction sets. The memory may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function, instructions for implementing the various method embodiments described above, etc.; the stored data area may store data created according to the use of the server, etc.

[0061] A processor may include one or more processing cores. The processor connects to various parts of the server via various interfaces and lines, executing instructions, programs, code sets, or instruction sets stored in memory, and accessing data stored in memory to perform various server functions and process data. Optionally, the processor may be implemented using at least one of the following hardware forms: Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor may integrate one or more of the following: Central Processing Unit (CPU) and Modem. The CPU primarily handles the operating system and applications; the modem handles wireless communication. It is understood that the modem may also be implemented as a separate chip without being integrated into the processor.

[0062] Since this electronic device is the electronic device corresponding to the method for generating discrete Gaussian distributed random numbers in LWE cryptography in the embodiments of the present invention, and the principle of solving the problem by this electronic device is similar to that of this method, the implementation of this electronic device can refer to the implementation process of the above method embodiments, and the repeated parts will not be described again.

[0063] Based on the same inventive concept, embodiments of the present invention also provide a computer-readable storage medium storing at least one instruction, at least one program, code set, or instruction set, wherein the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement the method for generating discrete Gaussian distributed random numbers in LWE cryptography as described above.

[0064] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, including read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically-erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage, magnetic tape storage, or any other computer-readable medium capable of carrying or storing data.

[0065] Since this storage medium is the storage medium corresponding to the method for generating discrete Gaussian distributed random numbers in LWE cryptography in the embodiments of the present invention, and the principle of this storage medium in solving the problem is similar to that of this method, the implementation of this storage medium can refer to the implementation process of the above method embodiments, and the repeated parts will not be described again.

[0066] In some possible implementations, various aspects of the methods of the embodiments of the present invention can also be implemented as a program product comprising program code that, when run on a computer device, causes the computer device to perform the steps of the method for generating discrete Gaussian distributed random numbers in LWE cryptography according to the various exemplary embodiments of this application described above. The executable computer program code or "code" for performing the various embodiments can be written in high-level programming languages ​​such as C, C++, C#, Smalltalk, Java, JavaScript, Visual Basic, Structured Query Language (e.g., Transact-SQL), Perl, or in various other programming languages.

[0067] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.

[0068] The above embodiments are merely illustrative of the technical concept and features of the present invention, and are intended to enable those skilled in the art to understand the content of the present invention and implement it accordingly. They should not be construed as limiting the scope of protection of the present invention. All equivalent changes or modifications made based on the essence of the content of the present invention should be covered within the scope of protection of the present invention.

Claims

1. A method for generating discrete Gaussian distributed random numbers in LWE cryptography, characterized in that, include: The simulated quantum noise signal generated by the quantum entropy source, which follows a Gaussian distribution, is discretized and sampled. The parameters of the analog-to-digital converter are adjusted so that the original random numbers obtained by sampling satisfy the discrete Gaussian distribution required in LWE cryptography. After determining the number of bits to retain using the minimum entropy principle, the original random number is processed to retain the highest effective number of bits in order to remove the classical noise contained in the original random number, thereby obtaining the first quantum random number that follows a discrete Gaussian distribution. According to the security parameter requirements of LWE cryptography, the mean and variance of the second quantum random number are set. A scaling factor and a translation factor are calculated based on the mean and variance of the second quantum random number, combined with the mean and variance of the first quantum random number. Then, based on the scaling factor, the translation factor, and the first quantum random number, a second quantum random number that meets the security parameter requirements of the LWE cryptographic algorithm is obtained. Specifically, the scaling factor... Translation coefficient In the formula, , These are the mean values ​​of the first and second quantum random numbers, respectively. , The variances of the first and second quantum random numbers are respectively expressed by the formula. The second quantum random number is calculated. , These are the first quantum random number and the second quantum random number, respectively. The second quantum random number is rounded to obtain a discrete Gaussian random number that meets the statistical parameters required for LWE cryptographic security.

2. The method for generating discrete Gaussian distributed random numbers in LWE cryptography according to claim 1, characterized in that, The original random number is obtained from the sampling of the analog-to-digital converter (ADC). The ADC obtains random numbers by sampling from the quantum entropy source. The sampling quantization interval and quantization bit width of the ADC are adjusted so that the obtained random number satisfies the discrete Gaussian distribution required in LWE cryptography.

3. The method for generating discrete Gaussian distributed random numbers in LWE cryptography according to claim 1, characterized in that, The number of bits to retain is determined using the principle of minimum entropy, specifically as follows: Calculated using the minimum entropy formula and Obtain the reserved number of bits ,in, , Let represent the random variables of total measurement noise and classical noise, respectively. and These are the measured values, Total measurement noise and classical noise The conditional probability density function between.

4. The method for generating discrete Gaussian distributed random numbers in LWE cryptography according to claim 1, characterized in that, The process of rounding the second quantum random number involves rounding to the nearest integer to obtain the final discrete Gaussian distributed random number. Then, a random number is selected from this random number and substituted into the LWE cryptography to generate the required private key and error matrix.

5. A system for generating discrete Gaussian distributed random numbers in LWE cryptography, characterized in that, include: The quantum entropy source generates simulated quantum noise signals according to the principles of quantum mechanics, and the output quantum noise follows a Gaussian distribution. A sampling and quantization unit is used to sample the analog quantum noise signal generated by the quantum entropy source and convert the sampled analog quantum noise signal into original random numbers; and, The post-processing and linear operation unit is used to process the original random number by retaining the set number of bits after determining the number of bits to be retained through the minimum entropy principle, so as to remove the classical noise contained in the original random number and obtain the first quantum random number that follows a discrete Gaussian distribution. Based on the security parameter requirements of LWE cryptography, the mean and variance of the second quantum random number are set. A scaling factor and a translation factor are calculated based on the mean and variance of the second quantum random number, combined with the mean and variance of the first quantum random number. The first quantum random number is then calculated using these scaling and translation scaling factors to obtain the second quantum random number that meets the security parameter requirements of the LWE cryptographic algorithm. Specifically, the scaling factor... Translation coefficient In the formula, , These are the mean values ​​of the first and second quantum random numbers, respectively. , The variances of the first and second quantum random numbers are respectively expressed by the formula. The second quantum random number is calculated. , These are the first quantum random number and the second quantum random number, respectively; the second quantum random number is rounded to obtain the desired discrete Gaussian distributed random number.

6. An electronic device, characterized in that, The electronic device includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the method for generating discrete Gaussian distributed random numbers in LWE cryptography as described in any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that, The storage medium stores at least one instruction, at least one program, code set, or instruction set, wherein the at least one instruction, the at least one program, the code set, or instruction set is loaded and executed by a processor to implement the method for generating discrete Gaussian distributed random numbers in LWE cryptography as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Gaussian modulation data generation method applied to continuous variable quantum key distribution system

    CN108599945A

  • Optimization method for sampling range of analog-to-digital converter in quantum random number generator with quantum noise meeting Gaussian distribution

    CN115237375A