CN1818853A - Device and method for producing true random codes - Google Patents

Device and method for producing true random codes Download PDF

Info

Publication number
CN1818853A
CN1818853A CN 200510120628 CN200510120628A CN1818853A CN 1818853 A CN1818853 A CN 1818853A CN 200510120628 CN200510120628 CN 200510120628 CN 200510120628 A CN200510120628 A CN 200510120628A CN 1818853 A CN1818853 A CN 1818853A
Authority
CN
China
Prior art keywords
random code
threshold
generator
random
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 200510120628
Other languages
Chinese (zh)
Other versions
CN100435089C (en
Inventor
魏正军
廖常俊
刘颂豪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
South China Normal University
Original Assignee
South China Normal University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by South China Normal University filed Critical South China Normal University
Priority to CNB2005101206286A priority Critical patent/CN100435089C/en
Publication of CN1818853A publication Critical patent/CN1818853A/en
Application granted granted Critical
Publication of CN100435089C publication Critical patent/CN100435089C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Tests Of Electronic Circuits (AREA)
  • Analogue/Digital Conversion (AREA)

Abstract

一种产生真随机码的装置,包括若干个多门限随机码发生器、数据处理器,噪声发生器与每个多门限随机码发生器分别相连,组成若干个随机码发生器单元,每个多门限随机码发生器与数据处理器相连。用该装置产生真随机码的方法:把噪声发生器产生的随机电平信号通过多门限随机码发生器甄别后得到二进制的真随机码序列,然后在每个周期内,将若干个随机码发生器单元产生的二进制的真随机码序列各取一位,通过数据处理器合并为一个二进制的真随机码序列输出。该装置通过多门限随机码发生器获得真随机码的输出,以提高随机码输出码率和随机性。该装置可以产生不需要调整,工作稳定,输出码率可以扩展,随机性可以提高,符合量子保密通信需要的真随机码。

A device for generating true random codes, including several multi-threshold random code generators and data processors, the noise generators are connected to each multi-threshold random code generator to form several random code generator units, each multi-threshold random code generator unit The threshold random code generator is connected with the data processor. The method of using this device to generate a true random code: the random level signal generated by the noise generator is screened by a multi-threshold random code generator to obtain a binary true random code sequence, and then several random codes are generated in each cycle The binary true random code sequence generated by the device unit takes one bit each, and is combined into a binary true random code sequence output by the data processor. The device obtains the output of a true random code through a multi-threshold random code generator, so as to improve the output code rate and randomness of the random code. The device can generate true random codes that do not need to be adjusted, work stably, output code rates can be expanded, randomness can be improved, and meet the needs of quantum secret communication.

Description

一种产生真随机码的装置及其产生真随机码的方法A device for generating true random codes and a method for generating true random codes

技术领域technical field

本发明涉及光量子保密通信技术领域,具体涉及一种产生真随机码的装置及其产生真随机码的方法。The invention relates to the technical field of optical quantum secure communication, in particular to a device for generating a true random code and a method for generating a true random code.

背景技术Background technique

真随机码发生器的作用是产生永不重复的密码本,保证一次一密的绝对不可破解。量子保密通信的量子信道不是用来传送密文或明文,而是用来建立和传送密码本。要完成整个量子通信过程,需要采用两条通信信道,一条是量子信道,用于传输量子密钥;一条是经典信道,用于密钥的验证和密文的传输。量子信道由其物理原理,是不可窃听的。而通过经典信道进行的两个过程并不是绝对不可窃听的。密钥验证时,公布的结果是公开的,为了防止窃听者根据公布的部分,推测未公布的部分,所有量子密钥必须是不相关的。在实际量子密钥分发系统中,收发双方Alice和Bob需要使用随机码来随机制备和随机检测单光子的量子态。量子密码序列是从随机码序列中提取出来的,所以要求随机码的各位是统计独立的。同时,数学上已经证明,一次一密系统是完全安全的,不可破的密码。一次一密系统所需要的密钥量等于相应明文的数量,而且只用一次。量子保密通信系统的绝对安全性是由量子信道和经典信道的绝对安全性共同决定的,其理论依据分别是量子不可克隆原理和一次一密原理。要保证经典信道的绝对安全性,必须采用真随机码发生器产生各位统计独立的真随机码,为一次一密的加密系统提供永不重复的密码本,从而保证量子保密通信的经典信道的绝对安全。The function of the true random code generator is to generate a code book that will never be repeated, ensuring that the one-time pad is absolutely unbreakable. The quantum channel of quantum secure communication is not used to transmit ciphertext or plaintext, but to establish and transmit codebook. To complete the entire quantum communication process, two communication channels are required, one is a quantum channel for transmitting quantum keys; the other is a classical channel for key verification and ciphertext transmission. Due to its physical principles, quantum channels cannot be tapped. However, the two processes carried out through the classical channel are not absolutely untappable. When verifying the key, the announced result is public. In order to prevent eavesdroppers from inferring the unpublished part based on the announced part, all quantum keys must be irrelevant. In an actual quantum key distribution system, Alice and Bob need to use random codes to randomly prepare and randomly detect the quantum states of single photons. The quantum cipher sequence is extracted from the random code sequence, so each bit of the random code is required to be statistically independent. At the same time, it has been proved mathematically that the one-time pad system is a completely safe and unbreakable password. The one-time pad system requires a key quantity equal to the corresponding plaintext quantity, and it is only used once. The absolute security of the quantum secure communication system is jointly determined by the absolute security of the quantum channel and the classical channel, and its theoretical basis is the quantum non-cloning principle and the one-time pad principle respectively. To ensure the absolute security of the classical channel, it is necessary to use a true random code generator to generate statistically independent true random codes, and provide a codebook that will never be repeated for the one-time pad encryption system, thereby ensuring the absolute security of the classical channel of quantum secure communication. Safety.

1)产生随机码的方法主要有数学方法和物理方法两种1) There are two main methods of generating random codes: mathematical methods and physical methods

