Random bit generation method and device, electronic device and storage medium

A technology of random bits and seeds, which is applied in the field of cryptography and can solve the problems of unfavorable software cryptographic module usage and difficult software implementation.

Pending Publication Date: 2020-02-28
成都卫士通信息产业股份有限公司
View PDF9 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The random bit generation method implemented in the related art is based on a hardware-designed random number generator, which is not conducive to the use of software cryptogra

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Random bit generation method and device, electronic device and storage medium
  • Random bit generation method and device, electronic device and storage medium
  • Random bit generation method and device, electronic device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0057]The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.

[0058] In order to facilitate the understanding of the method for generating random bits provided in this application, the random number generator used in it is firstly introduced. Such as figure 1 As shown, the interface of the random number generator includes an instantiation interface function (Instantiate), a re-seeding function (Reseed), a random number generation function (Generate), and a de-initialization function (uninstantiate). The input of the random number generator includes: i...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a random bit generation method and apparatus, an electronic device and a computer readable storage medium. The method comprises the steps of obtaining an input entropy and a request bit length; creating a seed and random number state corresponding to the input entropy by using a first function and a second function; wherein the first function is a derivation function basedon SM4, and the second function is a state updating function based on SM4; and generating random bits by using the first function, the second function and an SM4 algorithm according to the request bitlength and the current random number state. According to the random bit generation method provided by the invention, generation of random bits is realized by utilizing software, and the entropy source provided externally is adopted, so that the problem that the entropy source needs to be integrated internally is solved. When necessary, the entropy source and the random bit generation method provided by the invention can be packaged together to obtain the random number generator in the traditional sense, and the implementation modes of software and hardware are fully considered.

Description

technical field [0001] The present application relates to the technical field of cryptography, and more specifically, to a method and device for generating random bits, an electronic device, and a computer-readable storage medium. Background technique [0002] Binary random sequences play an important role in cryptographic applications. The security of a large number of computer systems now depends on binary random sequences, such as keys used in various cryptographic algorithms, asymmetric cryptographic algorithm RSA encryption and large prime numbers generated in digital signature schemes, and challenge-response identification systems. The number of challenges, etc., these fully reflect the actual use value of the binary random sequence. [0003] The random bit generation method implemented in the related art is based on a hardware-designed random number generator, which is not conducive to the use of software cryptographic modules and the like. In addition, in the relat...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F7/58H04L9/06
CPCG06F7/588H04L9/0637
Inventor 张文科
Owner 成都卫士通信息产业股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products