CN108377182A - A kind of the RC4 stream ciphers generating means and method of high safety - Google Patents

A kind of the RC4 stream ciphers generating means and method of high safety Download PDF

Info

Publication number
CN108377182A
CN108377182A CN201810028890.5A CN201810028890A CN108377182A CN 108377182 A CN108377182 A CN 108377182A CN 201810028890 A CN201810028890 A CN 201810028890A CN 108377182 A CN108377182 A CN 108377182A
Authority
CN
China
Prior art keywords
random number
semiconductor laser
stream cipher
generating means
signal
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.)
Pending
Application number
CN201810028890.5A
Other languages
Chinese (zh)
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.)
University of Electronic Science and Technology of China
Original Assignee
University of Electronic Science and Technology of China
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 University of Electronic Science and Technology of China filed Critical University of Electronic Science and Technology of China
Priority to CN201810028890.5A priority Critical patent/CN108377182A/en
Publication of CN108377182A publication Critical patent/CN108377182A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/065Encryption by serially and continuously modifying data stream elements, e.g. stream cipher systems, RC4, SEAL or A5/3
    • H04L9/0656Pseudorandom key sequence combined element-for-element with data sequence, e.g. one-time-pad [OTP] or Vernam's cipher
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/001Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using chaotic signals

Abstract

The present invention relates to the RC4 stream ciphers generating means and method of a kind of high safety, what is solved is the low technical problem of safety, include true random number generating device by using the RC4 stream ciphers generating means, pseudo random number generation device, and the generating means that pass through the dictionary CD stream ciphers connecting jointly with the true random number generating device, the pseudo random number generation device;The technical solution that the dictionary CD is made of the true random number of synchronization, preferably resolves the problem, can be used in the communication systems such as point-to-multipoint.

Description