(1)数学方法(1) Mathematical method

数学上常用的随机数产生方法有:RAND表产生伪随机数、线性同余发生器产生伪随机数序列、反馈移位寄存器产生伪随机数序列、伪随机数发生器ANSIX9.17等等。这些用数学方法产生的伪随机数序列只由算法和种子决定,一旦算法和种子确定以后,序列中的每一位的值都是确定的,因此,信息熵为零,不能用于量子保密系统。The commonly used random number generation methods in mathematics include: RAND table to generate pseudo-random numbers, linear congruential generator to generate pseudo-random number sequences, feedback shift register to generate pseudo-random number sequences, pseudo-random number generator ANSIX9.17 and so on. These pseudo-random number sequences generated by mathematical methods are only determined by algorithms and seeds. Once the algorithm and seeds are determined, the value of each bit in the sequence is determined. Therefore, the information entropy is zero and cannot be used in quantum security systems. .

(2)物理方法(2) Physical method

物理上的产生随机码的方法是把随机信号通过变换系统,得到二进制随机码。真随机码发生器的研究工作目前主要集中在随机源的研究工作上,对于变换系统,一般都采用比较器甄别的方案。The physical method of generating random codes is to pass random signals through the transformation system to obtain binary random codes. At present, the research work of true random code generator is mainly concentrated on the research work of random source. For the transformation system, the scheme of comparator screening is generally used.

2)常见的随机信号源2) Common random signal sources

(1)选取真实世界的自然噪音(1) Select the natural noise of the real world

自然界存在丰富的随机现象,可以利用各种噪声信号本身的随机性来获得真随机码。There are abundant random phenomena in nature, and the randomness of various noise signals can be used to obtain true random codes.

(2)量子随机事件(2) Quantum random events

被囚禁的离子产生的共振荧光辐射,其光子间隙时间是随机分布的,光子通过光学分束器的随机性等等。The resonant fluorescence radiation generated by trapped ions has a random distribution of photon interstitial times, randomness of photons passing through optical beam splitters, and so on.

(3)围绕计算机产生的随机事件(3) Surrounding computer-generated random events

每个击键的一份拷贝、鼠标命令、扇区数一天的某个时间寻找每个磁盘操作的延迟、实际鼠标位置、显示器扫描线数、实际显示图象的内容等等。A copy of every keystroke, mouse command, sector count, time-of-day seek latency for every disk operation, actual mouse position, monitor scan line count, actual displayed image content, and more.

3)真随机数的硬件产生国内外的进展3) The progress of hardware generation of true random numbers at home and abroad

G.B.Agnew提出将两个金属绝缘半导体电容器(MISC)很近地放在一起,随机位是它们两个之间的电荷量之差的函数;M.Gude制造了一个根据物理现象如放射性衰变采集随机位的随机数发生器;Manfield Richter研制了一个基于半导体二级管热噪声的随机数发生器;南京大学还研制成功一种基于混沌原理的随机数发生器,混沌概述为由确定性方程(指形式确定)的非线性效应所引起的方程解的不确定性,典型例子有Lorenz微分方程和映象Logist,它们可利用初始值的很小偏差导致解的很大偏差而产生混沌效应后产生的,随机序列的周期理论上无限长,该方法可用于同步通信,工作过程为混沌→混沌同步→混沌;中科院物理所研制了基于单光子通过分束器的随机性的光量子随机源;华东师大研制了基于偏振光量子的随机源;Lepley等用掺铒光纤放大器与pin探测器产生的宽带白噪声做高速D触发器的输入,产生了2.5Gb/s和5Gb/s的非归零真随机码。G.B.Agnew proposed to put two metal-insulated-semiconductor capacitors (MISC) very close together, and the random bit is a function of the difference in charge between them; bit random number generator; Manfield Richter has developed a random number generator based on the thermal noise of semiconductor diode; Nanjing University has also successfully developed a random number generator based on the principle of chaos, which is summarized by the deterministic equation (referring to The uncertainty of the solution of the equation caused by the nonlinear effect of the formal determination), the typical examples are Lorenz differential equation and the image Logist, they can use the small deviation of the initial value to cause the large deviation of the solution to produce the chaotic effect , the period of the random sequence is theoretically infinitely long, this method can be used for synchronous communication, and the working process is chaos→chaos synchronization→chaos; the Institute of Physics, Chinese Academy of Sciences has developed an optical quantum random source based on the randomness of a single photon passing through a beam splitter; East China Normal University Developed a random source based on polarized light quanta; Lepley et al. used broadband white noise generated by erbium-doped fiber amplifiers and pin detectors as the input of high-speed D flip-flops, and produced 2.5Gb/s and 5Gb/s non-return-to-zero true random codes .

4)产生真随机码的各种方法的比较4) Comparison of various methods for generating true random codes

