TRNG evaluation method based on random model and online monitoring

By constructing a randomness evaluation method for TRNG based on stochastic models and online monitoring methods, it solves the problem that existing technology cannot monitor the informatics quality of TRNG in real time, achieves rapid and real-time randomness evaluation and monitoring, and improves system security. .

CN111897514BActive Publication Date: 2024-10-29NANJING LOW POWER IC TECH INST CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010714678.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-23
Publication Date
2024-10-29
Estimated Expiration
2040-07-23

AI Technical Summary

Technical Problem

The existing safety assessment method of TRNG design mainly relies on statistical evaluation, which cannot monitor the informatics quality of random sequences in real time. It is complex and time-consuming, cannot perform continuous monitoring, and cannot quickly detect random faults, which affects system security.

Method used

Using an evaluation method based on random models and online monitoring, the minimum Shannon entropy value of each TRNG output bit is estimated by building a random model, using finite state machines and uniformity monitoring logic for real-time monitoring, generating pass or fail signals, and simplifying statistical property evaluation. , reduce hardware overhead.

Benefits of technology

It implements formal security assessment and real-time monitoring of TRNG randomness, quickly detects random failures, reduces the generation of low-entropy sequences, improves system security, and avoids the hardware overhead of complex calculations and cache processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure HDA0002597720810000011
    Figure HDA0002597720810000011
  • Figure HDA0002597720810000012
    Figure HDA0002597720810000012
  • Figure HDA0002597720810000021
    Figure HDA0002597720810000021
Patent Text Reader

Abstract

The present invention discloses a TRNG evaluation method based on a random model and online monitoring, comprising the steps of: (1) using an analog noise source to generate an independent, uniformly distributed and unpredictable binary random sequence; (2) constructing a random model to estimate the minimum Shannon entropy value of each output bit of the TRNG; performing a formal security evaluation on the randomness of the TRNG; and (3) continuously monitoring the original output of the TRNG online. The online monitoring logic of the present invention selects uniformity as a statistical characteristic evaluation parameter, and after collecting enough random sequences, a simple bit "1" counting logic and a threshold comparison logic can be used to obtain the relevant statistical characteristic evaluation results without the need for complex mathematical calculations. In addition, the online monitoring logic proposed by the present invention monitors the random sequence in real time, avoiding a large amount of hardware overhead caused by caching and processing the random sequence, and also reducing a large number of low entropy random sequences generated before the evaluation fails.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of true random number generation, and in particular to a TRNG evaluation method based on a random model and online monitoring. Background Art

[0002] TRNG is a primitive used in cryptographic system chips to implement various cryptographic algorithms and protocols. TRNG uses analog noise sources in electronic devices to generate independent, uniformly distributed and unpredictable binary random sequences as keys, initialization vectors and excitations. Currently, most security assessments designed for TRNG only involve statistical assessment methods. For example, after collecting a large amount of data, standard statistical test sets such as FIPS140-1, NIST SP 800-22, DIEHARD and DIEHARDER are used to perform statistical tests on the original sequences generated by TRNG or the post-processed random sequences. However, these statistical assessment methods are not applicable to modern security systems:

[0003] (1) Post-processing in TRNG can mask apparent randomness defects in the generated random sequences.

[0004] (2) Statistical tests performed after data collection can only assess the statistical quality of the random sequence rather than its informatics quality (entropy).

[0005] (3) These statistical tests are complex, slow, and require large data sets, so they can only be performed on limited data and cannot continuously monitor TRNG. The randomness of TRNG may be affected by some active attacks, thereby reducing the entropy of the random sequences it generates. In order to quickly detect TRNG failures and prevent the generation of too many low-entropy sequences that threaten the security of the entire system, TRNG needs to be monitored online in real time.

[0006] The German Federal Office for Information Security recently proposed the AIS-31 standard for evaluating TRNG, which guides TRNG designers to consider security factors more comprehensively during the design process and to evaluate the security of TRNG more strictly. AIS-31 requires the use of online monitoring logic to detect statistical defects in internal random numbers. In addition, NIST 800-90B also requires the establishment of a corresponding random model for TRNG and online monitoring logic to monitor the original random sequence before post-processing in real time, that is, TRNG for cryptographic applications must meet the following requirements:

