Quantum random number service management system, providing and requesting method and device
Through the quantum random number service management system, the quantum random number generation equipment connected to the central quantum random number service platform and the physical host is used to obtain and store quantum random numbers, which solves the security risks of deploying quantum random number generators under virtualization technology in the data center. and high cost issues, improving random number quality and system security.
Patent Information
- Application Number
- CN202011226188.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-05
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2040-11-05
AI Technical Summary
Due to the application of virtualization technology in modern data centers, deploying quantum random number generators has security risks and high costs. The lack of entropy sources in the virtual machine system results in low quality random numbers, which affects system security.
Using a quantum random number service management system, the quantum random number generation device connected to the physical host through the central quantum random number service platform obtains the quantum random number and stores it in the random number storage pool to provide quantum random number resource services to the client. Obtain resources through the RESTful API interface to avoid deploying quantum random number generators in virtual environments and reduce costs.
It improves the security and random number quality of the data center, reduces the deployment cost of quantum random number generation equipment, and achieves safe and efficient management of quantum random number resources.
Smart Images

Figure CN113296738B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology applications, and specifically to a quantum random number service management system, a method and device for providing quantum random number services, and a method and device for requesting quantum random number services. The present application also relates to a computer storage medium and an electronic device. Background Art
[0002] As the only random number generator that can generate theoretically completely unpredictable random sequences, the quantum random number generator has matured in terms of product technology. Usually, quantum random number generators include devices based on USB and PCI-E interfaces, which are connected by plugging and unplugging. However, this connection method is not suitable for deployment in modern data centers for the following reasons:
[0003] First, modern data centers are built on the basis of virtualization technology. From virtual machines to containers, all physical host resources such as CPU, memory, and network are shared. Therefore, for security reasons, plugging and unplugging quantum random number generators in data centers to obtain quantum random numbers obviously poses a great security risk.
[0004] Second, the price of a quantum random number generator is much higher than that of a hardware random number generator, and large-scale deployment will cause the problem of excessive costs.
[0005] 3. For data centers, because virtual technology is mainly used to share various resources, when generating random numbers based on random number generation algorithms, the entropy value of the virtual machine system entropy source is too low. This is mainly because under virtual technology, the virtual system does not have external I / O devices. Therefore, there is a lack of random behavior as an entropy source, which leads to a lack of entropy source and a low quality of the generated random numbers, further reducing system security. At the same time, the lack of entropy source will also lead to a decline in the performance of security applications. Summary of the invention
[0006] The present application provides a quantum random number service management system to solve the security problem in the prior art.
[0007] The present application provides a quantum random number service management system, including: a first cluster and a client;
[0008] The central quantum random number service platform deployed in the first cluster obtains the quantum random number generated by the quantum random number generating device through the quantum random number generating device connected to the physical host, and stores the quantum random number as a quantum random number resource in a random number storage pool deployed in the first cluster, wherein the central quantum random number service platform provides a quantum random number resource service;
[0009] The client obtains the quantum random number resource based on the quantum random number resource service provided by the central quantum random number service platform.
[0010] In some embodiments, further comprising: a second cluster;
[0011] The distributed quantum random number service platform deployed in the second cluster obtains the quantum random number resource through the central quantum random number service platform;
[0012] The distributed quantum random number service platform stores the acquired quantum random number resources in a random number storage pool deployed in the second cluster;
[0013] The client obtains the quantum random number resource based on the quantum random number resource service provided by the central quantum random number service platform, including:
[0014] The client obtains the quantum random number resource provided by the central quantum random number service platform to the distributed quantum random number service platform through the distributed quantum random number service platform.
[0015] In some embodiments, the client obtains, through the distributed quantum random number service platform, the quantum random number resource provided by the central quantum random number service platform to the distributed quantum random number service platform, including:
[0016] The client selects the distributed quantum random number service platform that meets the distance requirement according to the distance between the client and the distributed quantum random number service platform;
[0017] The quantum random number resource is obtained through the selected distributed quantum random number service platform.
[0018] In some embodiments, the distributed quantum random number service platform obtains the quantum random number resource from the central quantum random number service platform by calling a RESTful API interface.
[0019] In some embodiments, the client obtains the quantum random number resource from the distributed quantum random number service platform by calling a RESTful API interface.
[0020] In some embodiments, it also includes: determining whether the storage capacity of the quantum random number resources stored in the random number storage pool of the distributed quantum random number service platform meets the set resource storage capacity requirement;
[0021] If not satisfied, the quantum random number resource is obtained from the central quantum random number service platform.
[0022] In some embodiments, the central quantum random number service platform obtains the quantum random number resource by calling a device interface provided by the quantum random number generating device connected to the physical host.
[0023] In some embodiments, when the central quantum random number service platform obtains the quantum random number, when it is connected to the physical host as at least two quantum random number generating devices, the central quantum random number service platform obtains the quantum random number through the device interface provided by the quantum random number generating device respectively;
[0024] The central quantum random number service platform performs mixing processing on the quantum random numbers obtained from the at least two quantum random number generating devices to obtain a random number sequence;
[0025] The random number sequence is used as the quantum random number resource and stored in the random number storage pool deployed in the first cluster.
[0026] In some embodiments, the client obtains the quantum random number resource based on the central quantum random number service platform by calling a RESTful API interface.
[0027] In some embodiments, the client further comprises:
[0028] The client adds the acquired quantum random number resource as entropy source data to an entropy pool;
[0029] Determine the entropy source data as a random number seed;
[0030] A random number sequence is generated according to the random number seed.
[0031] In some embodiments, the client further comprises:
[0032] The client mixes the entropy source data added to the entropy pool with the existing entropy source data in the entropy pool;
[0033] Determining the entropy source data as a random number seed includes:
[0034] The mixed entropy source data is used as the random number seed of the random number generation algorithm to generate the random number sequence.
[0035] In some embodiments, it also includes:
[0036] The load balancing server is used for the client to select the central quantum random number service platform that can provide the quantum random number when obtaining the quantum random number resource based on the quantum random number service provided by the central quantum random number service platform.
[0037] The present application also provides a method for providing a quantum random number service, including:
[0038] Based on the central quantum random number service platform, obtain the quantum random number generated by the quantum random number generating device connected to the physical host;
[0039] The obtained quantum random number is used as a quantum random number resource and stored in a random number storage pool; wherein the random number storage pool is used to store the quantum random number obtained by the quantum random number generating device;
[0040] In response to the quantum random number resource request, the central quantum random number service platform provides the quantum random number resource.
[0041] In some embodiments, obtaining a quantum random number generated by a quantum random number generating device connected to a physical host based on a central quantum random number service platform includes:
[0042] The quantum random number generated by the quantum random number generating device is obtained by calling a device interface provided by the quantum random number generating device connected to the physical host.
[0043] In some embodiments, obtaining a quantum random number generated by a quantum random number generating device connected to a physical host based on a central quantum random number service platform includes:
[0044] When there are at least two quantum random number generating devices connected to the physical host, respectively obtaining the quantum random numbers generated by different quantum random number generating devices;
[0045] The step of storing the acquired quantum random number as a quantum random number resource in a random number storage pool includes:
[0046] Mixing the respectively obtained quantum random numbers to obtain a random number sequence;
[0047] The random number sequence is stored in the random number storage pool as the quantum random number resource.
[0048] In some embodiments, in response to the quantum random number resource request, the central quantum random number service platform provides the quantum random number resource, including:
[0049] Determining, according to the quantum random number resource request, the central quantum random number service platform that can provide quantum random number resource services;
[0050] According to the determined central quantum random number service platform, the quantum random number resource is provided to the requester of the quantum random number resource request.
[0051] The present application also provides a device for providing a quantum random number service, including:
[0052] An acquisition unit, used for acquiring a quantum random number generated by a quantum random number generating device connected to a physical host based on a central quantum random number service platform;
[0053] A storage unit, used to store the obtained quantum random number as a quantum random number resource in a random number storage pool; wherein the random number storage pool is used to store the quantum random number obtained by the quantum random number generating device;
[0054] A providing unit is used to respond to a quantum random number resource request, and the central quantum random number service platform provides the quantum random number resource.
[0055] The present application also provides a method for requesting a quantum random number service, including:
[0056] Send a request to obtain quantum random number resources;
[0057] Acquire the quantum random number resources provided by the central quantum random number service platform in response to the acquisition request, or acquire the quantum random number resources provided by the distributed quantum random number service platform in response to the acquisition request; wherein the quantum random number resources provided by the distributed quantum random number service platform come from the quantum random number resources provided by the central quantum random number service platform;
[0058] According to application requirements for the quantum random number resource, the quantum random number resource is provided through an interface matching the application requirements.
[0059] In some embodiments, the obtaining of the quantum random number resources provided by the central quantum random number service platform in response to the acquisition request, or the obtaining of the quantum random number resources provided by the distributed quantum random number service platform in response to the acquisition request, includes:
[0060] By calling the RESTful API interface, the quantum random number resources provided by the central quantum random number service platform or the quantum random number resources provided by the distributed quantum random number service platform are obtained.
[0061] In some embodiments, it also includes:
[0062] The obtained quantum random number resource is used as entropy source data and added to the entropy pool;
[0063] Determine the entropy source data as a random number seed;
[0064] A random number sequence is generated according to the random number seed.
[0065] In some embodiments, it also includes:
[0066] Mixing the entropy source data added to the entropy pool with the existing entropy source data in the entropy pool;
[0067] Determining the entropy source data as a random number seed includes:
[0068] Determine the random number seed of the random number generation algorithm according to the mixed entropy source data;
[0069] The providing the quantum random number resource through an interface matching the application requirement according to the application requirement of the quantum random number resource includes:
[0070] According to application requirements for the quantum random number resource, the random number sequence is provided through an interface matching the application requirements.
[0071] The present application also provides a request device for a quantum random number service, comprising:
[0072] A sending unit, used for sending a request for obtaining a quantum random number resource;
[0073] An acquisition unit, configured to acquire the quantum random number resources provided by the central quantum random number service platform in response to the acquisition request, or to acquire the quantum random number resources provided by the distributed quantum random number service platform in response to the acquisition request; wherein the quantum random number resources provided by the distributed quantum random number service platform are from the quantum random number resources provided by the central quantum random number service platform;
[0074] A providing unit is used to provide the quantum random number resource through an interface matching the application requirement according to the application requirement of the quantum random number resource.
[0075] The present application also provides a method for requesting a quantum random number service, including:
[0076] Determine whether the random number storage pool corresponding to the distributed quantum random number service platform and the storage capacity of the stored quantum random number resources meet the set resource storage capacity requirements;
[0077] If not, a quantum random number resource request is sent to the central quantum random number service platform;
[0078] Acquire the quantum random number resource provided by the central quantum random number service platform in response to the quantum random number resource request;
[0079] Storing the acquired quantum random number resource in a random storage pool corresponding to the distributed quantum random number service platform;
[0080] In response to a request from a client for obtaining the quantum random number resource, the quantum random number resource is provided.
[0081] In some embodiments, determining whether the storage capacity of the quantum random number resources stored in the random number storage pool corresponding to the distributed quantum random number service platform meets the set resource storage capacity requirement includes:
[0082] The distributed quantum random number service platform determines, according to the received quantum random number acquisition request, whether the storage capacity of the quantum random number resources stored in the random number storage pool corresponding to the distributed quantum random number service platform meets the set resource storage capacity requirement;
[0083] or,
[0084] According to the set monitoring period, determine whether the storage capacity of the quantum random number resources stored in the random number storage pool corresponding to the distributed quantum random number service platform meets the set resource storage capacity requirements.
[0085] In some embodiments, it also includes:
[0086] If the storage capacity of the quantum random number resources stored in the random number storage pool corresponding to the distributed quantum random number service platform meets the set resource storage capacity requirement, the quantum random number resources are provided according to the received quantum random number resource request.
[0087] In some embodiments, the obtaining of the quantum random number resource provided by the central quantum random number service platform in response to the quantum random number resource request includes:
[0088] The quantum random number resource provided by the central quantum random number service platform in response to the quantum random number resource request is obtained by calling a RESTful API interface.
[0089] The present application also provides a request device for a quantum random number service, comprising:
[0090] A determination unit, used to determine whether the storage capacity of the quantum random number resources stored in the random number storage pool corresponding to the distributed quantum random number service platform meets the set resource storage capacity requirement;
[0091] A sending unit, configured to send a quantum random number resource request to a central quantum random number service platform when the determination result of the determining unit is not satisfied;
[0092] An acquisition unit, configured to acquire the quantum random number resource provided by the central quantum random number service platform in response to the quantum random number resource request;
[0093] A storage unit, used to store the acquired quantum random number resource into a random storage pool corresponding to the distributed quantum random number service platform;
[0094] A providing unit is used to provide the quantum random number resource in response to a request from a client to obtain the quantum random number resource.
[0095] The present application also provides a computer storage medium for storing data generated by a network platform, and a program for processing the data generated by the network platform;
[0096] When the program is read and executed, the following steps are performed:
[0097] Based on the central quantum random number service platform, obtain the quantum random number generated by the quantum random number generating device connected to the physical host;
[0098] The obtained quantum random number is used as a quantum random number resource and stored in a random number storage pool; wherein the random number storage pool is used to store the quantum random number obtained by the quantum random number generating device;
[0099] In response to a quantum random number resource request, the central quantum random number service platform provides the quantum random number resource;
[0100] Alternatively, perform the following steps:
[0101] Send a request to obtain quantum random number resources;
[0102] Acquire the quantum random number resources provided by the central quantum random number service platform in response to the acquisition request, or acquire the quantum random number resources provided by the distributed quantum random number service platform in response to the acquisition request; wherein the quantum random number resources provided by the distributed quantum random number service platform come from the quantum random number resources provided by the central quantum random number service platform;
[0103] According to application requirements for the quantum random number resource, providing the quantum random number resource through an interface matching the application requirements;
[0104] Alternatively, perform the following steps:
[0105] Determine whether the random number storage pool corresponding to the distributed quantum random number service platform and the storage capacity of the stored quantum random number resources meet the set resource storage capacity requirements;
[0106] If not, a quantum random number resource request is sent to the central quantum random number service platform;
[0107] Acquire the quantum random number resource provided by the central quantum random number service platform in response to the quantum random number resource request;
[0108] The obtained quantum random number resource is stored in a random storage pool corresponding to the distributed quantum random number service platform.
[0109] The present application also provides an electronic device, including:
[0110] processor;
[0111] The memory is used to store a program for processing data generated by the network platform, and when the program is read and executed by the processor, the following steps are performed:
[0112] Based on the central quantum random number service platform, obtain the quantum random number generated by the quantum random number generating device connected to the physical host;
[0113] The obtained quantum random number is used as a quantum random number resource and stored in a random number storage pool; wherein the random number storage pool is used to store the quantum random number obtained by the quantum random number generating device;
[0114] In response to a quantum random number resource request, the central quantum random number service platform provides the quantum random number resource;
[0115] Alternatively, perform the following steps:
[0116] Send a request to obtain quantum random number resources;
[0117] Acquire the quantum random number resources provided by the central quantum random number service platform in response to the acquisition request, or acquire the quantum random number resources provided by the distributed quantum random number service platform in response to the acquisition request; wherein the quantum random number resources provided by the distributed quantum random number service platform come from the quantum random number resources provided by the central quantum random number service platform;
[0118] According to application requirements for the quantum random number resource, providing the quantum random number resource through an interface matching the application requirements;
[0119] Alternatively, perform the following steps:
[0120] Determine whether the random number storage pool corresponding to the distributed quantum random number service platform and the storage capacity of the stored quantum random number resources meet the set resource storage capacity requirements;
[0121] If not, a quantum random number resource request is sent to the central quantum random number service platform;
[0122] Acquire the quantum random number resource provided by the central quantum random number service platform in response to the quantum random number resource request;
[0123] The obtained quantum random number resource is stored in the random storage pool corresponding to the distributed quantum random number service platform.
[0124] Compared with the prior art, this application has the following advantages:
[0125] The embodiment of a quantum random number service management system provided in the present application obtains the quantum random number generated by the quantum random number generating device connected to the physical host through the central quantum random number service platform deployed in the first cluster, and stores the quantum random number as a quantum random number resource in the random number storage pool deployed in the first cluster, so that the central quantum random number service platform can provide quantum random number resource services; the client obtains the quantum random number resource based on the quantum random number resource service provided by the central quantum random number service platform. There is no need to deploy a quantum random number generating device on the client, avoiding the potential safety hazards of connecting the quantum random number generating device in a virtual environment, improving the security of the system and applications, and adopting a resource-based management service mode by providing quantum random number resource services through the central quantum random number service platform deployed in the first cluster, which can effectively solve the problem of high costs caused by large-scale deployment of data centers.
[0126] In some embodiments, the central quantum random number service platform and the random number storage pool in the first cluster can be expanded to ensure high throughput with high demand. When the demand decreases, the central quantum random number service platform and the random number storage pool in the first cluster can be reduced to avoid waste of resources.
[0127] In some embodiments, the client can obtain quantum random number resources based on the central quantum random number service platform by calling the Restful API interface without paying attention to the device interface of the underlying quantum random number generating device, and in terms of improving the acquisition rate and reducing the response delay, the client can also obtain the quantum random number resources provided by the central quantum random number service platform through the distributed quantum random number service platform deployed in the second cluster.
[0128] In some embodiments, when the central quantum random number service platform deployed in the first cluster corresponds to at least two quantum random number generating devices, the respectively acquired quantum random numbers can also be XOR mixed, thereby correcting the random number quality defects of the quantum random number generating device caused by the generation principle or other reasons.
[0129] In some embodiments, the quantum random number resource is added to the entropy pool as entropy source data to avoid the problem of lack of entropy source data in the entropy pool, which leads to low quality of generated random numbers and poor security. BRIEF DESCRIPTION OF THE DRAWINGS
[0130] Figure 1 It is a structural diagram of an embodiment of a quantum random number service management system provided by the present application;
[0131] Figure 2 This is a block diagram of the working principle of a quantum random number service management system provided by the present application involving a client;
[0132] Figure 3 This is a flow chart of an embodiment of a method for providing a quantum random number service provided by the present application;
[0133] Figure 4 It is a structural schematic diagram of an embodiment of a device for providing a quantum random number service provided by the present application;
[0134] Figure 5 This is a flowchart of an embodiment of a method for requesting a quantum random number service provided by the present application;
[0135] Figure 6 It is a structural diagram of an embodiment of a request device for a quantum random number service provided by the present application;
[0136] Figure 7 This is a flowchart of an embodiment of a method for requesting a quantum random number service provided by the present application;
[0137] Figure 8 It is a structural diagram of an embodiment of a request device for a quantum random number service provided by the present application;
[0138] Fig. 9 It is a structural schematic diagram of an electronic device embodiment provided by the present application. DETAILED DESCRIPTION
[0139] Many specific details are described in the following description to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present application, so the present application is not limited by the specific implementation disclosed below.
[0140] The terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The descriptions used in this application and the appended claims, such as "a", "first", and "second", are not limitations on quantity or sequence, but are used to distinguish the same type of information from each other.
[0141] Based on the description in the above background technology, it can be known that the conception of the technical solution of this application is a technical solution based on the existing data when deploying quantum random number generation equipment, from the perspective of security and cost. In the era of computers and big data, establishing privacy and security protection barriers is one of the most important security projects in the field of computer applications, and the cornerstone of this security project relies on random numbers. It can be seen that the quality of random numbers will directly affect the security of computer systems and even applications.
[0142] According to the production method of random numbers, random numbers can be divided into pseudo-random numbers and true random numbers. Pseudo-random numbers are statistically random sequences generated by deterministic algorithms, and the randomness depends on the seed and algorithm. At present, pseudo-random number generators have been widely used in the computer field. Since pseudo-random numbers can crack the sequence of pseudo-random number generators through various attack methods, pseudo-random numbers will have security risks in application scenarios with high requirements. True random numbers are random sequences obtained by observing and sampling non-deterministic physical processes, such as collecting data from physical random sources to generate random numbers, data from devices such as mice and keyboards, and generating quantum random numbers through quantum random number generators. Quantum random number generators (QRNG: Quantum Random Number Generator) are based on the inherent randomness of quantum mechanics theory, and can generate unpredictable and infinitely long random sequences. It is the random number generation technology that is closest to ideal true randomness to date.
[0143] However, in order to improve security and deploy quantum random number generators in data center application scenarios, it is necessary to set up quantum random number generators connected to physical hosts to realize the generation and application of quantum random numbers. In order to improve resource utilization and facilitate system deployment and maintenance, data centers have become popular with virtualization technology, which enables sharing of network, storage and other resources through virtual technology. At this time, deploying quantum random number generators will obviously reduce security due to the sharing function, because the client environment for access is uncontrollable and complex, and quantum random number generators are more expensive than traditional pseudo-random number generators. Therefore, deploying quantum random number generators in data centers will inevitably increase costs.
[0144] Therefore, in view of the above considerations, the embodiment of the present application proposes a solution that can realize the resourceization and service of quantum random numbers. When providing quantum random numbers for data centers, it can not only ensure the security of data centers, but also reduce the deployment cost of quantum random generation equipment. The quantum random number service management system provided by the present application will be described in detail below.
[0145] like Figure 1 As shown, Figure 1It is a structural diagram of an embodiment of a quantum random number service management system provided by the present application, the system comprising: a first cluster and a client;
[0146] A central quantum random number service platform is deployed in the first cluster. The quantum random number generated by the quantum random number generating device is obtained through the quantum random number generating device connected to the physical host, and the quantum random number is stored as a quantum random number resource in a random number storage pool deployed in the first cluster, wherein the central quantum random number service platform provides quantum random number resource services.
[0147] The client obtains the quantum random number resource based on the quantum random number resource service provided by the central quantum random number service platform.
[0148] In this embodiment, the first cluster can be understood as a central cluster, and the central cluster described below is the first cluster. The central cluster aims to provide services and management for quantum random numbers, and manages the generated quantum random numbers as service resources to provide quantum random number services.
[0149] In this embodiment, the central cluster includes: a central quantum random number service platform, a physical host, a quantum random number generating device, and a random number storage pool. The central quantum random number service platform can obtain the quantum random number generated by the quantum random number generating device by calling the device interface provided by the quantum random number generating device connected to the physical host. The obtained quantum random number can be stored in the random number storage pool configured for the central quantum random number service platform in the central cluster. Figure 1As shown, in this embodiment, the central cluster can deploy multiple central quantum random number service platforms, and each central quantum random number service platform corresponds to a physical host and a random number storage pool. The number of quantum random number generating devices connected to the physical host is not limited. In this embodiment, two central quantum random number service platforms are used as an example for explanation, that is, the central quantum random number service platform A manages a physical host A, and the physical host A is connected to two quantum random number generating devices A1 and A2. The central quantum random number service platform A stores the quantum random numbers generated by the quantum random number generating devices A1 and A2 in the random number storage pool A through the device interface provided by the quantum random number generating devices A1 and A2. The central quantum random number service platform B manages a physical host B, and the physical host B is connected to two random number generating devices B1 and B2. The central quantum random number service platform B stores the quantum random numbers generated by the quantum random number generating devices B1 and B2 in the random number storage pool B through the device interface provided by the quantum random number generating devices B1 and B2. Among them, the device interface provides the use mode of the corresponding interface service when applying the quantum random number generating device. This is not the core of the embodiments of the present application and will not be elaborated on. It can be understood that the quantum random number generating device may come from different generating manufacturers, so the device interface services provided are also different, and the quantum random number is obtained by calling the device interface.
[0150] It is understandable that any one of the physical host A and the physical host B can be connected to one quantum random number generating device or multiple quantum random number generating devices. In other words, the number of central quantum random number service platforms in the central cluster can be arranged according to application requirements, for example, it can be one or more. Similarly, the physical host connected to the central quantum random number service platform and the quantum random number generating device connected to the physical host, as well as the quantum random number storage pool can be arranged and configured according to application requirements. For example, the quantum random number storage pool can be only one or can correspond to the number of deployed central quantum random number service platforms.
[0151] Taking the central quantum random number service platform A as an example, when there are at least two quantum random number generating devices connected to the physical host A, namely, quantum random number generating devices A1 and A2; the central quantum random number service platform A will mix the acquired quantum random numbers to obtain a random number sequence, and store the random number sequence as a quantum random number resource in the quantum random number storage pool A corresponding to the central quantum random number service platform A. Figure 1 As shown, the central quantum random number service platform B can also use the above process to process and store quantum random numbers.
[0152] In this embodiment, the central quantum random number service platform A can perform exclusive OR (XOR: exclusive OR) calculation processing on the mixed processing of the quantum random numbers obtained from the at least two quantum random number generating devices, that is, the random numbers from the quantum random number generating device A1 and the quantum random number generating device A2 are subjected to exclusive OR calculation processing to obtain a mixed random number sequence. The exclusive OR calculation processing can be that when the random numbers generated by two different random number generating devices are the same, the exclusive OR result is 0; when they are different, the exclusive OR result is 1. Since the exclusive OR calculation processing belongs to the prior art, it is only generally introduced here.
[0153] It should be noted that in this embodiment, whether to perform XOR calculation processing can be determined by judging whether the acquired quantum random number is an XOR mode, that is, whether it comes from multiple different types of quantum random number generating devices. Of course, it is not limited to different quantum random number generating devices. For quantum random number generating devices from multiple identical quantum random number generating devices, XOR calculation processing can also be used to mix the quantum random numbers to obtain a quantum random number sequence.
[0154] In this embodiment, the quantum random numbers from different types of quantum random number generating devices are subjected to XOR processing, which can be used to correct the quantum random number quality problems caused by defects in the working principle or design of the quantum random number generating device, thereby improving the quality of the quantum random numbers provided by the central quantum random number service platform.
[0155] The above is a description of the deployment and functional principle of the first cluster in the embodiment of the quantum random number service management system provided by this application. The following describes the deployment and functional principle of the client in the embodiment of the quantum random number service management system provided by this application.
[0156] The client can be understood as the user who uses the quantum random number resource. In this embodiment, the client can obtain the quantum random number resource provided by the central quantum random number service platform deployed in the first cluster. The specific acquisition method can be obtained by calling the RESTful API interface to obtain the quantum random number resource service provided by the central quantum random number service platform. Among them, the REST in the RESTful API interface is called REpresentationalState Transfer, that is, presentation layer state transfer. REST describes a form of interaction between the client and the server in the network. The RESTful API interface is an interface implemented based on the http protocol, that is, the REST-style API is based on http and can be defined in xml format or json format. The OpenAPI specification gives very specific regulations on the details of the RESTful API interface, and has become the de facto standard in the field of RESTful API interface design. Here, the RESTful API interface is only described in summary.
[0157] The client obtains quantum random number resources from the first cluster through the RESTful API interface, which is not limited by the type of quantum random generation device in the first cluster. The RESTful API interface can decouple the client from various types of quantum random generation device interfaces, so that the client does not need to care about the quantum random generation device interface, and can obtain quantum random number resources by calling the RESTful API interface. In addition, the client obtains quantum random number resources through the central quantum random number service platform, and there is no need to deploy quantum random number generation devices on the client, thereby avoiding the security risks caused by connecting quantum random number generation devices in a virtual environment, and the cost problems caused by the large-scale deployment of quantum random number generation devices.
[0158] In this embodiment, the first cluster provided can be elastically scaled according to the demand for quantum random number resources by the client. When the demand increases, the central quantum random number service platform and the random number storage pool in the first cluster can be expanded to ensure high throughput for high demand. When the demand decreases, the central quantum random number service platform and the random number storage pool in the first cluster can be reduced to avoid waste of resources.
[0159] The central quantum random number service platform deployed in the first cluster provides quantum random number resource services in a resource-based management service manner, which can effectively solve the problem of high costs caused by large-scale deployment of data centers.
[0160] The above is a description of the first cluster involved in the embodiment of the present application.
[0161] Taking into account the large-scale data center, in order to avoid delays in providing quantum random number resource services, this embodiment also includes: the second cluster includes: a distributed quantum random number service platform, a random number storage pool.
[0162] The distributed quantum random number service platform deployed in the second cluster obtains the quantum random number resource through the central quantum random number service platform;
[0163] The distributed quantum random number service platform stores the acquired quantum random number resources in a random number storage pool deployed in the second cluster.
[0164] In this embodiment, the second cluster may include a plurality of distributed quantum random number service platforms and a random number storage pool corresponding to the distributed quantum random number service platforms.
[0165] When the distributed quantum random number service platform obtains the quantum random number resource from the central quantum random number service platform, it can obtain the quantum random number resource from the central quantum random number service platform by calling the RESTful API interface. The RESTful API interface has been described above and will not be repeated here.
[0166] In order to ensure that the distributed quantum random number service platform can stably provide quantum random number resources to the client, it is necessary to determine whether the storage capacity of the quantum random number resources stored in the random number storage pool of the distributed quantum random number service platform meets the set resource storage capacity requirements. If not, it is necessary to obtain the quantum random number resources from the central quantum random number service platform. In other words, when the distributed quantum random number service platform detects that there are fewer quantum random number resources in its corresponding random number storage pool (local random number storage pool), it will request quantum random number resources from the central quantum random number service platform, and add the obtained quantum random number resources to the local random number storage pool of the distributed quantum random number service platform, thereby ensuring the stability of the client in obtaining the quantum random number resources from the distributed quantum random number service platform, avoiding delays, and improving the response speed of the acquisition request.
[0167] It should be noted that the distributed quantum random number service platform can monitor the storage status of the local random number storage pool according to the configured monitoring period, and can also trigger the monitoring of the local random number storage pool when receiving a quantum random number acquisition request from the client.
[0168] Similar to the central quantum random number service platform deployed in the first cluster, the distributed quantum random number service platform can also be elastically scaled according to the needs of the client, that is, when the demand increases, the distributed quantum random number service platform deployed in the second cluster and the corresponding random number storage pool can be expanded to achieve high throughput; when the demand decreases, it can be reduced to avoid waste of resources.
[0169] The above is the description of the second cluster in this embodiment.
[0170] It can be understood that, whether it is the first cluster or the second cluster, the random number storage pool deployed corresponding to the central quantum random number service platform and the random number storage pool deployed corresponding to the distributed quantum random number service platform can be a local random number storage pool, and the storage pool can be stored in the form of a cache. In this embodiment, the second cluster can be deployed in different areas.
[0171] The following describes the client involved in the embodiment of the present application:
[0172] The client can obtain the quantum random number resources provided by the central quantum random number service platform to the distributed quantum random number service platform through the distributed quantum random number service platform. The client (Guest) is a logical host virtualized on a physical host through virtualization technology, so that various resources on the physical host can be used in a shared manner, and therefore, it can also be called a virtual machine. The physical host can be called a host, which is the physical host where the virtual machine is located.
[0173] In this embodiment, the client may include multiple or one clients, that is, the client may also exist in the form of a cluster, and the number of clients in the cluster is not limited.
[0174] It should be noted here that the physical host in the first cluster and the physical host in the client are not the same because of differences in deployment environment and function. The physical host in the first cluster is able to connect to the quantum random number generating device so that the central quantum random number service platform can obtain the quantum random number generated by the quantum random number generating device through the physical host. The physical host in the client is able to realize the virtualization of the logical host, and the connection relationship with the quantum random number generating device is not considered.
[0175] Please combine Figure 1 ,refer to Figure 2 As shown, Figure 2 This is a structural block diagram of the working principle of a client in a quantum random number service management system provided by this application.
[0176] In this embodiment, the client may be an application end including virtualization technology, for example, the client may deploy an application of quantum random number service or some other security applications, such as: TLS (Transport Layer Security Protocol), SSH (Secure Shell), IPSec (Internet Protocol Security). When the client only needs to use random numbers as security protection, the application of quantum random numbers in the quantum random number resources obtained from the first cluster or the second cluster may be directly used for security protection. When the client needs to generate pseudo-random numbers using a pseudo-random number algorithm, the quantum random number resources obtained from the first cluster or the second cluster may be used as random number seeds, and pseudo-random numbers may be generated through a pseudo-random number generation algorithm. Because the seeds of the generated pseudo-random numbers include quantum random number resources, the pseudo-random numbers have better security.
[0177] When the client (which can be understood as a virtual machine) is in a virtual technology environment, due to the lack of external devices, the entropy source data in the client entropy pool is scarce, resulting in low quality of the generated random numbers and poor security. The entropy source can be understood as an external device that provides entropy, entropy can be understood as seed data for generating random numbers, and entropy source data can be understood as entropy. Therefore, it is necessary to ensure that there is enough entropy in the virtual machine entropy pool. Therefore, in this embodiment, the client may also include:
[0178] Adding the obtained quantum random number resource as entropy source data to an entropy pool;
[0179] Determine the entropy source data as a random number seed;
[0180] A random number sequence is generated according to the random number seed.
[0181] The obtained quantum random number resource is added to the entropy pool as entropy source data. In this embodiment, the client can add the quantum random number resource obtained from the distributed quantum random number service platform or the central quantum random number service platform to the entropy pool based on the RNDADDENTROPY request provided by the ioctl interface. Ioctl is a function in the device driver that manages the I / O channel of the device. The program can send commands, parameter configuration and other information to the device through ioctl.
[0182] To further ensure the quality of the generated random numbers, the client can also mix the entropy source data added to the entropy pool with the existing entropy source data in the entropy pool. In this embodiment, the client can mix the acquired quantum random number resources with the existing entropy source data in the entropy pool through a linear feedback shift register (LFSR), and use the mixed entropy source data as the random number seed of the random number generation algorithm, and then generate the random number sequence. In this embodiment, the random number generation algorithm can be an algorithm involved in a pseudo-random number generator, such as a cryptographically secure pseudo-random number generator (CSPRNG: Cryptographically Secure Pseudo-Random Number Generator). Common algorithms used in pseudo-random number generators include MD5 or SHA1 and other standards, which can convert information of indefinite length into fixed-length 128-bit or 160-bit binary random numbers. Of course, it can also be a true random number generator (TRNG, True Random Number Generator), a pseudo-random number generator (PRNG, Pseudo Random Number Generator), etc.
[0183] The security application software of the client can obtain the generated pseudo-random number through the / dev / urandom interface or the / dev / random interface; the client system kernel can obtain the generated pseudo-random number through the get_random_bytes() interface; wherein, / dev / urandom and / dev / random are interfaces of the random number generator deployed in the client provided by the operating system, pseudo-random numbers are obtained through the / dev / urandom interface, and true random numbers (quantum random numbers) are obtained through the / dev / random interface.
[0184] It should be noted here that whether the acquired quantum random number resource needs to be added to the entropy pool as entropy source data can be determined by determining whether the existing entropy source data in the entropy pool meets the adding condition. If it does, it means that the existing entropy source data is insufficient, and the acquired quantum random number is added to the entropy pool as entropy source data. Otherwise, it does not need to be added.
[0185] The above is a description of the client in the embodiment of the quantum random number service management system of the present application.
[0186] It can be understood that when the client obtains quantum random number resources from the central quantum random number service platform or the distributed quantum random number service platform, in order to ensure the optimal use of quantum random number resources and maximize the throughput while avoiding overload, this embodiment may also include:
[0187] The load balancing server may be respectively arranged in the first cluster and the second cluster, so that when the client obtains quantum random number resources from the central quantum random number service platform deployed in the first cluster, the central quantum random number service platform that can currently provide quantum random number resources may be selected according to the running state of the central quantum random number service platform deployed in the first cluster, and the quantum random number resources may be provided to the client, thereby achieving load balancing and avoiding delay or reducing delay; or, when the client obtains quantum random number resources from the distributed quantum random number service platform deployed in the second cluster, the distributed quantum random number service platform that can currently provide quantum random number resources may be selected according to the running state of the distributed quantum random number service platform deployed in the second cluster, thereby achieving load balancing and avoiding delay or reducing delay.
[0188] When the client obtains quantum random number resources from the central quantum random number service platform in the first cluster, in order to optimize resource usage and maximize throughput while avoiding overload, a central quantum random number service platform that can currently provide quantum random number resources is selected in the first cluster according to the operating status of the central quantum random number service platform, thereby achieving load balancing.
[0189] The above content is a specific description of an embodiment of a quantum random number service management system provided by this application. Based on the above specific content, the working principle of the embodiment of the quantum random number service management system is summarized as follows:
[0190] The central quantum random number service platform deployed in the first cluster stores the quantum random number resources obtained from the quantum random number generating device in the locally deployed quantum random number storage pool. The central quantum random number service platform will provide quantum random number related services to the requester according to the received quantum random number acquisition request, such as providing quantum random number resources, and the provision method can be implemented by calling the RESTful API interface. In this embodiment, the requester can be a client or a distributed quantum random number service platform in the second cluster. When the requester is the distributed quantum random number service platform, the distributed quantum random number service platform will store the quantum random number resources obtained from the central quantum random number service platform in the local random number storage pool corresponding to the distributed quantum random number service platform for the requester of the quantum random number to obtain, in order to improve the efficiency and performance of obtaining quantum random numbers.
[0191] When the requesting party is the client, based on the first cluster and the second cluster, the client can select the distributed quantum random number service platform in the second cluster that is closer to obtain quantum random number resources according to the acquisition efficiency and performance. Furthermore, when the client obtains quantum random number resources through the distributed quantum random number service platform deployed in the second cluster, it can also select between the distributed quantum random number service platforms according to the distance and select the distributed quantum random number service platform that meets the distance requirement. In other words, the client can obtain quantum random number resources from the distributed quantum random number service platform located in the local computer room nearby.
[0192] The client can directly apply the acquired quantum random number resources according to application requirements. Of course, the client can also use the quantum random number in the acquired quantum random number resource as a seed to regenerate the required random number using the random number algorithm provided by the application. The regenerated random number is more secure than the random number generated by the traditional pseudo-random number generator because it uses the quantum random number as a seed.
[0193] In view of the above, this application also provides a method for providing quantum random number services. Figure 1 refer to Figure 3 As shown, Figure 3 It is a flow chart of an embodiment of a method for providing a quantum random number service provided by the present application; the embodiment of the providing method is described from the perspective of a central quantum random number service platform deployed in the first cluster. Of course, the provision of quantum random number services can also be provided by a provider with quantum random number resources, such as: the above-mentioned distributed quantum random number service platform (described in detail below) or other servers or clients storing quantum random number resources, etc. Therefore, the provider of quantum random number services is not limited to the central quantum random number service platform given in this embodiment. Next, this embodiment is described in detail, and this embodiment includes:
[0194] Step S301: Based on the central quantum random number service platform, obtain the quantum random number generated by the quantum random number generating device connected to the physical host;
[0195] The purpose of step S301 is to obtain quantum random numbers. In this embodiment, considering that in the face of application environments such as virtual machines or containers, since resources are shared, there are great security risks in obtaining quantum random numbers through connection with quantum random number generators, and since the price of quantum random number generators is higher than that of traditional random number generators, in large-scale deployment scenarios, it will inevitably increase costs. Therefore, the central quantum random number service platform is used to provide quantum random number services, and the quantum random number generator is connected to the physical host corresponding to the central quantum random number service platform. The central quantum random number service platform does not have a virtual environment, and the quantum random number generator is not connected to the client (the client can also be understood as a virtual machine).
[0196] In this embodiment, for a physical host, it can be connected to one or more quantum random number generating devices, and the quantum random number generating devices can be of different models or from different manufacturers, or of the same model or from the same manufacturer. The physical host can also be one or more, and the number of central quantum random number service platforms can match the number of physical hosts. Then, when obtaining the quantum random number generated by the quantum random number generating device, it can be obtained through the device interface provided by different quantum random number generating devices.
[0197] It can be understood that in this embodiment, one central quantum random number service platform corresponds to one physical host, and one physical host is connected to two quantum random number generating devices. In actual applications, the number of central quantum random number service platforms, physical hosts, and quantum random number generating devices, as well as the deployment method can be adjusted without being limited by the above embodiment.
[0198] Based on the deployment mode in this embodiment, the specific implementation process of step S301 may include:
[0199] Step S301-1: when the physical host is connected to at least two quantum random number generating devices, the quantum random numbers generated by different quantum random number generating devices are respectively obtained.
[0200] Step S302: storing the obtained quantum random number as a quantum random number resource in a random number storage pool; wherein the random number storage pool is used to store the quantum random number obtained by the quantum random number generating device;
[0201] The purpose of step S302 is to store the acquired quantum random number resources in a random number storage pool corresponding to the central quantum random number service platform.
[0202] In this embodiment, the number of deployed random number storage pools matches the number of the quantum random number service platforms. Of course, the quantum random numbers obtained by all deployed quantum random number service platforms can also be stored through a shared random number storage pool.
[0203] Based on the above step S301-1, the specific implementation process of step S302 may include:
[0204] Step S302-1: Mixing the quantum random numbers obtained respectively to obtain a random number sequence;
[0205] Step S302-2: storing the random number sequence as the quantum random number resource in the random number storage pool.
[0206] Step S303: In response to the quantum random number resource request, the central quantum random number service platform provides the quantum random number resource.
[0207] The purpose of step S303 is to provide the quantum random number resource.
[0208] The specific implementation process of step S303 may include:
[0209] Step S303-1: Determine the central quantum random number service platform that can provide quantum random number resource services according to the quantum random number resource request;
[0210] Step S303-2: providing the quantum random number resource to the requester of the quantum random number resource request according to the determined central quantum random number service platform.
[0211] When the quantum random number resource is provided based on the quantum random number resource request, the quantum random number resource can be provided by calling a RESTful API interface. For the RESTful API interface, reference can be made to the description in the embodiment of the quantum random number service management system provided in this application, which will not be repeated here.
[0212] It should be noted that when there are at least two central quantum random number service platforms, the central quantum random number service platform that provides the quantum random number resources can be selected according to the operating status of the central quantum random number service platform, so as to achieve the purpose of load balancing and avoid response delays or reduce delays.
[0213] The description of the embodiment of the method for providing a quantum random number service provided by the present application is only a summary description. For the specific content, please refer to the description of the embodiment of the quantum random number service management system mentioned above, and no repetitive description will be made here.
[0214] The above is a specific description of an embodiment of a method for providing a quantum random number service provided by the present application. Corresponding to the embodiment of a method for providing a quantum random number service provided above, the present application also discloses an embodiment of a device for providing a quantum random number service. Please refer to Figure 4 Since the device embodiment is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The device embodiment described below is only illustrative.
[0215] like Figure 4 As shown, an embodiment of a device for providing a quantum random number service provided by the present application includes:
[0216] An acquisition unit 401 is used to acquire a quantum random number generated by a quantum random number generating device connected to a physical host based on a central quantum random number service platform;
[0217] The acquisition unit 401 may specifically include:
[0218] The calling interface subunit is used to obtain the quantum random number generated by the quantum random number generating device by calling the device interface provided by the quantum random number generating device connected to the physical host.
[0219] The acquisition unit 401 may be specifically configured to respectively acquire the quantum random numbers generated by different quantum random number generation devices when there are at least two quantum random number generation devices connected to the physical host.
[0220] A storage unit 402 is used to store the obtained quantum random number as a quantum random number resource in a random number storage pool; wherein the random number storage pool is used to store the quantum random number obtained by the quantum random number generating device;
[0221] The storage unit 402 may specifically include:
[0222] A mixing processing subunit, used for mixing the respectively acquired quantum random numbers to obtain a random number sequence;
[0223] A storage subunit is used to store the random number sequence as the quantum random number resource in the random number storage pool.
[0224] The providing unit 403 is configured to respond to the quantum random number resource request, and the central quantum random number service platform provides the quantum random number resource.
[0225] The providing unit 403 may specifically include:
[0226] A determination subunit, configured to determine the central quantum random number service platform capable of providing quantum random number resource services according to the quantum random number resource request;
[0227] A providing subunit is used to provide the quantum random number resource to the requester of the quantum random number resource request according to the central quantum random number service platform determined by the determining subunit.
[0228] The above is a brief description of an embodiment of a device for providing a quantum random number service provided by the present application. For a specific description of the embodiment of the providing device, reference may be made to the content of an embodiment of a method for providing a quantum random number service provided by the present application, which will not be repeated here.
[0229] This application also provides a method for requesting quantum random number services. Please refer to Figure 5 As shown, Figure 5 It is a flowchart of an embodiment of a request method for a quantum random number service provided by the present application; in this embodiment, it is mainly described from the perspective of a client requesting to obtain a quantum random number service. In fact, the requester for the quantum random number service is not limited to the client, but can also be other service ends, for example: the distributed quantum random number service platform described above, and the perspective of the distributed quantum random number service platform as the requester of the quantum random number service will be described in detail later, which is temporarily introduced here. Of course, the requester for the quantum random number service can also be deployed inside or outside the data center, or other end sides within the network that have demand for quantum random number services. Therefore, the requester for the quantum random number service is not limited to the client mentioned in this embodiment. In this embodiment, it includes:
[0230] Step S501: Sending a request to obtain quantum random number resources;
[0231] The purpose of step S501 is to obtain quantum random number resources, so it is necessary to send an acquisition request to the provider of quantum random number services. In this embodiment, the provider of quantum random number services can be a central quantum random number service platform in the first cluster or a distributed quantum random number service platform in the second cluster.
[0232] It can be understood that when the client sends an acquisition request to the distributed quantum random number service platform, if the quantum random number resources in the random number storage pool of the distributed quantum random number service platform are insufficient, the acquisition request can be forwarded to the central quantum random number service platform through the distributed quantum random number service platform.
[0233] Step S502: obtaining a quantum random number resource provided by a central quantum random number service platform in response to the acquisition request, or obtaining the quantum random number resource provided by a distributed quantum random number service platform in response to the acquisition request; wherein the quantum random number resource provided by the distributed quantum random number service platform comes from the quantum random number resource provided by the central quantum random number service platform;
[0234] When the client in step S502 obtains quantum random number resources from the central quantum random number service platform or the distributed quantum random number service platform, it can do so by calling a RESTful API interface. For the RESTful API interface, reference may be made to the contents of the above-mentioned quantum random number service management system embodiment described in this application. Here, only a brief description of the Restful API (REpresentational State Transfer) interface is given, which may also be an API with a REST style, based on HTTP, and may be defined in XML format or JSON format.
[0235] In order to improve the response speed and avoid delays, the client can select the distributed quantum random number service platform that meets the distance requirements according to the distance between the client and the distributed quantum random number service platform. That is, the client can obtain quantum random number resources from the distributed quantum random number service platform located in the local computer room.
[0236] Of course, considering the load balancing of the distributed quantum random number service platform, the client can also obtain quantum random number resources based on the distributed quantum random number service platform that can provide quantum random number services according to the running state of the distributed quantum random number service platform. Similarly, when the client obtains quantum random number resources from the central quantum random number service platform, it can also obtain quantum random number resources based on the central quantum random number service platform that can provide quantum random number services according to the running state of the central quantum random number service platform. Thereby, load balancing can be achieved between central quantum random number service platforms; or load balancing can be achieved between distributed quantum random number service platforms.
[0237] After the client obtains the quantum random number resource, if the application requirements on the client side need to regenerate random numbers, then the random number generation algorithm deployed mainly according to the application requirements will regenerate the random numbers. However, random number generation usually depends on the state of one or more hardware components in the computer, so for the client, it lacks external devices, which results in less entropy source data in the entropy pool when generating random numbers. Entropy source data is a quantitative standard for measuring the randomness or unpredictability of random numbers, and is also an important parameter for extracting random characteristics from the original signal. Therefore, when there is less entropy source data in the entropy pool, it will affect the randomness of the generated random numbers, so it also includes:
[0238] The obtained quantum random number resource is used as entropy source data and added to the entropy pool;
[0239] Determine the entropy source data as a random number seed;
[0240] A random number sequence is generated according to the random number seed.
[0241] The obtained quantum random number resource is added to the entropy pool as entropy source data. In this embodiment, the client may add the quantum random number resource obtained from the distributed quantum random number service platform or the central quantum random number service platform to the entropy pool based on the RNDADDENTROPY request provided by the ioctl interface.
[0242] To further ensure the quality of the generated random numbers, the client can also mix the entropy source data added to the entropy pool with the existing entropy source data in the entropy pool. In this embodiment, the client can mix the acquired quantum random number resources with the existing entropy source data in the entropy pool through a linear feedback shift register (LFSR), and use the mixed entropy source data as a random number seed of the random number generation algorithm, and then generate the random number sequence. In this embodiment, the random number generation algorithm can be an algorithm involved in a pseudo-random number generator, such as a pseudo-random number generator (CSPRNG: Cryptographically Secure Pseudo-Random Number Generator). Common algorithms used in the pseudo-random number generator include MD5 or SHA1 and other standards, which can convert variable-length information into fixed-length 128-bit or 160-bit binary random numbers.
[0243] Step S503: According to application requirements for the quantum random number resource, the quantum random number resource is provided through an interface matching the application requirements.
[0244] The security application software of the client can obtain the generated pseudo-random number through the / dev / urandom interface or the / dev / random interface; the client system kernel can obtain the generated pseudo-random number through the get_random_bytes() interface; wherein, / dev / urandom and / dev / random are interfaces of the random number generator deployed in the client provided by the operating system, pseudo-random numbers are obtained through the / dev / urandom interface, and true random numbers (quantum random numbers) are obtained through the / dev / random interface.
[0245] When the client provides random numbers to application software with application requirements, it can provide corresponding services according to different application requirements. For specific content, please refer to the description of the above-mentioned quantum random number service management system embodiment, which will not be repeated here.
[0246] Based on the above content, this application also provides a request device for quantum random number service, please refer to Figure 6 As shown, Figure 6 1 is a schematic diagram of a structure of a request device embodiment of a quantum random number service provided by the present application. The request device embodiment corresponds to the above-mentioned request method embodiment. Therefore, the description of the request device embodiment is only an illustrative description. For specific contents, reference can be made to the description of the above-mentioned request method embodiment and the quantum random number service management system embodiment. The request device embodiment includes:
[0247] A sending unit 601 is used to send a request for obtaining a quantum random number resource;
[0248] An acquisition unit 602 is used to acquire the quantum random number resource provided by the central quantum random number service platform in response to the acquisition request, or to acquire the quantum random number resource provided by the distributed quantum random number service platform in response to the acquisition request; wherein the quantum random number resource provided by the distributed quantum random number service platform comes from the quantum random number resource provided by the central quantum random number service platform;
[0249] The providing unit 603 is used to provide the quantum random number resource through an interface matching the application requirement according to the application requirement of the quantum random number resource.
[0250] The acquisition unit 602 can be specifically used to acquire the quantum random number resources provided by the central quantum random number service platform or the quantum random number resources provided by the distributed quantum random number service platform by calling a RESTful API interface.
[0251] This embodiment also includes:
[0252] An adding unit, used to add the acquired quantum random number resource as entropy source data into an entropy pool;
[0253] A determination unit, configured to determine the entropy source data as a random number seed;
[0254] A generating unit is used to generate a random number sequence according to the random number seed.
[0255] It also includes: a mixing unit, which is used to mix the entropy source data added to the entropy pool with the existing entropy source data in the entropy pool.
[0256] The determining unit is specifically configured to determine the random number seed of the random number generation algorithm according to the entropy source data mixed in the mixing unit.
[0257] The providing unit 603 is specifically configured to provide the random number sequence through an interface matching the application requirement according to the application requirement for the quantum random number resource.
[0258] The above is a description of an embodiment of a method and device for requesting a quantum random number service provided by the present application from the perspective of the client side. The specific content can be combined with the specific description of the above embodiment of the quantum random number service management system.
[0259] In combination with the above content, this application also provides a request method for quantum random number service. The request method is described from the perspective of the distributed quantum random number service platform in the second cluster. Please refer to Figure 7 As shown, Figure 7 : is a flowchart of an embodiment of a request method for a quantum random number service provided by the present application, and the request method embodiment includes:
[0260] Step S701: Determine whether the storage capacity of the quantum random number resources stored in the random number storage pool corresponding to the distributed quantum random number service platform meets the set resource storage capacity requirement;
[0261] The purpose of step S701 is to know whether the quantum random number resources stored in the local random number storage pool corresponding to the distributed quantum random number service platform meet the resource storage requirements. Then, the trigger condition for determining the action can be triggered by receiving a quantum random number acquisition request sent by a client or other end side or by a set monitoring period; of course, it can also be triggered by real-time monitoring. Therefore, the specific implementation process of step S701 may include:
[0262] Step S701-1: The distributed quantum random number service platform determines, according to the received quantum random number acquisition request, whether the storage capacity of the quantum random number resources stored in the random number storage pool corresponding to the distributed quantum random number service platform meets the set resource storage capacity requirement;
[0263] or,
[0264] Step S701-2: According to the set monitoring period, determine whether the storage capacity of the quantum random number resources stored in the random number storage pool corresponding to the distributed quantum random number service platform meets the set resource storage capacity requirement.
[0265] Step S702: If not satisfied, send a quantum random number resource request to the central quantum random number service platform;
[0266] In step S702, when the quantum random number resources in the local random number storage pool corresponding to the distributed quantum random number service platform do not meet the requirements, the distributed quantum random number service platform will request quantum random number resources from the central quantum random number service platform that provides quantum random number services to supplement the local random number storage pool, thereby ensuring the efficiency of the client in providing quantum random number resources to the distributed quantum random number service platform and improving the response speed.
[0267] The above is a description of the situation where the determination result of step S701 is not satisfied. Then, when the determination result of step S701 is satisfied, the following may also be included:
[0268] According to the received quantum random number resource request, the quantum random number resource is provided. Specifically, the distributed quantum random number service platform directly provides the client with the quantum random number resource stored in the local random number storage pool according to the received quantum random number resource request sent by the client side.
[0269] Step S703: Obtain the quantum random number resource provided by the central quantum random number service platform in response to the quantum random number resource request;
[0270] The specific implementation process of step S703 may be that the distributed quantum random number service platform obtains the quantum random number resource provided by the central quantum random number service platform in response to the quantum random number resource request by calling a RESTful API interface.
[0271] It should be noted that in this embodiment, the distributed quantum random number service platform obtains quantum random number resources from the central quantum random number service platform, and the client in the above embodiment obtains quantum random number resources from the distributed quantum random number service platform, and the client in the above embodiment obtains quantum random number resources from the central quantum random number service platform, all of which can be done by calling the RESTful API interface. Therefore, the client does not need to pay attention to the type interface of the central quantum random number service platform to access the quantum random number generating device, and can obtain quantum random number resources from the central quantum random number service platform or the distributed quantum random number service platform by only calling the RESTful API interface.
[0272] Step S704: storing the acquired quantum random number resource into a random storage pool corresponding to the distributed quantum random number service platform;
[0273] Step S705: In response to the client's request for obtaining the quantum random number resource, providing the quantum random number resource.
[0274] For the distributed quantum random number service platform, it can be deployed in a cluster of a data center, such as the second cluster in the above-mentioned quantum random number service management system embodiment. Multiple distributed quantum random number service platforms can be deployed in the cluster. The cluster can also be deployed in different regions according to demand. The cluster deployed in each region may include multiple distributed quantum random number service platforms. Each distributed quantum random number service platform can correspond to a local random number storage pool or a public random number storage pool. The specific deployment method can be deployed according to at least one of the data center architecture and user needs (client needs). In this embodiment, it is provided that each distributed quantum random number service platform corresponds to a local random number storage pool. However, the specific deployment method is not limited to this embodiment.
[0275] The above is a brief description of an embodiment of a request method for a quantum random number service provided by the present application. For this part of the description, reference may be made to the description of the second cluster involved in the above-mentioned quantum random number service management system embodiment, and no further details will be given here.
[0276] Corresponding to the method embodiment of requesting a quantum random number service provided by the present application, the present application also provides an embodiment of a device embodiment of requesting a quantum random number service, such as Figure 8 As shown, the request device embodiment includes:
[0277] A determination unit 801 is used to determine whether the storage capacity of the quantum random number resources stored in the random number storage pool corresponding to the distributed quantum random number service platform meets the set resource storage capacity requirement;
[0278] The determining unit 801 includes: a first determining subunit or a second determining subunit;
[0279] The first determination subunit is used for the distributed quantum random number service platform to determine, according to the received quantum random number acquisition request, whether the storage capacity of the quantum random number resources stored in the random number storage pool corresponding to the distributed quantum random number service platform meets the set resource storage capacity requirement;
[0280] The second determining subunit is used to determine, according to a set monitoring period, whether the storage capacity of the quantum random number resources stored in the random number storage pool corresponding to the distributed quantum random number service platform meets the set resource storage capacity requirement.
[0281] A sending unit 802 is used to send a quantum random number resource request to a central quantum random number service platform when the determination result of the determining unit is not satisfied;
[0282] An acquisition unit 803 is used to acquire the quantum random number resource provided by the central quantum random number service platform in response to the quantum random number resource request;
[0283] The acquisition unit 803 is specifically used to acquire the quantum random number resource provided by the central quantum random number service platform in response to the quantum random number resource request by calling a RESTful API interface.
[0284] A storage unit 804 is used to store the acquired quantum random number resource into a random storage pool corresponding to the distributed quantum random number service platform;
[0285] The providing unit 805 is configured to provide the quantum random number resource in response to a request from the client to obtain the quantum random number resource.
[0286] The system further comprises: a providing unit, which is used to provide the quantum random number resource according to the received quantum random number resource request when the storage capacity of the quantum random number resource stored in the random number storage pool corresponding to the distributed quantum random number service platform meets the set resource storage capacity requirement. That is, the distributed quantum random number service platform directly provides the quantum random number resource to the requesting party that sends the quantum random number resource request. Based on the above embodiment, in this embodiment, the requesting party of the quantum random number resource request is a client.
[0287] Based on the above content, the present application also provides a computer storage medium for storing data generated by a network platform, and a program for processing the data generated by the network platform;
[0288] When the program is read and executed, the following steps are performed:
[0289] Based on the central quantum random number service platform, obtain the quantum random number generated by the quantum random number generating device connected to the physical host;
[0290] The obtained quantum random number is used as a quantum random number resource and stored in a random number storage pool; wherein the random number storage pool is used to store the quantum random number obtained by the quantum random number generating device;
[0291] In response to a quantum random number resource request, the central quantum random number service platform provides the quantum random number resource;
[0292] Alternatively, perform the following steps:
[0293] Send a request to obtain quantum random number resources;
[0294] Acquire the quantum random number resources provided by the central quantum random number service platform in response to the acquisition request, or acquire the quantum random number resources provided by the distributed quantum random number service platform in response to the acquisition request; wherein the quantum random number resources provided by the distributed quantum random number service platform come from the quantum random number resources provided by the central quantum random number service platform;
[0295] According to application requirements for the quantum random number resource, providing the quantum random number resource through an interface matching the application requirements;
[0296] Alternatively, perform the following steps:
[0297] Determine whether the random number storage pool corresponding to the distributed quantum random number service platform and the storage capacity of the stored quantum random number resources meet the set resource storage capacity requirements;
[0298] If not, a quantum random number resource request is sent to the central quantum random number service platform;
[0299] Acquire the quantum random number resource provided by the central quantum random number service platform in response to the quantum random number resource request;
[0300] The obtained quantum random number resource is stored in a random storage pool corresponding to the distributed quantum random number service platform.
[0301] Based on the above content, the present application also provides an electronic device, such as Fig. 9 As shown, the electronic device embodiment includes:
[0302] Processor 901;
[0303] The memory 902 is used to store a program for processing data generated by the network platform. When the program is read and executed by the processor, the following steps are performed:
[0304] Based on the central quantum random number service platform, obtain the quantum random number generated by the quantum random number generating device connected to the physical host;
[0305] The obtained quantum random number is used as a quantum random number resource and stored in a random number storage pool; wherein the random number storage pool is used to store the quantum random number obtained by the quantum random number generating device;
[0306] In response to a quantum random number resource request, the central quantum random number service platform provides the quantum random number resource;
[0307] Alternatively, perform the following steps:
[0308] Send a request to obtain quantum random number resources;
[0309] Acquire the quantum random number resources provided by the central quantum random number service platform in response to the acquisition request, or acquire the quantum random number resources provided by the distributed quantum random number service platform in response to the acquisition request; wherein the quantum random number resources provided by the distributed quantum random number service platform come from the quantum random number resources provided by the central quantum random number service platform;
[0310] According to application requirements for the quantum random number resource, providing the quantum random number resource through an interface matching the application requirements;
[0311] Alternatively, perform the following steps:
[0312] Determine whether the random number storage pool corresponding to the distributed quantum random number service platform and the storage capacity of the stored quantum random number resources meet the set resource storage capacity requirements;
[0313] If not, a quantum random number resource request is sent to the central quantum random number service platform;
[0314] Acquire the quantum random number resource provided by the central quantum random number service platform in response to the quantum random number resource request;
[0315] The obtained quantum random number resource is stored in a random storage pool corresponding to the distributed quantum random number service platform.
[0316] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0317] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0318] 1. Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include non-transitory media such as modulated data signals and carrier waves.
[0319] 2. Those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems or computer program products. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0320] Although the present application is disclosed as above in the form of a preferred embodiment, it is not intended to limit the present application. Any technical personnel in this field may make possible changes and modifications without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be based on the scope defined by the claims of the present application.
Claims
1. A quantum random number service management system, characterized in that: include: A first cluster and a client; The central quantum random number service platform deployed in the first cluster obtains the quantum random number generated by the quantum random number generating device through the quantum random number generating device connected to the physical host, and stores the quantum random number as a quantum random number resource in a random number storage pool deployed in the first cluster, wherein the central quantum random number service platform provides a quantum random number resource service; The client obtains the quantum random number resource based on the quantum random number resource service provided by the central quantum random number service platform; Wherein, when the central quantum random number service platform obtains the quantum random number, when it is connected to the physical host as at least two quantum random number generating devices, the central quantum random number service platform obtains the quantum random number through the device interface provided by the quantum random number generating device respectively; the central quantum random number service platform performs mixing processing on the quantum random numbers obtained from the at least two quantum random number generating devices to obtain a random number sequence; and stores the random number sequence as the quantum random number resource in the random number storage pool deployed in the first cluster.
2. The quantum random number service management system according to claim 1, characterized in that: Also includes: Cluster 2; The distributed quantum random number service platform deployed in the second cluster obtains the quantum random number resource through the central quantum random number service platform; The distributed quantum random number service platform stores the acquired quantum random number resources in a random number storage pool deployed in the second cluster; The client obtains the quantum random number resource based on the quantum random number resource service provided by the central quantum random number service platform, including: The client obtains the quantum random number resource provided by the central quantum random number service platform to the distributed quantum random number service platform through the distributed quantum random number service platform.
3. The quantum random number service management system according to claim 2, characterized in that: The client obtains, through the distributed quantum random number service platform, the quantum random number resource provided by the central quantum random number service platform to the distributed quantum random number service platform, including: The client selects the distributed quantum random number service platform that meets the distance requirement according to the distance between the client and the distributed quantum random number service platform; The quantum random number resource is obtained through the selected distributed quantum random number service platform.
4. The quantum random number service management system according to claim 2, characterized in that: Also includes: Determining whether the storage capacity of the quantum random number resource stored in the random number storage pool of the distributed quantum random number service platform meets the set resource storage capacity requirement; If not satisfied, the quantum random number resource is obtained from the central quantum random number service platform.
5. The quantum random number service management system according to claim 1, characterized in that: The client also includes: The client adds the acquired quantum random number resource as entropy source data to an entropy pool; Determine the entropy source data as a random number seed; A random number sequence is generated according to the random number seed.
6. The quantum random number service management system according to claim 5, characterized in that: The client also includes: The client mixes the entropy source data added to the entropy pool with the existing entropy source data in the entropy pool; Determining the entropy source data as a random number seed includes: The mixed entropy source data is used as the random number seed of the random number generation algorithm to generate the random number sequence.
7. The quantum random number service management system according to claim 1, characterized in that: Also includes: The load balancing server is used for the client to select the central quantum random number service platform that can provide the quantum random number when obtaining the quantum random number resource based on the quantum random number service provided by the central quantum random number service platform.
8. A method for providing a quantum random number service, characterized in that: include: Based on the central quantum random number service platform, obtain the quantum random number generated by the quantum random number generating device connected to the physical host; The obtained quantum random number is used as a quantum random number resource and stored in a random number storage pool; wherein the random number storage pool is used to store the quantum random number obtained by the quantum random number generating device; In response to a quantum random number resource request, the central quantum random number service platform provides the quantum random number resource; Wherein, in response to the quantum random number resource request, the central quantum random number service platform provides the quantum random number resource, including: determining the central quantum random number service platform that can provide quantum random number resource services according to the quantum random number resource request; and providing the quantum random number resource to the requester of the quantum random number resource request according to the determined central quantum random number service platform.
9. The method for providing quantum random number services according to claim 8, characterized in that: The method of obtaining a quantum random number generated by a quantum random number generating device connected to a physical host based on a central quantum random number service platform includes: The quantum random number generated by the quantum random number generating device is obtained by calling a device interface provided by the quantum random number generating device connected to the physical host.
10. The method for providing quantum random number services according to claim 8, characterized in that: The method of obtaining a quantum random number generated by a quantum random number generating device connected to a physical host based on a central quantum random number service platform includes: When there are at least two quantum random number generating devices connected to the physical host, respectively obtaining the quantum random numbers generated by different quantum random number generating devices; The step of storing the acquired quantum random number as a quantum random number resource in a random number storage pool includes: Mixing the respectively obtained quantum random numbers to obtain a random number sequence; The random number sequence is stored in the random number storage pool as the quantum random number resource.
11. A device for providing quantum random number services, characterized in that: include: An acquisition unit, used for acquiring a quantum random number generated by a quantum random number generating device connected to a physical host based on a central quantum random number service platform; A storage unit, used to store the obtained quantum random number as a quantum random number resource in a random number storage pool; wherein the random number storage pool is used to store the quantum random number obtained by the quantum random number generating device; A providing unit, configured to respond to a quantum random number resource request, wherein the central quantum random number service platform provides the quantum random number resource; The providing unit is further used to respond to the quantum random number resource request through the following steps, and the central quantum random number service platform provides the quantum random number resource: according to the quantum random number resource request, determine the central quantum random number service platform that can provide quantum random number resource services; according to the determined central quantum random number service platform, provide the quantum random number resource to the requester of the quantum random number resource request.
12. A method for requesting a quantum random number service, characterized in that: include: Send a request to obtain quantum random number resources; Acquire the quantum random number resources provided by the central quantum random number service platform in response to the acquisition request, or acquire the quantum random number resources provided by the distributed quantum random number service platform in response to the acquisition request; wherein the quantum random number resources provided by the distributed quantum random number service platform come from the quantum random number resources provided by the central quantum random number service platform; According to application requirements for the quantum random number resource, providing the quantum random number resource through an interface matching the application requirements; Wherein, obtaining the quantum random number resources provided by the central quantum random number service platform in response to the acquisition request includes: obtaining the central quantum random number service platform that can provide quantum random number resource services determined by the central quantum random number service platform according to the quantum random number resource request; and providing the quantum random number resources to the requester of the quantum random number resource request according to the determined central quantum random number service platform.
13. The method for requesting a quantum random number service according to claim 12, characterized in that: Also includes: The obtained quantum random number resource is used as entropy source data and added to the entropy pool; Determine the entropy source data as a random number seed; A random number sequence is generated according to the random number seed.
14. The method for requesting a quantum random number service according to claim 13, characterized in that: Also includes: Mixing the entropy source data added to the entropy pool with the existing entropy source data in the entropy pool; Determining the entropy source data as a random number seed includes: Determine the random number seed of the random number generation algorithm according to the mixed entropy source data; The providing the quantum random number resource through an interface matching the application requirement according to the application requirement of the quantum random number resource includes: According to application requirements for the quantum random number resource, the random number sequence is provided through an interface matching the application requirements.
15. A device for requesting a quantum random number service, characterized in that: include: A sending unit, used for sending a request for obtaining a quantum random number resource; An acquisition unit, configured to acquire the quantum random number resources provided by the central quantum random number service platform in response to the acquisition request, or to acquire the quantum random number resources provided by the distributed quantum random number service platform in response to the acquisition request; wherein the quantum random number resources provided by the distributed quantum random number service platform are from the quantum random number resources provided by the central quantum random number service platform; A providing unit, configured to provide the quantum random number resource through an interface matching the application requirement according to the application requirement for the quantum random number resource; The acquisition unit is used to acquire the quantum random number resources provided by the central quantum random number service platform in response to the acquisition request through the following steps: acquiring the central quantum random number service platform that can provide quantum random number resource services according to the quantum random number resource request; and providing the quantum random number resources to the requester of the quantum random number resource request according to the determined central quantum random number service platform.
16. A method for requesting a quantum random number service, characterized in that: include: Determine whether the random number storage pool corresponding to the distributed quantum random number service platform and the storage capacity of the stored quantum random number resources meet the set resource storage capacity requirements; If not, a quantum random number resource request is sent to the central quantum random number service platform; Acquire the quantum random number resource provided by the central quantum random number service platform in response to the quantum random number resource request; Storing the acquired quantum random number resource in a random storage pool corresponding to the distributed quantum random number service platform; In response to a request from a client for obtaining the quantum random number resource, providing the quantum random number resource; Wherein, obtaining the quantum random number resources provided by the central quantum random number service platform in response to the acquisition request includes: obtaining the central quantum random number service platform that can provide quantum random number resource services determined by the central quantum random number service platform according to the quantum random number resource request; and providing the quantum random number resources to the requester of the quantum random number resource request according to the determined central quantum random number service platform.
17. The method for requesting a quantum random number service according to claim 16, characterized in that: The step of determining whether the storage capacity of the quantum random number resources stored in the random number storage pool corresponding to the distributed quantum random number service platform meets the set resource storage capacity requirement includes: The distributed quantum random number service platform determines, according to the received quantum random number acquisition request, whether the storage capacity of the quantum random number resources stored in the random number storage pool corresponding to the distributed quantum random number service platform meets the set resource storage capacity requirement; or, According to the set monitoring period, determine whether the storage capacity of the quantum random number resources stored in the random number storage pool corresponding to the distributed quantum random number service platform meets the set resource storage capacity requirements.
18. The method for requesting a quantum random number service according to claim 16, characterized in that: Also includes: If the storage capacity of the quantum random number resources stored in the random number storage pool corresponding to the distributed quantum random number service platform meets the set resource storage capacity requirement, the quantum random number resources are provided according to the received quantum random number resource request.
19. A device for requesting a quantum random number service, characterized in that: include: A determination unit, used to determine whether the storage capacity of the quantum random number resources stored in the random number storage pool corresponding to the distributed quantum random number service platform meets the set resource storage capacity requirement; A sending unit, configured to send a quantum random number resource request to a central quantum random number service platform when the determination result of the determining unit is not satisfied; An acquisition unit, configured to acquire the quantum random number resource provided by the central quantum random number service platform in response to the quantum random number resource request; A storage unit, used to store the acquired quantum random number resource into a random storage pool corresponding to the distributed quantum random number service platform; A providing unit, configured to provide the quantum random number resource in response to a request from a client to obtain the quantum random number resource; The acquisition unit is used to acquire the quantum random number resources provided by the central quantum random number service platform in response to the acquisition request through the following steps: acquiring the central quantum random number service platform that can provide quantum random number resource services according to the quantum random number resource request; and providing the quantum random number resources to the requester of the quantum random number resource request according to the determined central quantum random number service platform.
20. A computer storage medium for storing data generated by a network platform and a program for processing the data generated by the network platform; When the program is read and executed, the following steps are performed: Based on the central quantum random number service platform, obtain the quantum random number generated by the quantum random number generating device connected to the physical host; The obtained quantum random number is used as a quantum random number resource and stored in a random number storage pool; wherein, The random number storage pool is used to store the quantum random number obtained by the quantum random number generating device; In response to a quantum random number resource request, the central quantum random number service platform provides the quantum random number resource; Alternatively, perform the following steps: Send a request to obtain quantum random number resources; Acquire the quantum random number resources provided by the central quantum random number service platform in response to the acquisition request, or acquire the quantum random number resources provided by the distributed quantum random number service platform in response to the acquisition request; wherein the quantum random number resources provided by the distributed quantum random number service platform come from the quantum random number resources provided by the central quantum random number service platform; According to application requirements for the quantum random number resource, providing the quantum random number resource through an interface matching the application requirements; Alternatively, perform the following steps: Determine whether the random number storage pool corresponding to the distributed quantum random number service platform and the storage capacity of the stored quantum random number resources meet the set resource storage capacity requirements; If not, a quantum random number resource request is sent to the central quantum random number service platform; Acquire the quantum random number resource provided by the central quantum random number service platform in response to the quantum random number resource request; Storing the acquired quantum random number resource in a random storage pool corresponding to the distributed quantum random number service platform; Wherein, obtaining the quantum random number resources provided by the central quantum random number service platform in response to the acquisition request includes: obtaining the central quantum random number service platform that can provide quantum random number resource services determined by the central quantum random number service platform according to the quantum random number resource request; and providing the quantum random number resources to the requester of the quantum random number resource request according to the determined central quantum random number service platform.
21. An electronic device, comprising: processor; The memory is used to store a program for processing data generated by the network platform, and when the program is read and executed by the processor, the following steps are performed: Based on the central quantum random number service platform, obtain the quantum random number generated by the quantum random number generating device connected to the physical host; The obtained quantum random number is used as a quantum random number resource and stored in a random number storage pool; wherein the random number storage pool is used to store the quantum random number obtained by the quantum random number generating device; In response to a quantum random number resource request, the central quantum random number service platform provides the quantum random number resource; Alternatively, perform the following steps: Send a request to obtain quantum random number resources; Acquire the quantum random number resources provided by the central quantum random number service platform in response to the acquisition request, or acquire the quantum random number resources provided by the distributed quantum random number service platform in response to the acquisition request; wherein the quantum random number resources provided by the distributed quantum random number service platform come from the quantum random number resources provided by the central quantum random number service platform; According to application requirements for the quantum random number resource, providing the quantum random number resource through an interface matching the application requirements; Alternatively, perform the following steps: Determine whether the random number storage pool corresponding to the distributed quantum random number service platform and the storage capacity of the stored quantum random number resources meet the set resource storage capacity requirements; If not, a quantum random number resource request is sent to the central quantum random number service platform; Acquire the quantum random number resource provided by the central quantum random number service platform in response to the quantum random number resource request; Storing the acquired quantum random number resource in a random storage pool corresponding to the distributed quantum random number service platform; Wherein, obtaining the quantum random number resources provided by the central quantum random number service platform in response to the acquisition request includes: obtaining the central quantum random number service platform that can provide quantum random number resource services determined by the central quantum random number service platform according to the quantum random number resource request; and providing the quantum random number resources to the requester of the quantum random number resource request according to the determined central quantum random number service platform.