真随机码发生器按其采用的物理随机源分为传统和量子两大类。传统的随机码发生器采用噪声信号作为随机源,通过单门限甄别器输出随机码,虽然容易实现、速率快,但是受噪声的各种统计特性难以控制和保持稳定等因素的影响,产生的随机码的随机性较差。而量子随机源是永不重复的完全随机源,虽然它既无规律也不会重复,但在数据采集上难度大,设备复杂,同时量子随机源在稳定性和产生速率上远未达到量子保密的要求,并且受干扰噪声等因素的影响,实际所产生的随机码的随机性远不如理论值理想。例如,量子保密系统试验通常采用单光子作随机源,虽然随机性较好,但是这种方式受稳定性和速率的限制,还停留在实验室阶段,其相关系数并不理想,甚至大于0.05,即超过了不相关的上限,可以认为输出的随机码是相关的。True random code generators are divided into two categories: traditional and quantum according to the physical random source they use. Traditional random code generators use noise signals as random sources, and output random codes through a single-threshold discriminator. Although it is easy to implement and fast, it is difficult to control and maintain stability due to various statistical characteristics of noise. The randomness of the code is poor. The quantum random source is a completely random source that never repeats. Although it has neither rules nor repeats, it is difficult to collect data and the equipment is complicated. At the same time, the stability and generation rate of the quantum random source are far from quantum secrecy. Requirements, and affected by factors such as interference noise, the randomness of the actual random code is far less than the ideal value of the theoretical value. For example, quantum security system experiments usually use single photons as a random source. Although the randomness is good, this method is limited by stability and speed, and it is still in the laboratory stage. The correlation coefficient is not ideal, even greater than 0.05. That is, if the upper limit of irrelevance is exceeded, the output random codes can be considered to be correlated.

量子保密通信要达到实用阶段,就需要有产生的随机码随性好,工作稳定,能耗小的随机码发生器,而上述的随机码发生器,难以同时达到这些要求。In order to achieve the practical stage of quantum secure communication, random code generators with good randomness, stable operation and low energy consumption are needed. However, it is difficult for the random code generators mentioned above to meet these requirements at the same time.

发明内容Contents of the invention

本发明的目的在于提供一种产生真随机码的装置,该装置通过多门限随机码发生器甄别获得真随机码的输出,以提高随机码输出码率和随机性。The purpose of the present invention is to provide a device for generating true random codes, which obtains the output of true random codes through multi-threshold random code generator screening, so as to improve the output code rate and randomness of random codes.

本发明的另一目的在于提供一种用上述装置来产生真随机码的方法,这种方法可以产生不需要调整,工作稳定,输出码率可以扩展,随机性可以提高,符合量子保密通信需要的真随机码。Another object of the present invention is to provide a method for generating true random codes with the above-mentioned device, which can generate codes that do not require adjustment, work stably, output code rates can be expanded, randomness can be improved, and meet the needs of quantum secret communication. True random code.

本发明的产生真随机码的装置包括噪声发生器、若干个多门限随机码发生器、数据处理器,噪声发生器与每个多门限随机码发生器分别相连,组成若干个随机码发生器单元,每个多门限随机码发生器与数据处理器相连。The device for producing true random codes of the present invention includes a noise generator, several multi-threshold random code generators, and a data processor, and the noise generator is connected to each multi-threshold random code generator respectively to form several random code generator units , each multi-threshold random code generator is connected to the data processor.

所述多门限随机码发生器是模-数转换器,模-数转换器以最低位输出;或者是包括比较器阵列和解码器,噪声发生器、比较器阵列、解码器、数据处理器依次连接;比较器阵列是若干个比较器并联在一起使用,噪声发生器与每个比较器分别相连,比较器阵列输出相应的TTL电平,经过解码器解码之后得到二进制的真随机码序列。The multi-threshold random code generator is an analog-to-digital converter, and the analog-to-digital converter outputs with the lowest bit; or comprises a comparator array and a decoder, a noise generator, a comparator array, a decoder, and a data processor in sequence Connection; the comparator array is a number of comparators connected in parallel, the noise generator is connected to each comparator separately, the comparator array outputs the corresponding TTL level, and after being decoded by the decoder, a binary true random code sequence is obtained.

用上述装置来产生真随机码的方法:The method of generating a true random code with the above-mentioned device:

把噪声发生器产生的随机电平信号通过多门限随机码发生器甄别得到二进制的真随机码序列,然后在每个周期内,将若干个随机码发生器单元产生的二进制的真随机码序列各取一位,通过数据处理器合并为一个二进制序列的真随机码序列输出。The random level signal generated by the noise generator is screened by the multi-threshold random code generator to obtain a binary true random code sequence, and then in each cycle, the binary true random code sequences generated by several random code generator units are respectively One bit is taken and combined into a binary sequence by a data processor to output a true random code sequence.

所述噪声发生器产生的随机电平信号经过比较器阵列的甄别,比较器阵列输出相应的TTL电平,经过解码器解码之后得到二进制的真随机码序列。The random level signal generated by the noise generator is screened by the comparator array, and the comparator array outputs the corresponding TTL level, and after being decoded by the decoder, a binary true random code sequence is obtained.

所述噪声发生器产生的随机电平信号也可以经过模-数转换器的甄别,以模-数转换器的最低位作为输出,得到二进制的真随机码序列。The random level signal generated by the noise generator can also be screened by the analog-to-digital converter, and the lowest bit of the analog-to-digital converter can be used as an output to obtain a binary true random code sequence.

所述数据处理器为并串转换器或数据采集卡。The data processor is a parallel-to-serial converter or a data acquisition card.

本发明的特点在于多门限随机码发生器的变换系统和输出特性扩展上,变换系统为模-数转换器,或者是比较器阵列和解码器相连组成。The present invention is characterized in the conversion system and output characteristic extension of the multi-threshold random code generator, the conversion system is an analog-to-digital converter, or a comparator array and a decoder are connected together.