[0007] (1) The design is simple and the source of randomness is clear.

[0008] (2) Establish a random model and conduct a formal security assessment of TRNG randomness based on probability theory.

[0009] (3) Continuously monitor the original output signal of the entropy source online. Summary of the invention

[0010] Purpose of the invention: In view of the above problems, the present invention proposes a TRNG evaluation method based on random model and online monitoring, constructs a random model to perform formal security evaluation on the randomness of TRNG, and continuously monitors the original output signal of the entropy source online.

[0011] Technical solution: To achieve the purpose of the present invention, the technical solution adopted by the present invention is: a TRNG evaluation method based on a random model and online monitoring, comprising the steps of:

[0012] (1) Generate independent, uniformly distributed and unpredictable binary random sequences using analog noise sources;

[0013] (2) Construct a random model to estimate the minimum Shannon entropy value of each output bit of TRNG; perform formal security assessment on the randomness of TRNG;

[0014] (3) Continuously monitor the TRNG raw output online.

[0015] Furthermore, the step 2 comprises:

[0016] (2.1) Construct a random model and initialize the input parameters of the random model;

[0017] (2.2) Use the digital sampling module to sample each bit of TRNG output;

[0018] (2.3) Estimate the minimum Shannon entropy value for each output bit of TRNG and perform a formal security assessment on the randomness of TRNG.

[0019] Furthermore, the step 3 comprises:

[0020] (3.1) Collect the original random sequence using a finite state machine;

[0021] (3.2) Use uniformity monitoring logic to perform parameter calculations and characteristic evaluations, and issue a pass or fail signal based on the evaluation results.

[0022] Furthermore, in the step 2.2, it can be replaced by: performing XOR on each bit output and then sampling.

[0023] Furthermore, in step 2.3, if the Shannon entropy value of the output bit is close to 1, it is considered that the TRNG randomness is ideally unpredictable.

[0024] Furthermore, in step 3.1, it is determined whether the count value is greater than or equal to N; when enough original random sequences greater than or equal to N are collected, the subsequent steps are performed; otherwise, the collection work is continued.

[0025] Furthermore, in step 3.2, after collecting enough random sequences, a simple bit "1" counting logic is used and compared with a pre-set threshold to obtain a characteristic evaluation result and generate a uniformity fault warning signal.

[0026] Furthermore, in step 3.2, the uniformity monitoring logic uses serial adders and subtractors to perform parameter calculations and characteristic evaluations.

[0027] Beneficial effects: The online monitoring logic of the present invention selects uniformity as a statistical characteristic evaluation parameter. After collecting enough random sequences, simple bit "1" counting logic and threshold comparison logic can be used to obtain relevant statistical characteristic evaluation results without the need for complex mathematical calculations. In addition, the online monitoring logic proposed by the present invention monitors random sequences in real time, avoiding a large amount of hardware overhead caused by caching random sequences, and also reducing a large number of low-entropy random sequences generated before evaluation failure. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 It is a flow chart of the TRNG evaluation method based on random model and online monitoring;

[0029] Figure 2 It is the logic block diagram of online monitoring;

[0030] Figure 3 It is the uniformity detection logic. DETAILED DESCRIPTION

[0031] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0032] like Figure 1 As shown, the TRNG evaluation method based on random model and online monitoring of the present invention comprises the steps of:

[0033] (1) True random number generator (TRNG), which uses an analog noise source to generate independent, uniformly distributed and unpredictable binary random sequences;

[0034] (2) Construct a random model to estimate the minimum Shannon entropy value of each output bit of TRNG; perform formal security assessment on the randomness of TRNG;

[0035] (2.1) Construct a random model and initialize the input parameters of the random model;

[0036] Assuming that the delay of LUT units on the FPGA platform is normally distributed, the jitter of the entropy source design is simulated, and the Gaussian parameters are fitted for the input parameters of the random model to estimate the minimum Shannon entropy value of the original output of the TRNG.

[0037] (2.2) Based on the reference clock, use the digital sampling module to sample the output of each TRNG node;

