Random number generator generating random number by using at least two algorithms, and security device comprising the random number generator
11036472 · 2021-06-15
Assignee
Inventors
Cpc classification
H04L2209/12
ELECTRICITY
H04L9/0631
ELECTRICITY
G06F7/588
PHYSICS
International classification
H04L9/06
ELECTRICITY
Abstract
A random number generator generates a random number by using at least two algorithms. A security device includes the random number generator. The random number generator includes a random seed generator and a post processor. The random seed generator is configured to receive an entropy signal and to generate a random seed of a digital region generated by using the entropy signal. The post processor is configured to generate a random number from the random seed by using a first algorithm and a second algorithm. A bias property represents unbiasedness of a result value, and a bias property of the first algorithm is different from a bias property of the second algorithm.
Claims
1. A random number generator, comprising: a random seed generator configured to receive an entropy signal and to generate a random seed of a digital region generated by using the entropy signal; and a post processor configured to generate first data by applying the random seed to a first algorithm and to generate a random number by applying the first data to a second algorithm, wherein a bias property represents unbiasedness of a result value, and a bias property of the first algorithm is different from a bias property of the second algorithm; and wherein the post processor generates the first data by performing a feedback substitution operation N times on the first algorithm, based on the random seed, and generates the random number by performing the feedback substitution operation M times on the second algorithm, based on the first data, wherein M and N are natural numbers.
2. The random number generator of claim 1, wherein the first algorithm comprises a symmetric-key encryption algorithm, and the second algorithm comprises a hash function algorithm.
3. The random number generator of claim 2, wherein the first algorithm comprises an advanced encryption standard (AES) algorithm, and the second algorithm comprises a secure hash algorithm (SHA) 256, and the post processor generates the first data by performing the feedback substitution operation sixteen times on the first algorithm sixteen times, based on the random seed, and generates the random number by performing the feedback substitution operation once on the second algorithm, based on the first data.
4. The random number generator of claim 1, wherein the first algorithm is a hash function algorithm, and the second algorithm comprises a symmetric-key encryption algorithm.
5. The random number generator of claim 1, wherein the post processor generates second data by applying the random seed to the second algorithm, and generates the random number by using the first data and the second data.
6. The random number generator of claim 5, wherein the post processor comprises a logic gate configured to generate the random number via a logic operation on the first data and the second data, and the logic gate comprises one of an XOR gate, an OR gate, an AND gate, a NOR gate, and a NAND gate.
7. The random number generator of claim 5, wherein the post processor generates the second data by performing the feedback substitution operation on the second algorithm M times, based on the random seed, wherein M and N are natural numbers, and the first algorithm comprises a symmetric-key encryption algorithm, and the second algorithm comprises a hash function algorithm.
8. The random number generator of claim 1, further comprising: a first random seed generator configured to receive a first entropy signal and to generate a first random seed generated by using the first entropy signal; and a second random seed generator configured to receive a second entropy signal and generate a second random seed generated by using the second entropy signal, wherein the post processor generates first data by applying the first random seed to the first algorithm, generates second data by applying the second random seed to the second algorithm, and generates the random number by using the first data and the second data.
9. The random number generator of claim 1, wherein the post processor is configured to generate second data by applying the first data to the second algorithm, and to generate third data by applying the second data to a third algorithm.
10. The random number generator of claim 1, wherein the random seed generator comprises: a random seed collector configured to generate a random seed by sampling an entropy signal received from an entropy source; and a random seed storage configured to store the random seed.
11. A security device, comprising: an entropy source configured to generate an entropy signal by using randomness; a random seed generator configured to receive the entropy signal and to generate a digital random seed generated by using the entropy signal; and a post processor comprising a first algorithm processor, a second algorithm processor and a logic gate, wherein the post processor is configured to generate a random number from the digital random seed by using a first algorithm and a second algorithm, wherein the first algorithm comprises a symmetric-key encryption algorithm, and the second algorithm comprises a hash function algorithm; wherein the first algorithm processor is configured to generate first data by applying the digital random seed to the first algorithm; the second algorithm processor is configured to generate second data by applying the digital random seed to the second algorithm; and the logic gate is configured to generate the random number by using the first data and the second data.
12. The security device of claim 11, wherein the first algorithm processor is configured to generate the first data by performing a feedback substitution operation N times on the first algorithm, based on the digital random seed, wherein N is a natural number; and the second algorithm processor is configured to generate the random number by performing the feedback substitution operation M times on the second algorithm, based on the first data, wherein M is a natural number.
13. The security device of claim 12, wherein the first algorithm comprises an advanced encryption standard (AES) algorithm, and the second algorithm comprises a secure hash algorithm (SHA) 256, and the first algorithm processor generates the first data by performing the feedback substitution operation sixteen times on the first algorithm, based on the digital random seed, and the second algorithm processor generates the random number by performing the feedback substitution operation on the second algorithm once, based on the first data.
14. A random number generating method performed by a random number generator comprising a random seed generator and a post processor, the random number generating method comprising: receiving an entropy signal from an entropy source, wherein the receiving is performed by the random seed generator; generating a random seed of a digital region by using the entropy signal, wherein the generating is performed by the random seed generator; and generating a random number from the random seed by using a first algorithm and a second algorithm, wherein the generating is performed by the post processor, wherein a bias property represents unbiasedness of a result value, and a bias property of the first algorithm is different from a bias property of the second algorithm, and wherein the first algorithm comprises a symmetric-key encryption algorithm, and the second algorithm comprises a hash function algorithm.
15. The random number generating method of claim 14, wherein the generating of the random number comprises: generating, by the post processor, first data by performing a feedback substitution operation N times on the first algorithm, based on the random seed, wherein N is a natural number; and generating, by the post processor, the random number by performing the feedback substitution operation M times on the second algorithm, based on the first data, wherein M is a natural number.
16. The random number generating method of claim 14, wherein the generating of the random number comprises: generating first data by applying the random seed to the first algorithm, wherein the generating is performed by the post processor; generating second data by applying the random seed to the second algorithm, wherein the generating is performed by the post processor; and generating the random number via a logic operation on the first data and the second data, wherein the generating is performed by the post processor.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) Embodiments of the present disclosure will be more clearly understood from the following detailed description taken in conjunction with the accompanying drawings in which:
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
(17)
(18)
DETAILED DESCRIPTION OF THE EMBODIMENTS
(19)
(20) Referring to
(21) In FIGs. herein including
(22) Additionally, a processor as the term is used herein is tangible and non-transitory. As used herein, the term “non-transitory” is to be interpreted not as an eternal characteristic of a state, but as a characteristic of a state that will last for a period. The term “non-transitory” specifically disavows fleeting characteristics such as characteristics of a carrier wave or signal or other forms that exist only transitorily in any place at any time. A processor is an article of manufacture and/or a machine component. A processor described herein (e.g., including any post processor, algorithm processor, hash function processor, or other processor) may be configured to execute software instructions to perform functions as described in the various embodiments herein. A processor described herein may be a general-purpose processor or may be part of an application specific integrated circuit (ASIC). A processor described herein may also be a microprocessor, a microcomputer, a processor chip, a controller, a microcontroller, a digital signal processor (DSP), a state machine, or a programmable logic device. A processor described herein may also be a logical circuit, including a programmable gate array (PGA) such as a field programmable gate array (FPGA), or another type of circuit that includes discrete gate and/or transistor logic. A processor described herein may be a central processing unit (CPU), a graphics processing unit (GPU), or both. Additionally, a processor described herein may include multiple processors, parallel processors, or both.
(23) The random seed generator 200 may generate a random seed RS of a digital region, based on the entropy signal Ent received from the entropy source 20. According to an embodiment, the random seed generator 200 may generate the random seed RS by amplifying the entropy signal Ent and sampling the entropy signal Ent after the entropy signal Ent is amplified. The random seed generator 200 will be described in detail with reference to
(24) The post processor 100 may generate a random number RN by performing post processing on the received random seed RS. According to an embodiment of the present disclosure, the post processor 100 may generate the random number RN from the random seed RS by using at least two algorithms. According to an embodiment, the at least two algorithms may be algorithms having different bias properties.
(25) Herein, a bias property may mean a positional bias of ‘1’ or ‘0’ of a random number RN generated by applying the random seed RS to an algorithm. There may be several testing methods (for example, a D-Monomial test) of quantifying unbiasedness based on a bias property. The post processor 100 according to the present disclosure may generate a random number RN of which unbiasedness evaluated according to the aforementioned test methods has been increased, by applying the random seed RS to multiple algorithms having different bias properties.
(26)
(27) Referring to
(28) being storable in physically separated storages
(29) being entirely executable by physically separate processors
(30) being separately functional to fully encrypt data.
(31) The asymmetric-key encryption algorithm includes a public key that is made public and a private key that is personally used. Because the asymmetric-key encryption algorithm manages the public key and the private key independently, key management is easy and encryption and user authentication are simultaneously performed. The asymmetric-key encryption algorithm may be referred to as a public key cryptosystem. The asymmetric-key encryption algorithm may be used in digital signing and non-repudiation of an electronic document. According to the asymmetric-key encryption algorithm, each user has two keys, and thus, may need to maintain a public key and a private key, which is a key pair. The asymmetric-key encryption algorithm may include a Rivest Shamir Adleman (RSA) method, an elliptic curve cryptosystem (ECC), and the like.
(32) The symmetric-key encryption algorithm is an algorithm that performs encryption and decryption by using a single private key, and thus, only persons directly involved in secret communication may need to safely share a key. Accordingly, the symmetric-key encryption algorithm may be referred to as a secret key cryptosystem. The symmetric-key encryption algorithm may include a data encryption standard (DES) algorithm, a triple DES algorithm, an advanced encryption standard (AES) algorithm, and the like.
(33) The hash function algorithm is a function that receives a message having an arbitrary length and outputs a hash value of a fixed length. Accordingly, the hash function algorithm does not use any keys, and thus, the same output may be always output for the same input. The hash function algorithm may provide integrity capable of detecting an error or modulation of an input message by extracting an evidence value that is unchangeable with respect to the input message. The hash function algorithm may include Cyclical Redundancy Check 32 (CRC32), message digest algorithm 5 (md5), Secure Hash Algorithm-1 (SHA-1), Secure Hash Algorithm-256 (SHA-256), Race Integrity Primitives Evaluation Message Digest-128 (RIPEMD-128), Tiger, and the like.
(34) Bias properties of the asymmetric-key encryption algorithm, the symmetric-key encryption algorithm, and the hash function algorithm may be different from each other. According to an embodiment, a category of the first algorithm may be different than a category of the second algorithm. For example, the first algorithm may be a symmetric-key encryption algorithm, and the second algorithm may be a hash function algorithm. For example, the first algorithm may be an asymmetric-key encryption algorithm, and the second algorithm may be a hash function algorithm. For example, the first algorithm may be a symmetric-key encryption algorithm, and the second algorithm may be an asymmetric-key encryption algorithm. For example, the first algorithm may be an AES algorithm, and the second algorithm may be a SHA algorithm.
(35) According to an embodiment, the first algorithm may be different than the second algorithm that is in the same category as the first algorithm. For example, the first algorithm may be or include an AES algorithm included in the symmetric-key encryption algorithm, and the second algorithm may be or include a DES algorithm included in the symmetric-key encryption algorithm.
(36)
(37) Referring to
(38) According to the present disclosure, the first algorithm and the second algorithm may have different bias properties, and accordingly, unbiasedness of the random number RN may increase.
(39)
(40) Referring to
(41) In operation S230, the post processor 100 may generate the random number RN by performing the feedback substitution operation on the second algorithm M times (where M is a natural number), based on the first data D1. In operation S240, the post processor 100 may output the generated random number RN to the outside.
(42) According to an embodiment of the present disclosure, the post processor 100 may generate the random number RN by performing the feedback substitution operation on only at least some of multiple algorithms, based on the random seed RS. For example, the first algorithm may be an AES algorithm, and the second algorithm may be a SHA-256 algorithm. The post processor 100 may generate the first data D1 by performing the feedback substitution operation on an AES algorithm sixteen times, based on the random seed RS, and may generate the random number RN by substituting the first data for the SHA-256 algorithm once.
(43) As set forth above, M and N are natural numbers. In operation S220, the post processor performs a feedback substitution operation N times on the first algorithm, based on the received random seed RS. In operation S230, the feedback substitution operation is performed on the second algorithm M times, based on the first data D1.
(44)
(45) Referring to
(46) According to an embodiment of the present disclosure, at least two of the first algorithm, the second algorithm, and the third algorithm may have different bias properties. According to an embodiment, at least two of the first algorithm, the second algorithm, and the third algorithm may be encryption algorithms belonging to different categories. For example, the first algorithm may be an asymmetric-key encryption algorithm, the second algorithm may be a hash function algorithm, and the third algorithm may be a symmetric-key encryption algorithm. According to another embodiment, at least two of the first algorithm, the second algorithm, and the third algorithm may be different encryption algorithms belonging to the same category.
(47) According to an embodiment, at least one of the first algorithm processor 110a, the second algorithm processor 120a, and the third algorithm processor 130a may generate an output value by performing the feedback substitution operation on the same algorithm multiple times, based on an input value, as described above with reference to
(48)
(49) Referring to
(50) According to an embodiment of the present disclosure, the first algorithm and the second algorithm may have different bias properties, and accordingly, the first data D1 and the second data D2 may have different biases. According to an embodiment, the post processor 100b may generate the random number RN via a logic operation on the first data D1 and the second data D2 having different biases, thereby increasing unbiasedness of the random number RN.
(51) According to an embodiment, the first algorithm processor 110b or the second algorithm processor 120b may generate an output value by performing the feedback substitution operation on the same algorithm multiple times, based on an input value, as described above with reference to
(52) Although an embodiment of generating the random number RN by using two algorithm processors is illustrated in
(53)
(54) Referring to
(55)
(56) Referring to
(57) According to an embodiment, the symmetric-key encryption algorithm processor 111b may generate the first data D1 by performing the feedback substitution operation on the symmetric-key encryption algorithm multiple times, based on the received random seed RS.
(58)
(59) Referring to
(60) According to an embodiment, the symmetric-key encryption algorithm processor 112b may generate the first data D1 by performing the feedback substitution operation on the symmetric-key encryption algorithm multiple times, based on the received random seed RS.
(61)
(62) Referring to
(63) According to an embodiment of the present disclosure, at least two of the first algorithm, the second algorithm, and the third algorithm may have different bias properties. According to an embodiment, at least two of the first algorithm, the second algorithm, and the third algorithm may be encryption algorithms belonging to different categories. For example, the first algorithm may be an asymmetric-key encryption algorithm, the second algorithm may be a hash function algorithm, and the third algorithm may be a symmetric-key encryption algorithm. According to another embodiment, at least two of the first algorithm, the second algorithm, and the third algorithm may be different encryption algorithms belonging to the same category.
(64) According to an embodiment, at least one of the first algorithm processor 110c, the second algorithm processor 120c, and the third algorithm processor 140c may generate an output value by performing the feedback substitution operation on the same algorithm multiple times, based on an input value, as described above with reference to
(65)
(66) Referring to
(67) According to an embodiment of the present disclosure, the first algorithm and the second algorithm may have different bias properties, and accordingly, the first data D1 and the second data D2 may have different biases. The bias checker 150d may receive the first data D1 and the second data D2 having different biases and may output one of the first data D1 and the second data D2 as a random number RN to the outside according to a predetermined bias evaluation method (for example, a D-monomial test). According to an embodiment, the bias checker 150d may output, as the random number RN, data having higher unbiasedness from among the first data D1 and the second data D2 to the outside.
(68)
(69) Referring to
(70) According to an embodiment, the post processor 100e may output the first data D1 as a random number to the outside, based on the selection signal S1. According to another embodiment, the post processor 100e may output the second data D2 as a random number to the outside, based on the selection signal S1.
(71)
(72) Referring to
(73) The first algorithm processor 110f may generate first data D1 by applying the first random seed RS1 to a first algorithm. The second algorithm processor 120f may generate second data D2 by applying the second random seed RS2 to a second algorithm. The logic gate 130f may receive the first data D1 and the second data D2 and may generate a random number RN by performing a logic operation on the received first data D1 and the received second data D2. The logic gate 130f may include a gate device, for example, a NAND gate, a NOR gate, an OR gate, an AND gate, or an XOR gate.
(74)
(75) Referring to
(76) Referring to
(77) Referring to
(78)
(79)
(80) Referring to
(81)
(82) Referring to
(83) The random seed storage 221 may include a storage element for storing a random seed, for example, a D flip-flop. The random seed storage 221 may output the random seed to a post processor in correspondence with a clock signal.
(84)
(85) In FIGs. herein including
(86) Referring to
(87) A semiconductor chip 500 may include security devices according to embodiments of the present disclosure in order to perform the above-described authentication function. In other words, a random number generation device included in the semiconductor chip 500 may generate a random number by using at least two algorithms having different bias properties.
(88) An antenna 800 may perform a function of receiving power from the card reader and transmitting the received power to the semiconductor chip 500, or transmitting encrypted authentication information generated by the semiconductor chip 500.
(89) The semiconductor chip 500 may include a power circuit, a clock generation circuit, a logic circuit, and a data communication circuit. The power circuit may generate direct current (DC) power, based on an alternating current (AC) signal received from the antenna 800. The power circuit may include a power-on reset (POR) circuit that resets pre-stored data as power is applied.
(90) The clock generation circuit may convert the AC signal received from the antenna 800 into a clock signal and may apply the clock signal to the logic circuit. The logic circuit may include a controller, a memory, and a security device. A controller may be or include a processor, and a processor may include an application specific integrated circuit (ASIC). The security device generates a digital random number RN. A configuration of the security device has been illustrated in the above-embodiments, and thus, a detailed description thereof will be omitted. The controller may be configured to encrypt the authentication information, based on the digital random number RN generated by the security device. The memory stores the authentication information, the digital random number RN, and encrypted authentication information.
(91) The data communication circuit may process information received from the card reader and the antenna 800 and transmits the processed information to the logic circuit, or process the encrypted authentication information generated by the logic circuit and transmits the processed encrypted authentication information to the antenna 800 and the card reader.
(92) While the present disclosure has been particularly shown and described with reference to embodiments thereof, it will be understood that various changes in form and details may be made therein without departing from the spirit and scope of the following claims.