本发明把噪声信号数字化,然后根据其奇偶性分为两组,奇数组对应随机码“1”(或“0”),偶数组对应随机码“0”(或“1”)。其原理具体如下:The present invention digitizes the noise signal and then divides it into two groups according to its parity, the odd group corresponds to the random code "1" (or "0"), and the even group corresponds to the random code "0" (or "1"). The principle is as follows:

设输入的噪声电压V都落在区间[Vmin,Vmax]内,且它的概率分布密度为p(V)。用多个门限电压把此区间等分成2n个小区间,且从下至上分别对每个区间编号(从1到2n)。则每个区间的宽度为It is assumed that the input noise voltage V falls within the interval [V min , V max ], and its probability distribution density is p(V). Divide this interval into 2 n small intervals with multiple threshold voltages, and number each interval from bottom to top (from 1 to 2 n ). Then the width of each interval is

DD. vv == VV maxmax -- VV minmin 22 nno

第i个区间为[Vmin+(i-1)Dv,Vmin+iDv],其中0<i≤2n。我们规定:当噪声落在第i个区间中时,若i为奇数时,随机码发生器输出为“1”(或“0”),当i为偶数时,输出“0”(或“1”)。这样即把输入的随机噪声数字化为随机码。The i-th interval is [V min +(i-1)D v , V min +iD v ], where 0<i≤2 n . We stipulate: when the noise falls in the i interval, if i is an odd number, the output of the random code generator is "1" (or "0"), and when i is an even number, the output is "0" (or "1 "). In this way, the input random noise is digitized into a random code.

多门限甄别是指把比较器阵列中比较器的门限电压分别设置在上述的门限电压上,这样,比较器阵列的输出与输入噪声电压有一一对应的关系。当噪声落在第i个区间中时,有i个比较器输出为高电平,有2n-i个比较器输出为低电平。Multi-threshold discrimination refers to setting the threshold voltages of the comparators in the comparator array to the threshold voltages mentioned above, so that there is a one-to-one correspondence between the output of the comparator array and the input noise voltage. When the noise falls in the i interval, there are i comparators whose outputs are high level, and 2 n -i comparators whose outputs are low level.

解码器是指能对比较器的输出进行解码,使得当噪声落在第i个区间中时,若i为奇数时,随机码发生器输出为“1”(或“0”),当i为偶数时,输出“0”(或“1”),即得真随机码输出。The decoder refers to the ability to decode the output of the comparator so that when the noise falls in the i interval, if i is an odd number, the output of the random code generator is "1" (or "0"), when i is When the number is even, output "0" (or "1"), that is, a true random code output.

模-数转换器是把噪声信号数字化,然后根据其奇偶性分为两组,奇数组对应随机码“1”(或“0”),偶数组对应随机码“0”(或“1”)。模-数转换器的最低位代表噪声信号处于奇数还是偶数区间,如此用模-数转换器实现了比较器阵列和解码器的功能。The analog-to-digital converter digitizes the noise signal, and then divides it into two groups according to its parity, the odd group corresponds to the random code "1" (or "0"), and the even group corresponds to the random code "0" (or "1") . The lowest bit of the analog-to-digital converter represents whether the noise signal is in an odd or even interval, so the analog-to-digital converter is used to realize the functions of the comparator array and the decoder.

通过多门限甄别能使得输出的随机码的信息熵自动稳定。由信息熵的计算公式:Through multi-threshold screening, the information entropy of the output random code can be automatically stabilized. According to the calculation formula of information entropy:

Hh (( xx )) == -- &Sigma;&Sigma; ii == 11 nno pp (( xx ii )) loglog 22 pp (( xx ii ))

式中p(xi)为随机码中“0”和“1”的概率。当“0”和“1”等概出现时,随机码的熵达到最大,有最大的不确定性。多门限甄别方式可以使信息熵保持较大的值,其分析如下:In the formula, p( xi ) is the probability of "0" and "1" in the random code. When "0" and "1" are equally likely to appear, the entropy of the random code reaches the maximum, and there is the maximum uncertainty. The multi-threshold screening method can keep the information entropy at a large value, and its analysis is as follows:

输入的噪声电压落在第i个区间的概率为The probability that the input noise voltage falls in the i-th interval is

PP (( ii )) == &Integral;&Integral; VV minmin ++ ii DD. vv VV minmin ++ (( ii -- 11 )) DD. vv pp (( VV )) dVdV

当n足够大时,即Dv足够小时,When n is large enough, that is, D v is small enough,

  p[Vmin+(i-1)Dv]≈p(Vmin+iDv)p[V min +(i-1)D v ]≈p(V min +iD v )

but

   P(i)≈Dvp(Vmin+iDv)P(i)≈D v p(V min +iD v )

所以,so,

P(i)≈P(i+1)P(i)≈P(i+1)

由上所述,设输入噪声电压落在i为奇数的区间的概率为PO,落在偶数区间的概率为PC,则From the above, suppose the probability that the input noise voltage falls in the interval where i is odd is P O , and the probability that it falls in the even interval is P C , then

PO=PC而当随机变量的样本空间中的元素等概出现时,信息熵最大。这样,当n足够大时,就可以得到包含最大信息量的随机码。对于十六位的区间划分来说,无需任何补偿或调整电路,一位随机数的熵值即可达到0.99以上。P O =P C and when the elements in the sample space of the random variable appear equally, the information entropy is the largest. In this way, when n is large enough, a random code containing the maximum amount of information can be obtained. For 16-bit interval division, without any compensation or adjustment circuit, the entropy value of a random number can reach more than 0.99.

通过多门限甄别可以减小输出的随机码的归一化自相关系数。随机码的相关系数由物理随机源的随机性和变换系统的系统传递函数共同决定的。The normalized autocorrelation coefficient of the output random code can be reduced by multi-threshold screening. The correlation coefficient of the random code is jointly determined by the randomness of the physical random source and the system transfer function of the transformation system.