[0038] Alternatively, each node output is XORed and then sampled to increase the entropy of the output. That is, the original sequence generated by the TRNG or the post-processed random sequence is estimated.

[0039] (2.3) Estimate the minimum Shannon entropy value for each output bit of TRNG; then, perform a formal security assessment on the randomness of TRNG.

[0040] The minimum Shannon entropy value of the random model is a function of some characteristic parameters in the TRNG. The minimum Shannon entropy value evaluated by the random model is used as an indicator of quantitative unpredictability. If the Shannon entropy value of each output bit is close to 1, the output of the TRNG can be considered to be ideally unpredictable.

[0041] (3) Figure 2 As shown, the TRNG raw output is continuously monitored online;

[0042] The TRNG raw output is monitored online to detect unpredictable random defects in time to ensure that the entropy source works as expected. The online test logic contains a finite state machine, which first needs to collect enough random sequences, then calculate the relevant statistical characteristic parameters, and finally send a pass or fail signal based on the evaluation results.

[0043] (3.1) Use the finite state machine FSM to collect enough original random sequences;

[0044] Determine whether the count value is greater than or equal to N; when enough original random sequences greater than or equal to N are collected, proceed to the subsequent steps; otherwise, continue collecting.

[0045] (3.2) Use uniformity monitoring logic to perform parameter calculations and characteristic evaluations, and finally issue a pass or fail signal based on the evaluation results;

[0046] After collecting enough random sequences, simple bit "1" counting logic and threshold comparison logic are used to obtain relevant statistical characteristics evaluation results. The uniformity monitoring logic continuously calculates the Shannon entropy of the entropy source after counting N bits, and then compares it with the pre-set threshold to generate a uniformity fault warning signal.

[0047] During the parameter calculation and characteristic evaluation phase, uniformity monitoring logic is used to continuously monitor the statistical characteristics of the entropy source to ensure the randomness of the entropy source output. Figure 3 As shown, the uniformity monitoring logic includes serial adders and subtractors, registers and comparators.

[0048] The uniformity online monitoring logic uses serial adders and subtractors to continuously calculate and evaluate the statistical characteristics of the TRNG original random sequence. It also does not need to cache a large number of random sequences in advance and perform complex floating-point operations, greatly reducing hardware overhead.

[0049] The present invention realizes the online monitoring logic of 8-4096 bit sequences according to the actual application requirements of TRNG to generate random numbers, and adjusts TRNG according to the results modeled by the random model to meet the security requirements of TRNG design. Compared with the application of parallel computing logic and serial addition and subtraction logic, it can bring very large hardware overhead benefits.

Claims

1. A TRNG evaluation method based on random model and online monitoring, characterized in that: Includes steps: (1) Generate independent, uniformly distributed and unpredictable binary random sequences using analog noise sources; (2) Construct a random model to estimate the minimum Shannon entropy value of each output bit of TRNG; Perform formal security assessment on TRNG randomness; including: (2.1) Construct a random model and initialize the input parameters of the random model; (2.2) Using a digital sampling module to sample each bit of the TRNG output; wherein each bit of the output is XORed and then sampled; (2.3) Estimate the minimum Shannon entropy value of each output bit of TRNG and perform formal security assessment on the randomness of TRNG; if the Shannon entropy value of the output bit is close to 1, the randomness of TRNG is considered to be ideal and unpredictable; (3) Continuously monitor the TRNG raw output online, including: (3.1) Use the finite state machine to collect the original random sequence; wherein, determine whether the count value is greater than or equal to N; when the original random sequence greater than or equal to N is collected, proceed to the subsequent steps; otherwise, continue to collect (3.2) Use uniformity monitoring logic to perform parameter calculations and characteristic evaluations, and issue a pass or fail signal based on the evaluation results; after collecting the random sequence, use simple bit "1" counting logic and compare it with the pre-set threshold to obtain the characteristic evaluation results and generate a uniformity fault warning signal; the uniformity monitoring logic uses serial adders and subtractors to perform parameter calculations and characteristic evaluations.

Citation Information

Patent Citations

  • High-quality random number generator and random number generation method

    CN111190570A