A kind of the RC4 stream ciphers generating means and method of high safety
Technical field
The present invention relates to chaotic communication fields, and in particular to a kind of the RC4 stream ciphers generating means and method of high safety.
Background technology
The fast development of the communication technology makes human lives that huge variation have occurred, but thing followed threat is also more next More, information security has been to be concerned by more and more people, and information security cause has become the sunshine industry of 21 century, and research is high The private communication technology of safety has important military affairs and economic implications.One-time pad (One Time Pad, OTP) encrypts skill Art is considered as safest encryption technology, and it is random that it, which requires key, it is primary to only use, and key length and data flow It is isometric.But due to being limited to the distribution rate of random number key, OTP is applied only in sensitive low bandwidth channel.
In order to expand the scope of application of the encryption technology, the threshold of OTP technologies is reduced, researcher relaxes random to key The requirement of property, it is proposed that the encipherment scheme of stream cipher.Stream cipher technique based on randomness algorithm, can be in the kind of finite length Under the action of sub-key, the high speed PRBS generated using determining pseudo-random algorithm flows into data as stream cipher Row encryption.RC4 algorithms are exactly outstanding person therein, are widely used in Microsoft Microsoft Office, Secure Socket Layer (SSL), Wired Equiva-lent Privacy (WEP) etc..But the pseudo random number stream based on deterministic algorithm There is serious security risks for password, and as people go deep into RC4 algorithm researches, more and more disadvantages is found.RC4 Algorithm is also gradually losing its application market.But RC4 algorithms have many advantages, such as it is simple, it is efficient undeniable.
Existing property of the RC4 algorithm improvements based on pseudo-random algorithm does not change.It is low that accordingly, there exist safeties The technical issues of.The present invention using pseudo random number in such a way that true random number is combined, based on RC4 algorithms and synchronous physics with Machine number generator realizes flexible, high speed, high security stream cipher and generates.Moreover, being added by pseudo random number and truly random digital-to-analogue Generated stream cipher, the possessed bit error rate relative synchronization physical random number bit error rate are amplified limited, and it is suitable not interfere with it The property used.In addition the present invention has very strong adaptability and survival ability, can be suitable for point-to-point and point-to-multipoint communication System.
Invention content
The technical problem to be solved by the present invention is to the low technical problems of safety existing in the prior art.It provides a kind of The RC4 stream cipher generating means of new high safety, the RC4 stream cipher generating means of the high safety are with safe, clever The characteristics of work, high speed.
In order to solve the above technical problems, the technical solution used is as follows:
A kind of RC4 stream cipher generating means of high safety, the RC4 stream ciphers generating means include that true random number generates Device, pseudo random number generation device, and pass through dictionary with the true random number generating device, the pseudo random number generation device The generating means for the stream cipher that CD is connected jointly;The dictionary CD is made of the true random number of synchronization.
The operation principle of the present invention:The present invention in such a way that true random number is combined, is based on RC4 algorithms using pseudo random number With synchronous physical random number generator, realizes flexible, high speed, high security stream cipher and generate.Moreover, passing through pseudo random number Generated stream cipher, possessed bit error rate relative synchronization physical random number bit error rate amplification is added to have with truly random digital-to-analogue Limit, does not interfere with its applicability.
In said program, for optimization, further, the true random number synchronizing device includes Simultaneous Physical stochastic source, O/E Conversion module, A/D conversion modules and delay exclusive or module.
Further, the Simultaneous Physical stochastic source includes third semiconductor laser DSL, with third semiconductor laser The the first semiconductor laser SL1 and the second semiconductor laser SL2 of connection;The third semiconductor laser DSL is provided with External feedback chamber QT3, for providing identical drive signal to the first semiconductor laser SL1 and the second semiconductor laser SL2; The first semiconductor laser SL1 and the second semiconductor laser SL2 be both provided with external feedback chamber QT1, external feedback chamber QT1 with The external cavity length and feedback intensity of external feedback chamber QT3 is different.Different external feedback chambers can increase the difficulty of injection locking synchronization Degree, finally so that the first semiconductor laser SL1 it is synchronous with the second semiconductor laser SL2 and with third semiconductor laser DSL is asynchronous.With this condition, the first semiconductor laser SL1 and the chaotic laser light of the second semiconductor laser SL2 outputs are believed Number information will not be revealed because of the intercepting and capturing of third semiconductor laser DSL output signals, it is thus possible to the first semiconductor swash Realize that secret is synchronous between light device SL1 and the second semiconductor laser SL2.
Further, the pseudo random number generation device includes key distribution module, the RC4 being connect with key distribution module Program unit;The key distribution module is used to provide key to RC4 program units;The RC4 program units are used for key The key that distribution module provides executes RC4 algorithms as seed and obtains random number sequence.
Further, the RC4 algorithms include cipher key initialization algorithm and Pseudo-Random Number.
The present invention also provides a kind of RC4 method for generating stream cipher of high safety, the RC4 method for generating stream cipher is based on RC4 stream ciphers generating means above-mentioned, method include:
Step 1, pseudo random number generation device generates random number sequence by executing RC4 algorithms;
Step 2, true random number generating device generates synchronous true random number;
Step 3, pseudo random number caused by RC4 algorithms is combined with true random number, including uses the pointer of RC4 algorithms Element in jt, the dictionary CD of direction adds with pseudo random number Zt phase moulds, and RC4 stream ciphers are:
Codet=mod (Zt+CDt [jt], 2n)。
It is optimization in said program, further, the true random number for generating synchronization includes:
Step A:Third semiconductor laser DSL generates original chaotic laser signal under exocoel feedback effect;
Step B:Original chaotic laser signal splits into identical chaotic signal SG1 and chaotic signal as drive signal SG2, chaotic signal SG1 are injected into the first semiconductor laser SL1, and chaotic signal SG2 is injected into the second semiconductor laser SL2;
Step C:Synchronous chaotic laser light caused by first semiconductor laser SL1 and the second semiconductor laser SL2 Signal completes O/E by the photodetector in photoelectric conversion module and is converted to electric signal SE;
Step D:Electric signal SE obtains binary sequence C2D by A/D modules after over-sampling, quantization, judgement;
Step E:The random number sequence after the exclusive or that is delayed is synchronous true random number to binary sequence C2D successively.
Further, the dictionary CD does and regularly updates according to true random number and its generation rate.The physics of generation Random number is used to form dynamic dictionary CD (N × n bits), and dictionary CD is done dynamically more with the true random number constantly generated Newly.Its update mode can be continuous replacement or interim replacement.It is continuous to replace:Physical random number generator often generates n The random number of bits, just replaces an element in dictionary CD immediately, and the n-bit random number generated next time is used for replacing dictionary Next element in CD ceaselessly carries out dictionary CD updates in cycles.Stage replaces:Randomizer often generate N × N bits just disposably replace dictionary CD all elements.
The generation of pseudo random number:It is made of key distribution module and RC4 algorithms, key distribution module provides for communicating pair Key, seed of the key as RC4 algorithms, and then random number sequence is generated by RC4 algorithms, intend by having transmitted in scheme Data as system key, existing others method for distributing key are also suitable this stream cipher and generate scheme.In addition the pointer of RC4 Some element that j is used for being directed toward in dictionary CD (code dictionary, dictionary CD).
RC4 algorithms:We define the meaning representated by used symbol first, and n indicates used in the algorithm word The length (algorithm can define the length of a byte according to user's needs) of section, N indicate that length is a byte energy of n The total amount of the value enough shown, i.e. N=2n, S indicates the internal state of the algorithm, there is the value of N number of n-bit in each S.T is indicated One parameter, t=1,2 ....St indicates internal state in parameter t, when it and jt expression parameter t corresponding two pointers, Two values in their inwardly directed state S.St [it] and St [jt] indicates the value being directed toward respectively by pointer it and jt in St.K Indicate a key, l is the byte number that key K includes.Zt indicates the output valve of the corresponding pseudo-random number generator of each t. The algorithm includes two parts, and cipher key initialization algorithm (Key Scheduling Algorithm, KSA) and pseudo random number generate Algorithm (Pseudo-Random Generation Algorithm, PRGA).
KSA is operated comprising N number of step, which initializes internal state S, detailed process such as table 1:
Table 1
For i=0 ..., N-1
S [i]=i;
J=0
For i=0 ..., N-1
J=(j+S [i]+K [i mod l]) mod 256;
Swap(S[i],S[j])
Two pointers it and jt are initialized as 0 by PRGA first, the pointer changed at random as two, then swap status The value that it and jt is directed toward in St-1, the output valve of the process are the value of the position St [it]+St [jt], detailed process such as table 2:
Table 2
I=j=0
I=i+1;
J=j+S [i]+K [i] mod 256;
Swap(S[i],S[j])
T=S [i]+S [j]
Output Z=S [t]
True random number synchronizing device:By Simultaneous Physical stochastic source, O/E conversion modules, A/D conversion modules and delay exclusive or The compositions such as module.The present invention is using chaotic laser light as physical accidental source.Third semiconductor laser (Driving first Semiconductor Laser, third semiconductor laser DSL) original chaotic laser signal is generated under exocoel feedback effect. Third semiconductor laser DSL and the first semiconductor laser SL1, the second semiconductor laser SL2 have opposite in order to prevent High synchronization factor, so that chaotic laser light caused by the first semiconductor laser SL1 and the second semiconductor laser SL2 The information leakage of device signal introduces identical external feedback in the first semiconductor laser SL1 and the second semiconductor laser SL2 Chamber, but the external cavity length of the feedback cavity and feedback intensity are different with third semiconductor laser DSL.
Synchronous chaotic laser light signal caused by first semiconductor laser SL1 and the second semiconductor laser SL2 is logical The photodetector crossed in photoelectric conversion module completes O/E conversions.Generated electric signal enters A/D modules, through over-sampling, amount Change, obtain one group of binary sequence after judgement.The sequence is random number sequence after delay exclusive or.
Dictionary CD:Dictionary CD is made of synchronous true random number.Dictionary CD has length identical with S, dictionary CD does and regularly updates according to true random number and its generation rate, i.e., physical random number often generates the binary system of N × n-bit Number just replaces the original states of dictionary CD completely.Since the element in dictionary CD is all derived from real random number, so more Fixed variation relation is not present before and after new.In addition it is different from state S, there may be identical elements by dictionary CD.Dictionary The presence of CD is to be able to so that true random number is in the lower pseudo random number for being matched to high-speed of long-living speed ratio, To generate the stream cipher of high speed.
The generation module of stream cipher:The generation module of stream cipher Code is mainly by pseudo random number caused by RC4 algorithms It is combined with true random number.In order to further increase randomness and the safety of stream cipher, we use the pointer of RC4 algorithms Element in jt, the dictionary CD of direction is added with pseudo random number Zt, and stream cipher is:Codet=mod (Zt+CDt [jt], 2n)。
Beneficial effects of the present invention:(1) stream cipher is generated by pseudo random number with true random number jointly, even if identical key Generated stream cipher is also completely different at different times, greatly improves the safety of stream cipher;(2) this hair Bright not to be related to complicated algorithm variation, the generation rate of stream cipher is still determined by the generation rate of RC4 algorithms, improved Influence of the stream cipher allocation plan to RC4 algorithms is very small;(3) present invention is not related to the complex calculation of true random number and (such as changes For operation), the error code of true random number will not drastically amplify in stream cipher.(4) present invention is used as stream using the data sent The key of password allocation plan, has saved cost.(5) stream cipher combines true random number, this can effectively resist existing Attack method, such as mistake introduce attack, state guessing attack.
Description of the drawings
Present invention will be further explained below with reference to the attached drawings and examples.
Fig. 1, a kind of specific embodiment structural schematic diagram of the invention.
Fig. 2, RC4 principle schematic.
Fig. 3, synchronous chaos laser signal schematic diagram.
Correlation function schematic diagram between Fig. 4, third semiconductor laser DSL and the first semiconductor laser SL1.
Fig. 5, the correlation function schematic diagram between the first semiconductor laser SL1 and the second semiconductor laser SL2.
The correlation function schematic diagram of Fig. 6, RC4 pseudo-random sequence and stream cipher.
Fig. 7, the correlation function schematic diagram of dictionary CD output sequences CDt [jt] and stream cipher.
Fig. 8, the influence schematic diagram of the bit error rate of true random number error code stream cipher.
Specific implementation mode
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to embodiments, to the present invention It is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, is not used to limit The fixed present invention.
Embodiment 1
The present embodiment provides a kind of RC4 stream cipher generating means of high safety, such as Fig. 1, the RC4 stream ciphers generate dress Set including true random number generating device, pseudo random number generation device, and with the true random number generating device, the pseudorandom Generating means of the number generating means by the dictionary CD stream ciphers connected jointly;The dictionary CD for synchronization true random number institute structure At.
Wherein, the true random number synchronizing device includes Simultaneous Physical stochastic source, O/E conversion modules, A/D conversion modules with And delay exclusive or module.
In detail, such as Fig. 1, the Simultaneous Physical stochastic source includes third semiconductor laser DSL, is swashed with third semiconductor The the first semiconductor laser SL1 and the second semiconductor laser SL2 of light device connection;The third semiconductor laser DSL is set It is equipped with external feedback chamber QT3, for providing identical driving to the first semiconductor laser SL1 and the second semiconductor laser SL2 Signal;The first semiconductor laser SL1 and the second semiconductor laser SL2 be both provided with identical external feedback chamber QT1 and QT2, external feedback chamber QT1 (QT2) are different from the external cavity length of external feedback chamber QT3 and feedback intensity.
In detail, it if Fig. 1, the pseudo random number generation device include key distribution module, is connect with key distribution module RC4 program units;The key distribution module is used to provide key to RC4 program units;The RC4 program units are used for will The key that key distribution module provides executes RC4 algorithms as seed and obtains random number sequence.
Wherein, the RC4 algorithms include cipher key initialization algorithm KSA and Pseudo-Random Number PRGA.
The present embodiment also provides a kind of RC4 method for generating stream cipher of high safety, the RC4 method for generating stream cipher base In RC4 stream ciphers generating means above-mentioned, method includes:
Step 1, pseudo random number generation device generates random number sequence by executing RC4 algorithms;
Step 2, true random number generating device generates synchronous true random number;
Step 3, pseudo random number caused by RC4 algorithms is combined with true random number, including uses the pointer of RC4 algorithms Element in jt, the dictionary CD of direction is added with pseudo random number Zt, and RC4 stream ciphers are:
Codet=mod (Zt+CDt [jt], 256).
The work detailed operation modes of RC4 algorithms assigns initial value 0,1 to state S first as shown in Fig. 2, wherein N=256, 2 ... 255.Then according to the length of key, the value cycle of key is assigned to T.After completing assignment, algorithm is at once according in T Value carry out state S's rearranges combination.This process is KSA.Completion status S rearrange combination after, algorithm is immediately PRGA is carried out, while continuous cycle executes the generation process of random number, generates pseudo-random sequence.
Wherein, the true random number process for generating synchronization includes:
Step A:Third semiconductor laser DSL generates original chaotic laser signal under exocoel feedback effect;
Step B:Original chaotic laser signal splits into identical chaotic signal SG1 and chaotic signal as drive signal SG2, chaotic signal SG1 are injected into the first semiconductor laser SL1, and chaotic signal SG2 is injected into the second semiconductor laser SL2;
Step C:Synchronous chaotic laser light caused by first semiconductor laser SL1 and the second semiconductor laser SL2 Signal completes O/E by the photodetector in photoelectric conversion module and is converted to electric signal SE;
Step D:Electric signal SE obtains binary sequence C2D by A/D modules after over-sampling, quantization, judgement;
Step E:The random number sequence after the exclusive or that is delayed is synchronous true random number to binary sequence C2D successively.
Preferably, the dictionary CD does and regularly updates according to true random number and its generation rate.
Invention is further described by taking n=8bit as an example.Third semiconductor laser DSL is operated in is with 1550nm Frequency departure between immediate vicinity, with the first semiconductor laser SL1 and the second semiconductor laser SL2 is 5.8GHz.Tool Body systematic parameter is that the operating current of third semiconductor laser DSL and SLs are 26.46mA.Third semiconductor laser DSL Feedback time and intensity be respectively 3ns and 15ns-1, third semiconductor laser DSL is injected into the intensity of SLs and delay is distinguished For 45ns-1And 0ns.Under this condition, the first semiconductor laser SL1 and the second semiconductor laser SL2 feedback times of itself It is respectively 2ns and 10ns with intensity-1.In order to verify feasibility, to the first semiconductor laser SL1 and the second semiconductor laser Net synchronization capability between SL2 is studied.
Fig. 3 is the output intensity in short-term of the first semiconductor laser SL1 and the second semiconductor laser SL2, above Chaotic laser light signal caused by the first semiconductor laser SL1 and the second semiconductor laser SL2 synchronizes good under operating condition It is good.
In order to determine quantifier elimination its synchronizing quality, the two cross-correlation function is assessed, the results are shown in Figure 4, The related coefficient of the two is when lag time is 0ns close to 1, thus we can further judge the first semiconductor laser SL1 and the second semiconductor laser SL2 has very high synchronizing quality.
Additionally the correlation function between third semiconductor laser DSL and the first semiconductor laser SL1 carries out Estimation has highest related coefficient when lag time is 0ns, related coefficient can be obtained close to 0.6 in figure as shown in Figure 5.
If further reducing the injection intensity of third semiconductor laser DSL to the first semiconductor laser SL1/2, The related coefficient can further decrease.
(influence for ignoring above-mentioned factor) under ideal conditions, as third semiconductor laser DSL and the first semiconductor When related letter related coefficient between laser SL1 is 0.6, believe from the output of Injection Signal, that is, third semiconductor laser DSL It is about 0.24 that the bit error rate of physical random number is obtained on number.In view of the synchronous error appeared in practical intercepting and capturing process, sampling Situations such as clock jitter, clock mismatch, intercepts and captures Simultaneous Physical from the chaotic laser light signal that third semiconductor laser DSL is exported Much higher than 0.24 of the bit error rate of random number.So the third side of cracking can not intercept and capture useful information from Injection Signal.
Correlation functions of the Fig. 6 between pseudo-random sequence Z and final stream cipher sequence.Using rank in the present embodiment The method of Duan Gengxin dictionaries CD, the related coefficient between final stream cipher sequence and pseudo-random sequence is very small as shown in the figure (being less than 0.004), i.e., final stream cipher sequence is uncorrelated to pseudo-random sequence caused by RC4, it means that third cracks The scheme that side attempts to introduce attack or Kundsen state guessing attacks by mistake also loses effectiveness substantially.
For mistake attack option:Assuming that attacker controls encryption device, can correctly be added using encryption device It is close, mistake can also be introduced into encryption device, thus influenced ciphering process, made the encryption knot of encryption device output error Fruit.According to the prior art indicate that, to break through RC4 algorithms, restore the entire original state of RC4 as a result, it is desirable to 216A key word and 216Secondary mistake introduces attack.
However the renewal frequency of dictionary CD is 1.22MHz (being determined by the generation rate of random number) in embodiment.Once In the dictionary CD update cycles, mistake introduces entire original state of the attack without decoding RC4, then from the beginning the third side of cracking must be Start to decode.Even if on the other hand initial key has been known in the third side of cracking, and operates encryption device again, but due to dictionary The continuous renewal of CD, used stream cipher before can not generating.
Fig. 7 is the correlation function of stream cipher and dictionary CDt [jt] sequence.As shown, related coefficient between the two is still So it is less than 0.004, i.e., final stream cipher sequence is uncorrelated to dictionary CDt [jt] sequences.Even if the namely third side of cracking control Synchronous random number generating device has been made, has been used in combination it to produce correct random number, but is not knowing pseudorandom caused by RC4 Under the premise of sequence and pointer jt sequences, correct stream cipher can not be generated.
Fig. 8 is the relationship between the bit error rate and the bit error rate of Simultaneous Physical random number of stream cipher.It is based on according to existing Simultaneous Physical entropy source synchronizes the generation system of random number, since the sampling errors such as clock jitter and the synchronous of physics entropy source are missed Difference, under conditions of no data transfer, Simultaneous Physical random number has the higher bit error rate.The error code of random number necessarily causes The error code of stream cipher, therefore the relationship between the bit error rate of stream cipher and the bit error rate of Simultaneous Physical random number is particularly significant.Such as Shown in Fig. 8, the bit error rate of stream cipher and the bit error rate linear approximate relationship of Simultaneous Physical random number, and the bit error rate of stream cipher Y is more bigger than the bit error rate x of physical random number.The data obtained by linear fit, can obtain y=1.73674x+1.28965 × 10-6
As a result, it is concluded that when the phase between third semiconductor laser DSL and the first semiconductor laser SL1 When to close letter related coefficient be 0.6, under ideal conditions, the third side of cracking extracts physical random number and is adopted from injecting in optical signal The bit error rate of stream cipher caused by method is~0.42 in a like fashion.
In order to verify the randomness of stream cipher, we use NIST 800-22 and are tested to it.Table 3 illustrates The NIST 800-22 test results of 2.5Gb/s physical random numbers and 100Gb/s stream ciphers.It is as shown in the table, and two sequences can Enough tested by 15 NIST.
Table 3
In conclusion the present embodiment has following feature:(1) safety of key depends on the peace of physical random number The safety of full property and seed key;(2) Simultaneous Physical random number be using synchronous chaos laser as physical accidental source, in conjunction with What subsequent module generated, be physics true random number;(3) pass through the outer-cavity structure of change receiving terminal laser so that physical accidental Source is asynchronous with driving light source, it is therefore prevented that physical accidental entropy source is revealed because of the leakage of Injection Signal;(4) using the number sent According to knowing that ripe low speed cipher key distribution technique is the seed key of RC4 algorithms, algorithm complexity is low;(5) by RC4 algorithms It carries out mould between dictionary CD elements specified by generated pseudo-random sequence and the value of pointer j to add as stream cipher, the process The interative computation of physical random number it is not related to, because of the drastically amplification without causing the bit error rate;(6) by physical random number and RC4 Generated pseudo random number is combined, and can eliminate the distribution deviation of pseudo random numbers of the RC4 caused by different seed keys, have Resist state guessing attack (a kind of common RC4 attack methods) in effect ground;(7) the present embodiment has the applicability of height, is applicable in It can play a role in whole communication systems in point-to-point, point-to-multipoint communication system, thus almost;(8) it flows close The rate of code is still determined by the generation rate of RC4, thus has very high flexibility and high speed.
Although the illustrative specific implementation mode of the present invention is described above, in order to the technology of the art Personnel are it will be appreciated that the present invention, but the present invention is not limited only to the range of specific implementation mode, to the common skill of the art For art personnel, as long as long as various change the attached claims limit and determine spirit and scope of the invention in, one The innovation and creation using present inventive concept are cut in the row of protection.

Claims (8)

1. a kind of RC4 stream cipher generating means of high safety, it is characterised in that:The RC4 stream ciphers generating means include true Generating random number device, pseudo random number generation device, and generate and fill with the true random number generating device, the pseudo random number Set the generating means by the dictionary CD stream ciphers connected jointly;The dictionary CD is made of the true random number of synchronization.
2. the RC4 stream cipher generating means of high safety according to claim 1, it is characterised in that:The true random number Synchronizing device includes Simultaneous Physical stochastic source, O/E conversion modules, A/D conversion modules and delay exclusive or module.
3. the RC4 stream cipher generating means of high safety according to claim 1, it is characterised in that:The Simultaneous Physical Stochastic source includes third semiconductor laser DSL, the first semiconductor laser SL1 being connect with third semiconductor laser and Two semiconductor laser SL2;The third semiconductor laser DSL is provided with external feedback chamber QT3, for swashing to the first semiconductor Light device SL1 and the second semiconductor laser SL2 provide identical drive signal;The first semiconductor laser SL1 and second Semiconductor laser SL2 is both provided with the external cavity length of external feedback chamber QT1, external feedback chamber QT1 and external feedback chamber QT3 and feeds back strong Degree is different.
4. the RC4 stream cipher generating means of high safety according to claim 1, it is characterised in that:The pseudo random number Generating means include key distribution module, the RC4 program units being connect with key distribution module;
The key distribution module is used to provide key to RC4 program units;
The key that the RC4 program units are used to provide key distribution module executes RC4 algorithms as seed and obtains random number Sequence.
5. the RC4 stream cipher generating means of high safety according to claim 1, it is characterised in that:The RC4 algorithms packet Include cipher key initialization algorithm and Pseudo-Random Number.
6. a kind of RC4 method for generating stream cipher of high safety, it is characterised in that:The RC4 method for generating stream cipher is based on power Profit requires the RC4 stream cipher generating means described in 1-5, method to include:
Step 1, pseudo random number generation device generates random number sequence by executing RC4 algorithms;
Step 2, true random number generating device generates synchronous true random number;
Step 3, pseudo random number caused by RC4 algorithms is combined with true random number, including uses the pointer jt of RC4 algorithms, Element in the dictionary CD of direction adds with pseudo random number Zt phase moulds, and RC4 stream ciphers are:
Codet=mod (Zt+CDt [jt], 2n)。
7. the RC4 method for generating stream cipher of high safety according to claim 6, it is characterised in that:The generation synchronizes True random number include:
Step A:Third semiconductor laser DSL generates original chaotic laser signal under exocoel feedback effect;
Step B:Original chaotic laser signal splits into identical chaotic signal SG1 and chaotic signal SG2 as drive signal, Chaotic signal SG1 is injected into the first semiconductor laser SL1, and chaotic signal SG2 is injected into the second semiconductor laser SL2;
Step C:Synchronous chaotic laser light signal caused by first semiconductor laser SL1 and the second semiconductor laser SL2 O/E, which is completed, by the photodetector in photoelectric conversion module is converted to electric signal SE;
Step D:Electric signal SE obtains binary sequence C2D by A/D modules after over-sampling, quantization, judgement;
Step E:The random number sequence after the exclusive or that is delayed is synchronous true random number to binary sequence C2D successively.
8. the RC4 method for generating stream cipher of high safety according to claim 6, it is characterised in that:The dictionary CD roots It does and regularly updates according to true random number and its generation rate.
CN201810028890.5A 2018-01-12 2018-01-12 A kind of the RC4 stream ciphers generating means and method of high safety Pending CN108377182A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810028890.5A CN108377182A (en) 2018-01-12 2018-01-12 A kind of the RC4 stream ciphers generating means and method of high safety

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810028890.5A CN108377182A (en) 2018-01-12 2018-01-12 A kind of the RC4 stream ciphers generating means and method of high safety

Publications (1)

Publication Number Publication Date
CN108377182A true CN108377182A (en) 2018-08-07

Family

ID=63016542

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810028890.5A Pending CN108377182A (en) 2018-01-12 2018-01-12 A kind of the RC4 stream ciphers generating means and method of high safety

Country Status (1)

Country Link
CN (1) CN108377182A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108830207A (en) * 2018-06-06 2018-11-16 成都邑教云信息技术有限公司 A kind of Internet education warning system
CN113139200A (en) * 2021-05-11 2021-07-20 中国电子科技集团公司第三十研究所 Method, system, computer program and storage medium for quickly cracking password
CN113271202A (en) * 2020-02-14 2021-08-17 中移(苏州)软件技术有限公司 Data encryption method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2415508A1 (en) * 2002-01-04 2003-07-04 Avaya Technology Corp. Efficient packet encryption method
CN1937008A (en) * 2005-09-22 2007-03-28 富士通株式会社 Encryption method, cryptogram decoding method, encryptor, cryptogram decoder, transmission/reception system, and communication system
CN1959770A (en) * 2005-10-31 2007-05-09 富士通株式会社 Encryption method, decode method for cryptograph, encrypting machine, cryptograph decoder and communication system
CN106411499A (en) * 2016-06-06 2017-02-15 清华大学 RC4 hardware circuit mark protection method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2415508A1 (en) * 2002-01-04 2003-07-04 Avaya Technology Corp. Efficient packet encryption method
CN1937008A (en) * 2005-09-22 2007-03-28 富士通株式会社 Encryption method, cryptogram decoding method, encryptor, cryptogram decoder, transmission/reception system, and communication system
CN1959770A (en) * 2005-10-31 2007-05-09 富士通株式会社 Encryption method, decode method for cryptograph, encrypting machine, cryptograph decoder and communication system
CN106411499A (en) * 2016-06-06 2017-02-15 清华大学 RC4 hardware circuit mark protection method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CHENPENG XUE: "Key distribution based on synchronization in", 《OPTICAL SOCIETY OF AMERICA》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108830207A (en) * 2018-06-06 2018-11-16 成都邑教云信息技术有限公司 A kind of Internet education warning system
CN113271202A (en) * 2020-02-14 2021-08-17 中移(苏州)软件技术有限公司 Data encryption method and device
CN113271202B (en) * 2020-02-14 2022-05-31 中移(苏州)软件技术有限公司 Data encryption method and device
CN113139200A (en) * 2021-05-11 2021-07-20 中国电子科技集团公司第三十研究所 Method, system, computer program and storage medium for quickly cracking password
CN113139200B (en) * 2021-05-11 2023-01-31 中国电子科技集团公司第三十研究所 Method, system, computer program and storage medium for quickly cracking password

Similar Documents

Publication Publication Date Title
CA2305264C (en) Method and apparatus for generating a stream cipher
Li et al. Encrypting wireless communications on the fly using one-time pad and key generation
US20060126835A1 (en) High-speed GCM-AES block cipher apparatus and method
CN108377182A (en) A kind of the RC4 stream ciphers generating means and method of high safety
US20080298583A1 (en) System and method of quantum encryption
JP2012085028A (en) Yuen encryption optical transmitter and receiver, yuen encryption optical transmission method and reception method, and encryption communication system
CN109039601B (en) Chaos safety key distribution method and system based on post-processing
Pérez-Resa et al. Chaotic encryption applied to optical Ethernet in industrial control systems
CN111224770B (en) Comprehensive protection method for resisting side channel and fault attack based on threshold technology
Pérez-Resa et al. Physical layer encryption for industrial ethernet in gigabit optical links
Pérez-Resa et al. Chaotic encryption for 10-Gb Ethernet optical links
Abdelraheem et al. Cryptanalysis of ARMADILLO2
CN100435089C (en) Device and method for producing true random codes
Dutta et al. Lightweight polymorphic encryption for the data associated with constrained internet of things devices
CN101902664A (en) Method and system for improving encryption/decryption speed of passive optical network
CN101645772A (en) Pseudo random sequence generation method based on t semi-order and sequence generator
Warty et al. De Bruijn sequences as secure spreading codes for wireless communications
CN108809629A (en) A kind of information ciphering method based on pseudorandom time-varying interweaving encoding
CN109951434B (en) High-robustness real-time encryption and decryption method for industrial communication protocol
Pérez-Resa et al. Self-synchronized encryption for physical layer in 10Gbps optical links
Pérez-Resa et al. Chaos-based stream cipher for gigabit ethernet
CN113556332A (en) Data encryption transmission method
Mihaljević A Framework for Stream Ciphers Based on Pseudorandomness, Randomness and Coding
Brosas et al. Analysis of the randomness performance of the proposed stream cipher based cryptographic algorithm
RU2797011C2 (en) Device for data flow encryption with controlled feedback structure

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180807