传统的单门限甄别电路利用阈交事件产生随机码输出,在单位时间内正阈交的平均次数The traditional single-threshold discrimination circuit uses threshold crossing events to generate random code output, and the average number of positive threshold crossings per unit time

NN &OverBar;&OverBar; == &Integral;&Integral; 00 &infin;&infin; xx &CenterDot;&CenterDot; pp 22 (( xx 00 ,, xx &CenterDot;&Center Dot; )) dd xx &CenterDot;&Center Dot;

对于平稳高斯随机过程For a stationary Gaussian random process

NN &OverBar;&OverBar; == &sigma;&sigma; xx &CenterDot;&Center Dot; 22 &pi;&pi;&pi;&pi; expexp [[ -- (( xx 00 -- mm )) 22 22 &sigma;&sigma; 22 ]]

对于平稳高斯随机过程,单位时间内正阈交的平均次数等于负阈交的平均次数,所以单位时间总的阈交的平均次数为2 N。For a stationary Gaussian random process, the average number of positive threshold crossings per unit time is equal to the average number of negative threshold crossings, so the average number of total threshold crossings per unit time is 2 N.

对于平稳随机过程在任一时间间隔τ=|tt-t1|内,相关系数与时刻无关,仅是时间间隔的函数。For a stationary random process within any time interval τ=|t t -t 1 |, the correlation coefficient has nothing to do with the time, but is only a function of the time interval.

输出的随机码的相关函数为The correlation function of the output random code is

RR Xx (( &tau;&tau;&tau;&tau; == EE. [[ Xx (( tt 11 )) Xx (( tt 22 )) ]]

== 11 &CenterDot;&Center Dot; PP 11

== 11 22 ee -- 22 NN &OverBar;&OverBar; &tau;&tau; [[ 11 ++ (( 22 NN &OverBar;&OverBar; &tau;&tau; )) 22 22 !! ++ (( 22 NN &OverBar;&OverBar; &tau;&tau; )) 44 44 !! .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ]]

== 11 44 ++ 11 44 ee -- 44 NN &OverBar;&OverBar; &tau;&tau;

其归一化自相关函数为Its normalized autocorrelation function is

rx(τ)=e-4 Nτ r x (τ)=e -4 Nτ

式中 N为单位时间内正阈交的次数,对于平稳高斯过程,当阈值In the formula N is the number of positive threshold crossings per unit time, for a stationary Gaussian process, when the threshold

Va=mx时,有 N=f0 When V a = m x , N = f 0

式中,f0为高斯白噪声的平均频率。所以有In the formula, f 0 is the average frequency of Gaussian white noise. F

rx(ττ=exp[-4f0τ]r x (ττ=exp[-4f 0 τ]

由上式可知,输出的随机码的归一化自相关函数是随机码的周期τ和高斯白噪声的平均频率f0的函数。It can be seen from the above formula that the normalized autocorrelation function of the output random code is a function of the period τ of the random code and the average frequency f 0 of Gaussian white noise.

工程应用当中,当τ大到一定程度时,如果rx(τ)已经很小,则可近似认为X(t)和X(t+τ)之间已不存在任何关联,统计独立。这里引入相关时间τ0。当τ>τ0时,则可以认为X(t)和X(t+τ)之间已不相关。τ0的定义为In engineering applications, when τ is large to a certain extent, if r x (τ) is already small, it can be approximately considered that there is no correlation between X(t) and X(t+τ), and they are statistically independent. The correlation time τ 0 is introduced here. When τ>τ 0 , it can be considered that there is no correlation between X(t) and X(t+τ). τ 0 is defined as

|rx0)|≤0.05|r x0 )|≤0.05

从上面的分析可知,当单门限随机码发生器的的取样时间大于τ0,即From the above analysis, we can see that when the sampling time of the single-threshold random code generator is greater than τ 0 , that is

f0·τ≥0.749时,可以认为输出的随机码序列的各位之间是不相关的,即输出为真随机码。但是τ0过大时,限制了随机码的产生速率,需要通过增大随机噪声信号源的带宽来解决,这就对随机噪声信号源提出了更高的要求。When f 0 ·τ≥0.749, it can be considered that the bits of the output random code sequence are irrelevant, that is, the output is a true random code. However, when τ 0 is too large, the generation rate of random codes is limited, and it needs to be solved by increasing the bandwidth of the random noise signal source, which puts forward higher requirements for the random noise signal source.

多门限甄别电路具有多个门限电压,单位时间内高斯白噪声落在第i个区域并在第i+1个门限电压上发生正阈交的次数为The multi-threshold discrimination circuit has multiple threshold voltages, the number of Gaussian white noise falling in the i-th area and the positive-threshold crossing at the i+1th threshold voltage per unit time is

NN ii &OverBar;&OverBar; == &Integral;&Integral; DD. vv (( ii ++ 11 )) DD. vv dVdV &Integral;&Integral; 00 DD. vv &Delta;t&Delta;t pp (( VV ,, VV &CenterDot;&Center Dot; )) dd VV &CenterDot;&CenterDot;

当转折电压Dv(即分辨率)不是很小的时候,近似的有When the breakover voltage D v (i.e. resolution) is not very small, approximately

NN ii &OverBar;&OverBar; == BB 22 &pi;&pi; expexp -- [[ (( ii ++ 11 )) DD. vv -- mm VV ]] 22 22 &sigma;&sigma; 22

单位时间内总的正阈交的平均次数为The average number of total positive threshold crossings per unit time is

NN mm &OverBar;&OverBar; == &Sigma;&Sigma; ii NN ii &OverBar;&OverBar;

其归一化自相关函数为Its normalized autocorrelation function is

rr xx (( &tau;&tau;&tau;&tau; == expexp [[ -- 44 NN mm &OverBar;&OverBar; &tau;&tau; ]]

因为because

NN mm &OverBar;&OverBar; >> >> NN &OverBar;&OverBar;

所以当采用多门限比较器甄别时,输出的随机码的归一化自相关函数随周期τ衰减的速度远大于采用单门限时。所以在相同的采样频率时,多门限甄别电路产生的随机码的相关系数较小。相关时间τ0也相应大大减少了。Therefore, when a multi-threshold comparator is used for discrimination, the normalized autocorrelation function of the output random code decays with a period τ much faster than when a single threshold is used. Therefore, at the same sampling frequency, the correlation coefficient of the random code generated by the multi-threshold discrimination circuit is small. Correlation time τ 0 is correspondingly greatly reduced.

通过多门限甄别提高输出的随机码的码率。随机码的最大输出速率取决于输出的随机码的相关时间τ0。对于多门限的电压甄别方式,当高斯白噪声的平均频率f0保持不变时,因为

Figure A20051012062800124
较单门限时大很多,所以相关时间τ0减小,随即码的采样点可以变得密集。The code rate of the output random code is improved through multi-threshold screening. The maximum output rate of the random code depends on the correlation time τ 0 of the output random code. For the multi-threshold voltage screening method, when the average frequency f 0 of Gaussian white noise remains unchanged, because
Figure A20051012062800124
Much larger than that of a single threshold, so the correlation time τ 0 decreases, and then the sampling points of the code can become dense.

通过合并多个随机码发生器的输出,提高输出的随机码的码率。因为n个随机码发生器产生n个随机码序列,每次顺序地从这n个随机码序列各取一位到最终输出的随机码序列,如此循环,从而把n个随机码序列合并为一个随机码序列。这样,输出的码率为单个随机码发生器的输出码率的n倍。By combining the outputs of multiple random code generators, the code rate of the output random code is increased. Because n random code generators generate n random code sequences, one bit is sequentially taken from each of the n random code sequences each time to the final output random code sequence, and so on, so that the n random code sequences are combined into one Random code sequence. In this way, the output code rate is n times the output code rate of a single random code generator.

通过合并多个随机码发生器的输出,提高输出的随机码的随机性。因为n个随机码发生器产生n个随机码序列,每次顺序地从这n个随机码序列各取一位到最终输出的随机码序列,如此循环,从而把n个随机码序列合并为一个随机码序列。这样,同样的输出码率的条件下,单个随机码发生器的码率降为原来的n分之一倍,采样时间间隔τ增大为原来的n倍,归一化相关系数大大降低,随机性得到提高。By combining the outputs of multiple random code generators, the randomness of the output random code is improved. Because n random code generators generate n random code sequences, one bit is sequentially taken from each of the n random code sequences each time to the final output random code sequence, and so on, so that the n random code sequences are combined into one Random code sequence. In this way, under the condition of the same output code rate, the code rate of a single random code generator is reduced to one-nth of the original, the sampling time interval τ is increased to n times of the original, and the normalized correlation coefficient is greatly reduced. Sex is improved.

本发明与现有技术相比有如下优点有有益效果:Compared with the prior art, the present invention has the following advantages and beneficial effects:

(1)本发明输出的随机码是真随机码,输出的随机码的信息熵可以自动稳定,而且对噪声源的带宽要求较低;(1) the random code that the present invention outputs is true random code, and the information entropy of the random code of output can be automatically stabilized, and the bandwidth requirement to noise source is lower;

(2)本发明输出的随机码的归一化相关系数可以通过增加门限电压的数量和增加合并输出的随机码发生器单元的数目而大大降低,接近于零;(2) the normalized correlation coefficient of the random code that the present invention outputs can reduce greatly by increasing the quantity of threshold voltage and increasing the number of the random code generator unit of combining output, close to zero;

(3)本发明通过增加合并输出的随机码发生器单元的数目,输出的随机码可以达到极大的码率;(3) the present invention is by increasing the number of the random code generator unit of merging output, and the random code of output can reach great code rate;

(4)本发明工作稳定,价格低廉,扩展性好,便于集成化。(4) The present invention works stably, is cheap, has good expansibility, and is convenient for integration.

附图说明Description of drawings

图1是本发明的产生真随机码的装置的结构示意图;Fig. 1 is the structural representation of the device that produces true random code of the present invention;

图2是本发明装置的随机码发生器单元的结构示意图;Fig. 2 is the structural representation of the random code generator unit of device of the present invention;

图3是本发明装置的随机码发生器单元的另一结构示意图。Fig. 3 is another structural schematic diagram of the random code generator unit of the device of the present invention.

具体实施方式Detailed ways

为了更好地理解本发明,下面结合附图对本发明作进一步地描述。In order to better understand the present invention, the present invention will be further described below in conjunction with the accompanying drawings.

如图1所示,本发明的产生真随机码的装置包括噪声发生器、若干个多门限随机码发生器、数据处理器,噪声发生器与每个多门限随机码发生器分别相连,组成若干个随机码发生器单元,每个多门限随机码发生器与数据处理器相连。As shown in Figure 1, the device that produces true random code of the present invention comprises noise generator, several multi-threshold random code generators, data processor, and noise generator is connected with each multi-threshold random code generator respectively, forms several A random code generator unit, each multi-threshold random code generator is connected to the data processor.

如图2所示,多门限随机码发生器是模-数转换器,模-数转换器以最低位输出;如图3所示,多门限随机码发生器包括比较器阵列和解码器,噪声发生器、比较器阵列、解码器、数据处理器依次连接;比较器阵列是若干个比较器并联在一起使用,噪声发生器与每个比较器分别相连,比较器阵列输出相应的TTL电平,经过解码器解码之后得到二进制的真随机码序列。As shown in Figure 2, the multi-threshold random code generator is an analog-to-digital converter, and the analog-digital converter outputs with the lowest bit; as shown in Figure 3, the multi-threshold random code generator includes a comparator array and a decoder, and the noise The generator, comparator array, decoder, and data processor are connected in sequence; the comparator array is used in parallel with several comparators, the noise generator is connected to each comparator separately, and the comparator array outputs the corresponding TTL level. After being decoded by the decoder, a binary true random code sequence is obtained.

图1中的数据处理器可为并串转换器,也可为数据采集卡。The data processor in Figure 1 can be a parallel-to-serial converter or a data acquisition card.

实施例1Example 1

随机噪声源选用宽带白噪声源,型号为HP346,变换系统采用比较器阵列,比较器阵列由八片比较器组成的型号为max961,解码器采用741s148,输出真随机码序列,其码率为1Mbit/s。The random noise source is a broadband white noise source, the model is HP346, the conversion system uses a comparator array, the comparator array is composed of eight comparators, the model is max961, the decoder uses 741s148, and the output is a true random code sequence, and its code rate is 1Mbit /s.

实施例2Example 2

随机噪声源选用宽带白噪声源,型号为HP346;变换系统采用模-数变换器,其型号为max150;并串转换器为16∶1转换器,型号为max3891;HP346输出的白噪声信号经过max150的多门限甄别,输出真随机码序列,其码率为1Mbit/s。16个HP346和max150共同产生的随机码序列分别加到max3891的16个并行输入端口,在max3891的串行输出端口,得到码率为16Mbit/s的随机码输出。The random noise source is a broadband white noise source, the model is HP346; the conversion system uses an analog-to-digital converter, the model is max150; the parallel-to-serial converter is a 16:1 converter, the model is max3891; the white noise signal output by HP346 is passed through max150 Multi-threshold screening, output a true random code sequence, the code rate is 1Mbit/s. 16 random code sequences generated by HP346 and max150 are respectively added to 16 parallel input ports of max3891, and at the serial output port of max3891, a random code output with a code rate of 16Mbit/s is obtained.

实施例3Example 3

随机噪声源选用宽带白噪声源,型号为HP346;变换系统采用模-数变换器,其型号为max150,通过数据采集卡输入随机码序列,数据采集卡的型号为AD7812L。HP346输出的白噪声信号经过max150的多门限甄别,输出真随机码序列,其码率为1Mbit/s。8个HP346和max150共同产生的随机码序列分别加到AD7812的8个数字输入端口,每次顺序地从这8个随机码序列各取一位到最终输出的随机码序列,如此循环,从而把8个随机码序列合并为一个随机码序列。在AD7812L的数字输出端口,得到码率为8Mbit/s的随机码输出。The random noise source is a broadband white noise source, the model is HP346; the conversion system uses an analog-to-digital converter, the model is max150, and the random code sequence is input through the data acquisition card, and the model of the data acquisition card is AD7812L. The white noise signal output by HP346 passes through the multi-threshold screening of max150, and outputs a true random code sequence with a code rate of 1Mbit/s. The random code sequences generated by 8 HP346 and max150 are respectively added to the 8 digital input ports of AD7812, and one bit is sequentially taken from each of the 8 random code sequences to the final output random code sequence, and so on. Eight random code sequences are combined into one random code sequence. At the digital output port of AD7812L, a random code output with a code rate of 8Mbit/s is obtained.

Claims (10)

1. device that produces real random code, comprise noise generator, it is characterized in that also comprising several multi-threshold random code generators, data processor, noise generator links to each other respectively with each multi-threshold random code generator, form several random code generator unit, each multi-threshold random code generator links to each other with data processor.
2. the device of generation real random code according to claim 1 is characterized in that described multi-threshold random code generator is an analog-digital converter, with the lowest order of analog-digital converter as output.
3. the device of generation real random code according to claim 1 is characterized in that described multi-threshold random code generator comprises comparator array and demoder, and noise generator, comparator array, demoder, data processor connect successively.
4. the device of generation real random code according to claim 1 is characterized in that described data processor is parallel-to-serial converter or data collecting card.
5. the device of generation real random code according to claim 3 is characterized in that described comparator array is that several comparers are connected in parallel, and noise generator links to each other respectively with each comparer.
6. produce the method for real random code with the described device of claim 1, it is characterized in that process is as follows:
After screening by the multi-threshold random code generator, the level signal at random that noise generator is produced obtains binary real random code sequence, then in each cycle, binary real random code sequence that several random code generator unit produce is respectively got one, merge into a binary real random code sequence output by data processor.
7. the method for generation real random code according to claim 6, it is characterized in that the examination of the process of the level signal at random comparator array that described noise generator produces, comparator array is exported corresponding Transistor-Transistor Logic level, through obtaining binary real random code sequence after the decoder decode.
8. the method for generation real random code according to claim 6, it is characterized in that the examination of the process of the level signal at random analog-digital converter that described noise generator produces, as output, obtain binary real random code sequence with the lowest order of analog-digital converter.
9. the method for generation real random code according to claim 6 is characterized in that the noise signal digitizing, is divided into two groups according to its parity then, the corresponding random code " 1 " of odd number group, the corresponding random code " 0 " of even number set; The perhaps corresponding random code " 0 " of odd number group, the corresponding random code " 1 " of even number set.
10. the method for generation real random code according to claim 6 is characterized in that described data processor is parallel-to-serial converter or data collecting card.
CNB2005101206286A 2005-12-16 2005-12-16 A device for generating true random codes and a method for generating true random codes Expired - Fee Related CN100435089C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005101206286A CN100435089C (en) 2005-12-16 2005-12-16 A device for generating true random codes and a method for generating true random codes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005101206286A CN100435089C (en) 2005-12-16 2005-12-16 A device for generating true random codes and a method for generating true random codes

Publications (2)

Publication Number Publication Date
CN1818853A true CN1818853A (en) 2006-08-16
CN100435089C CN100435089C (en) 2008-11-19

Family

ID=36918887

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005101206286A Expired - Fee Related CN100435089C (en) 2005-12-16 2005-12-16 A device for generating true random codes and a method for generating true random codes

Country Status (1)

Country Link
CN (1) CN100435089C (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101655779B (en) * 2008-08-18 2012-04-18 中国科学院物理研究所 True random number generator
CN103812647B (en) * 2014-03-13 2017-02-22 宿迁学院 Encipher based on GPS accurate geographic position and quantum time
CN106899403A (en) * 2015-12-21 2017-06-27 Id量子技术公司 For the apparatus and method required with enhanced security and the trust for reducing of quantum key distribution
CN109271135A (en) * 2017-07-18 2019-01-25 展达通讯(苏州)有限公司 True random number generation system and method
CN110502208A (en) * 2019-08-16 2019-11-26 兆讯恒达微电子技术(北京)有限公司 A kind of how random power supply management method of randomizer
CN110611572A (en) * 2019-10-30 2019-12-24 江苏亨通问天量子信息研究院有限公司 Asymmetric password terminal based on quantum random number, communication system and method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1079966C (en) * 1997-02-05 2002-02-27 石易 Random code generator
CN1327304A (en) * 2000-06-06 2001-12-19 北京闻亭科技发展有限责任公司 Method for producing high speed random code by using high frequency triode
HRPK20010751B3 (en) * 2001-10-17 2005-06-30 Stipčević Mario Random bit generating device and method based on time summation of electronic noise source
US7511586B2 (en) * 2003-03-26 2009-03-31 Telefonaktiebolaget L M Ericsson (Publ) Noise generator

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101655779B (en) * 2008-08-18 2012-04-18 中国科学院物理研究所 True random number generator
CN103812647B (en) * 2014-03-13 2017-02-22 宿迁学院 Encipher based on GPS accurate geographic position and quantum time
CN106899403A (en) * 2015-12-21 2017-06-27 Id量子技术公司 For the apparatus and method required with enhanced security and the trust for reducing of quantum key distribution
CN106899403B (en) * 2015-12-21 2021-09-14 Id量子技术公司 Apparatus and method for quantum key distribution with enhanced security and reduced trust requirements
CN109271135A (en) * 2017-07-18 2019-01-25 展达通讯(苏州)有限公司 True random number generation system and method
CN110502208A (en) * 2019-08-16 2019-11-26 兆讯恒达微电子技术(北京)有限公司 A kind of how random power supply management method of randomizer
CN110611572A (en) * 2019-10-30 2019-12-24 江苏亨通问天量子信息研究院有限公司 Asymmetric password terminal based on quantum random number, communication system and method

Also Published As

Publication number Publication date
CN100435089C (en) 2008-11-19

Similar Documents

Publication Publication Date Title
CN105046161B (en) Color image encrypting method based on DNA dynamic codings
KR102287220B1 (en) Method and device for optics based quantum random number generation
CN106293616B (en) True Random Number Generator based on time delay feedback oscillator
KR102601718B1 (en) Quantum random number generators
CN1149782C (en) Pseudo-random number generation circuit and its application in data communication system
Yang et al. Quantum secure direct communication with entanglement source and single-photon measurement
CN1279714C (en) Quantum state classical order rearrangement encryption method in quantum key distribution
Liu et al. Cryptanalysis and improvement in a plaintext-related image encryption scheme based on hyper chaos
Shi et al. Quantum secure direct communication by using three-dimensional hyperentanglement
CN107292184B (en) Image encryption method, device and key stream generating method and key stream generator
CN101706946A (en) Digital image encryption method based on DNA sequence and multi-chaotic mapping
CN112769545B (en) Image Encryption Method Based on Adjacent Pixel Joseph Transform and Mealy State Machine
CN115665340A (en) An Image Encryption Method in a Remote Fault Diagnosis System
CN104766350B (en) Image encryption method based on splice model and hyperchaotic system
CN1431594A (en) Method for parallel computing code of CRC in multiple channels and multiple bits
CN108449183A (en) An Asymmetric Encryption Method Using Quantum Random Numbers
CN1818853A (en) Device and method for producing true random codes
CN1384621A (en) Speeding, efficient-raising and dilatating method for quantum cipher key distribution
CN105867878A (en) High-speed parallel true random number generator
CN108989036B (en) High-speed secret key safety distribution system and method based on chaotic laser time-sharing quantization
CN116521130A (en) True random number generator, true random number generation method and encryption device
Nkapkop et al. A fast image encryption algorithm based on chaotic maps and the linear diophantine equation
JP4879294B2 (en) Quantum cryptographic communication data processing method and quantum cryptographic communication device
CN108681441A (en) A kind of random number generator based on BR-PUF
CN1180351C (en) Encryption methods for hardened garbled block ciphers

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20081119

Termination date: 20100118