A cluster implementation method and device for massive key management
By decoupling the cryptographic computing cluster and the key management cluster in the cloud computing environment, using multi-level hierarchical storage and the RDMA protocol, it solves the problem of massive key management, improves the efficiency and security of cryptographic computing, and achieves strong scalability and stability. sex.
Patent Information
- Application Number
- CN202410792147.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-19
AI Technical Summary
In a cloud computing environment, massive keys are difficult to manage, difficult to query quickly, and cryptographic operations are inefficient. Traditional solutions based on cloud cryptographic machines face the problems of difficult elastic expansion, high costs, difficult maintenance, and low efficiency.
By decoupling the cryptographic computing cluster and the key management cluster, setting up a cross-cluster communication mechanism and multi-level hierarchical storage, using the RDMA protocol and hardware security module for key management, realizing key caching and multi-level hierarchical storage updates, and providing unified Key management interface and secure key storage service.
It reduces communication delays, improves cryptographic operation performance and efficiency, implements a more secure key management strategy, supports massive key resource management, provides better reliability and stability, and has strong scalability and scalability.
Smart Images

Figure CN118368063B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of key cluster management, and in particular to a cluster implementation method and device for massive key management. Background Art
[0002] With the rapid development of mobile Internet and cloud computing technology, more and more data are processed in the cloud computing environment. Cryptography technology is the core technology to ensure network security. It protects the security of information and information transmission by protecting the confidentiality, integrity and availability of data.
[0003] Cryptographic cloud service is a new cryptographic function delivery model, which is a deep integration of cloud computing technology with cryptographic technologies such as identity authentication, authorized access, transmission encryption, and storage encryption. Cryptographic service providers integrate cryptographic products, cryptographic usage policies, cryptographic service interfaces, and service processes in accordance with the requirements of cloud computing technology architecture, and combine cryptographic system design, deployment, operation and maintenance, management, and billing into a service to solve users' cryptographic application needs. Users no longer need to purchase cryptographic products such as cryptographic hardware or cryptographic systems, but use various cryptographic functions provided in the cloud in a rented manner. Cryptographic cloud services are aimed at scenarios such as key hosting and fast key calculation.
[0004] In this scenario, we face technical problems such as difficulty in managing and quickly querying massive amounts of keys, and reduced cryptographic operation efficiency. Traditional cloud cryptographic machine-based solutions are also gradually facing technical problems such as difficulty in elastic expansion, high cost, difficult maintenance, and low efficiency. Therefore, a new technical solution is urgently needed to solve these technical problems.
[0005] The patent document with publication number CN116781248A discloses an encryption method, device and key management system, which is applied to a first computing node, including: obtaining one or more key factors; using an encryption key to encrypt plaintext data to obtain ciphertext data, wherein the encryption key is obtained based on the one or more key factors and the identifier of the first computing node, the identifier is the identifier of the first computing node or the identifier of the device where the first computing node is located or the identifier of the target processor; the ciphertext data and the identifier of the first computing node are sent to the second computing node. The patent document with publication number CN115549898A discloses a symmetric key management method in a multi-level cross-domain environment, including: a multi-level cross-domain key management hierarchy system, a multi-level cross-domain symmetric key generation and storage mechanism, a multi-level cross-domain symmetric key distribution mechanism and a multi-level cross-domain symmetric key update mechanism. These two technical solutions cannot solve the technical problems recorded above at the same time. Summary of the invention
[0006] In view of the above, the purpose of the present invention is to provide a cluster implementation method and device for massive key management, which decouples the cryptographic operation cluster and the key management cluster, and sets up a cross-cluster communication mechanism and a cache and a multi-level hierarchical storage mechanism, thereby solving the technical problems in the prior art such as high communication delay, difficulty in massive key management, low cryptographic operation efficiency, and difficulty in elastic expansion.
[0007] To achieve the above-mentioned object of the invention, an embodiment of the present invention provides a cluster implementation method for massive key management, comprising the following steps:
[0008] The key management process based on the key management cluster includes: initiating a key management request to the key management process, calling the service of the key management cluster, performing a first analysis on the key management request after verifying the user identity and authority based on the key management request, and performing a key cache and multi-level hierarchical storage update based on the first analysis result;
[0009] The cryptographic operation process based on the cryptographic operation cluster and the key management cluster includes: sending a cryptographic operation request to the cryptographic operation process of the cryptographic operation cluster, performing user identity and authority verification based on the cryptographic operation request, calling the service of the key management cluster through the RDMA protocol, performing a second analysis on the cryptographic operation request, and obtaining a ciphertext key from a cache or multi-level hierarchical storage based on the second analysis result, and returning the ciphertext key or the plaintext key obtained by decrypting the ciphertext key to the cryptographic operation cluster through the RDMA protocol to complete data encryption or decryption.
[0010] Preferably, the services of the key management cluster include:
[0011] The client API service provides a unified calling interface to the outside world and parses the request to obtain the parsing result;
[0012] Massive key management service, which provides a unified key management interface, with identity authentication and access control strategies based on smart password keys, directory structure and index structure for fast reading and writing of massive key files, and creates a key cache layer for data caching and processing key-related services;
[0013] The secure key storage service provides a storage and query interface for massive keys, with multi-level hierarchical storage of keys. The master key is stored in the hardware security module, and the encryption key and user key generated by the key management cluster are stored in the database. The user's managed files are encrypted and stored in the distributed file system. The database includes structured databases, unstructured databases, and distributed databases, and the managed files include massive key files and sensitive files.
[0014] The hardware security module stores the master key, generates true random numbers, and provides an operating environment for secure encryption and decryption of user ciphertext keys.
[0015] Preferably, calling the service of the key management cluster, performing a first analysis on the key management request after verifying the user identity and authority based on the key management request, and performing a cache and multi-level hierarchical storage update of the key based on the first analysis result, including:
[0016] After verifying the user identity and authority of the key management request based on the identity authentication and access control policy of the massive key management service, the load balancing distribution of the call flow is performed, and then the client API service interface is called to perform a first analysis of the key management request. When it is a key modification or query type, a unified key index analysis is performed to obtain a first analysis result including the key index;
[0017] Call the massive key management service and the secure key storage service, search in the cache layer or multi-level hierarchical storage based on the key index to obtain the ciphertext key specified by the index and update it, where the update includes deletion and replacement.
[0018] Preferably, the method further comprises: performing a first analysis on the key management request, and when a new class is added to the key, performing analysis on the directory / file index to obtain a first analysis result including the directory / file index;
[0019] Call the massive key management service and the secure key storage service to create an index of the managed files for the directory / file index based on the directory structure and index structure for fast reading and writing of massive key files, and store it in the cache layer and distributed file system.
[0020] Preferably, it also includes: after the ciphertext key is updated based on the key index and the new storage of the hosted file is added based on the directory / file index, the secure key storage service key cache and the massive key management service key cache are deleted layer by layer in the cache layer to ensure the consistency of the cache and storage data, and finally complete the key management task.
[0021] Preferably, during cryptographic operation, the service of the key management cluster is called through the RDMA protocol, a second analysis is performed on the cryptographic operation request, and the ciphertext key is obtained from the cache or multi-level hierarchical storage based on the second analysis result, including:
[0022] Based on the key management thread, the unified index specified by the user is parsed, and according to the definition of the unified index, the key index or managed file index of the specified user is parsed, and the corresponding key or managed file is queried in the cache based on the key index or managed file index to obtain the ciphertext key.
[0023] Preferably, when the corresponding key or managed file cannot be queried in the cache according to the key index or managed file index, the client API service is called, and the key index or managed file index is transmitted to the client API service interface, and the key index resolution information is re-parsed to obtain the key index resolution information, wherein the index resolution information includes the database code, the database table code, the key index code or the corresponding directory index code, and the file index code;
[0024] Call the massive key management service, and call the secure key storage service based on the index parsing information to search for the corresponding key or managed file from the multi-level hierarchical storage to obtain the ciphertext key.
[0025] Preferably, the method further comprises: synchronously creating a key management thread when the cryptographic operation process is started, and remotely calling a service interface of a key management cluster in the key management thread through an RDMA protocol.
[0026] Preferably, the key management cluster defines a unified 32-bit key index, where bit 0 is the unified index version number, bits 1-10 are specific key index values or hosted file index values, bits 11-15 are storage database table codes or directory index codes, bits 16-19 are storage database type codes or directory index codes, bits 20-21 are index type codes, bits 22-27 are user codes, and other bits are reserved extension fields.
[0027] To achieve the above-mentioned purpose of the invention, an embodiment of the present invention provides a cluster implementation device for massive key management, including:
[0028] A key management module, which is used for a key management process based on a key management cluster, including: initiating a key management request to a key management process, calling a service of the key management cluster, performing a first analysis on the key management request after verifying the user identity and authority based on the key management request, and performing a key cache and multi-level hierarchical storage update based on the first analysis result;
[0029] A cryptographic operation module is used for a cryptographic operation process based on a cryptographic operation cluster and a key management cluster, including: sending a cryptographic operation request to the cryptographic operation process of the cryptographic operation cluster, performing user identity and authority verification based on the cryptographic operation request, calling the service of the key management cluster through the RDMA protocol, performing a second analysis on the cryptographic operation request, and obtaining a ciphertext key from a cache or multi-level hierarchical storage based on the second analysis result, and returning the ciphertext key or the plaintext key obtained by decrypting the ciphertext key to the cryptographic operation cluster through the RDMA protocol to complete data encryption or decryption.
[0030] Compared with the prior art, the present invention has the following beneficial effects:
[0031] The present invention decouples the key management cluster and the cryptographic operation cluster of the cryptographic cloud service, reduces communication delays through a multi-level hierarchical storage system and a cross-cluster communication mechanism based on the RDMA protocol, improves the performance and efficiency of cryptographic operations in the cluster, and can implement a more secure key management strategy, manage more massive key resources, and provide better reliability and stability.
[0032] The present invention can make full use of software and hardware resources and improve the utilization rate of hardware security modules in a key management cluster, especially in the scenario of massive password-related business requests, thereby improving the efficiency of cryptographic operations.
[0033] The key management cluster system performance index of the cryptographic cloud service in the present invention is significantly better than the solution adopted by the traditional hardware-software integrated cryptographic machine with fixed resources and difficult elastic increase and decrease, and has strong scalability and extensibility. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0035] Figure 1 It is a flow chart of a cluster implementation method for massive key management provided by an embodiment;
[0036] Figure 2 is a schematic diagram of the structure of a service of a key management cluster provided in an embodiment;
[0037] Figure 3 It is a schematic diagram of the interaction between the key management cluster, the cryptographic operation cluster and other business clusters provided in the embodiment;
[0038] Figure 4 It is a schematic diagram of the key management process and cryptographic operation process provided by the embodiment;
[0039] Figure 5 It is a structural diagram of a cluster implementation device for massive key management provided by an embodiment. DETAILED DESCRIPTION
[0040] To make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific implementation methods described herein are only used to explain the present invention and do not limit the scope of protection of the present invention.
[0041] like Figure 1As shown, the cluster implementation method for massive key management provided by the embodiment includes the following steps:
[0042] S1, key management process based on key management cluster.
[0043] In the embodiment, the user initiates a computing request to the cryptographic cloud service and specifies a unified key index. When a large number of users initiate their own computing requests, a large number of key management tasks are faced. In the cryptographic cloud service, there are many business clusters, among which the core clusters are the cryptographic operation cluster and the key management cluster. The present invention sets the cryptographic operation cluster and the key management cluster to run decoupled, that is, to perform their respective tasks in different devices, thereby reducing the amount of computing and being able to support massive key management.
[0044] like Figure 3 As shown, the user or other clusters in the password cloud service initiate a key management request to the key management process, and call the service of the key management cluster to implement the key management process, including performing a first analysis of the key management request after verifying the user identity and authority based on the key management request, and caching and multi-level hierarchical storage update of the key based on the first analysis result.
[0045] like Figure 2 As shown in the figure, the services of the key management cluster include client API service (Client API), massive key management service (MKMS, Massive Key Management Service), secure key storage service (SKS, Secure KeyStorage), and hardware security module (HSM).
[0046] Among them, the client API service provides a unified calling interface to the outside world, shields internal differences, and parses the request to obtain the parsing result.
[0047] The massive key management service provides a unified key management interface with identity authentication and access control strategies based on smart password keys (USBKey), directory structures and index structures for fast reading and writing of massive key files, as well as read and write performance. It also creates a key cache layer (CL) for data caching and handles key-related services.
[0048] The secure key storage service provides a storage and query interface for massive keys, with multi-level hierarchical storage of keys. The master key is stored in the hardware security module, the encryption key generated by the key management cluster and the user key are stored in the database (DataBase), and the user's managed files are encrypted and stored in the distributed file system (HDFS). The database includes structured databases, unstructured databases, and distributed databases, and the managed files include massive key files and sensitive files. The constructed multi-level hierarchical storage and cache system uses software and hardware resources to quickly find the corresponding key, thereby improving the access speed of ciphertext keys, managed files, etc., and further improving the efficiency of cryptographic operations.
[0049] In this multi-level hierarchical storage, software and hardware resources are fully utilized, and the master key is stored in the hardware security module to ensure the absolute security of the master key. The encryption key and user key generated by the key management cluster are stored in the database. When the user initiates a data encryption request, if the corresponding encryption key can be found from the cache, the encryption speed and system performance can be significantly improved.
[0050] In the embodiment, the key management cluster defines a unified 32-bit key index, where bit 0 is the unified index version number, bits 1-10 are specific key index values or hosted file index values, bits 11-15 are storage database table codes or directory index codes, bits 16-19 are storage database type codes or directory index codes, bits 20-21 are index type codes, bits 22-27 are user codes, and the remaining bits are reserved extension fields.
[0051] In the embodiment, based on the above-mentioned calling of the key management cluster, the key management process is performed, such as Figure 4 As shown, including:
[0052] The key management process receives the key management request, performs USBKey verification (i.e., identity authentication) and user authority verification on the key management request based on the identity authentication and access control policies of the massive key management service, and then performs load balancing distribution of the call flow. Then, the client API service interface is called to perform a first analysis of the key management request. When it is a key modification or query type, a unified key index analysis is performed to obtain a first analysis result including the key index, and the massive key management service interface and the secure key storage service interface are called to search in the cache layer or multi-level hierarchical storage based on the key index to obtain the ciphertext key specified by the index and update it, where the update includes deletion and replacement.
[0053] Perform a first analysis on the key management request, and when a new class is added to the key, analyze the directory / file index to obtain a first analysis result containing the directory / file index; call the massive key management service interface and the secure key storage service interface, and create an index of managed files for the directory / file index based on the directory structure and index structure for fast reading and writing of massive key files, and store it in the cache layer and distributed file system.
[0054] In the embodiment, during the key management process, after the ciphertext key based on the key index is updated and the new storage of the managed file based on the directory / file index is added, the secure key storage service key cache, the massive key management service key cache, and the client API key cache are deleted layer by layer in the cache layer to ensure that the cache and storage data are consistent, and finally complete the key management task. It should be noted that when the service of the password management cluster is called during the key calculation process, the key calculation cluster key cache also needs to be deleted at this time.
[0055] S2, cryptographic operation process based on cryptographic operation cluster and key management cluster.
[0056] In the embodiment, Figure 3 As shown, the user or other clusters in the cryptographic cloud service sends a cryptographic operation request to the cryptographic operation process of the cryptographic operation cluster. After verifying the user identity and authority based on the cryptographic operation request, the service of the key management cluster is called through the RDMA protocol, and the cryptographic operation request is subjected to a second analysis. Based on the second analysis result, the ciphertext key is obtained from the cache or multi-level hierarchical storage, and the ciphertext key or the plaintext key obtained by decrypting the ciphertext key is returned to the cryptographic operation cluster through the RDMA protocol to complete the encryption or decryption of the data.
[0057] In the embodiment, the cryptographic operation process is performed based on the services of the key management cluster, such as Figure 4 As shown, including:
[0058] A cryptographic operation process receives cryptographic operation requests sent by users or other business clusters in the cryptographic cloud service, and performs the first user authority verification. Specifically, it verifies whether it has cryptographic operation resources based on the login information. At the same time, it synchronously creates a key management thread, parses the unified index specified by the user based on the key management thread, and parses the key index or managed file index of the specified user according to the definition of the unified index, and deserializes the parsed information into the object. After querying the corresponding key or managed file in the cache based on the key index or managed file index, the ciphertext key is obtained.
[0059] When the corresponding key or managed file cannot be queried in the cache based on the key index or managed file index (that is, the key is not hit in the cache layer), the client API service is called, and the key index or managed file index is transmitted to the client API service interface, and re-parsed to obtain the key index resolution information, where the index resolution information includes database code, database table code, key index code or corresponding directory index code, file index code, and unified index code for all keys or files in the key management cluster, which can quickly find the key.
[0060] The key management service interface is called, and based on the index parsing information, the security key storage service interface is called to search for the corresponding key or managed file from the multi-level hierarchical storage to obtain the ciphertext key.
[0061] After obtaining the ciphertext key, decryption can be completed in the hardware security module of the key management cluster to obtain the plaintext key, and the plaintext key can be fed back to the cryptographic operation process of the cryptographic operation cluster through the RDMA protocol to encrypt or decrypt data based on the plaintext key.
[0062] After obtaining the ciphertext key, the ciphertext key can be directly fed back to the cryptographic operation process of the cryptographic operation cluster through the RDMA protocol. The cryptographic operation cluster then decrypts the ciphertext key locally through the hardware security module to obtain the plaintext key, and then uses the plaintext key to encrypt or decrypt the data.
[0063] In an embodiment, a key management thread is synchronously created when a cryptographic operation process is started, and a service interface of a key management cluster is remotely called through the low-latency RDMA protocol in the key management thread to obtain a key to participate in the calculation, thereby reducing communication delays and improving cryptographic operation efficiency.
[0064] When faced with small batch computing requests, the user-specified key unified index and the data to be processed can be distributed to the key management cluster, where the specified key is found and the data to be processed is processed. After the plaintext key corresponding to the key unified index is found in the key management cluster to complete the computing request initiated by the user, the ciphertext key corresponding to the plaintext key needs to be updated to the cache, so that it can be directly searched from the cache the next time it is used, saving computing resources and running time.
[0065] Taking the key deletion in a key management process as an example, the above cluster implementation method is explained, including:
[0066] The user initiates a request to the key management process of the cryptographic computing cluster, and the key management process verifies the user's identity and authority through the smart cryptographic key;
[0067] If the user identity and permission verification is passed, the service of the key management cluster is remotely called through the RDMA protocol, and the calling traffic is load balanced and distributed;
[0068] After the distributed traffic reaches the key management cluster, the client API interface service is called to parse the user request. If it is a key modification or query type, a unified index parsing is performed;
[0069] According to the parsing results, call the massive key management service interface and the security key storage service interface to query the specified database, database table, and the ciphertext key of the specified index. After deleting the index key, trigger the multi-level cache update;
[0070] In the multi-level cache, delete the key storage service key cache, key management service key cache, and cryptographic operation cluster key cache layer by layer to ensure that the cache and database data are consistent, and finally complete this key management task.
[0071] like Figure 5 As shown, the embodiment also provides a cluster implementation device 50 for massive key management, including a key management module 51 and a cryptographic operation module 52, wherein the key management module 51 is used for a key management process based on a key management cluster, and the cryptographic operation module 52 is used for a cryptographic operation process based on a cryptographic operation cluster and a key management cluster.
[0072] It should be noted that the cluster implementation device for massive key management provided in the above embodiment should be illustrated by the division of the above functional modules when performing the key management process and the cryptographic operation process. The above functions can be assigned to different functional modules as needed, that is, the internal structure of the terminal or server is divided into different functional modules to complete all or part of the functions described above. In addition, the cluster implementation device for massive key management provided in the above embodiment and the cluster implementation construction method embodiment for massive key management belong to the same concept. The specific implementation process is detailed in the cluster implementation method embodiment for massive key management, which will not be repeated here.
[0073] The cluster implementation method and device for massive key management provided in the embodiment decouple the cryptographic operation cluster and the key management cluster, improve the performance and efficiency of cryptographic operations in the cluster by building a multi-level cache system and a cross-cluster communication mechanism based on the RDMA protocol, and enhance the scalability of the cluster; the identity of the user operating the key management is more securely verified through the intelligent password key. The key management cluster of the present invention can achieve more effective use of software and hardware resources, support users to perform key generation, management, destruction, backup, key hosting, encrypted file hosting and other services, and solve the problems of massive key dispersion, low management efficiency, strong coupling with cryptographic operations, and high resource consumption.
[0074] The specific implementation methods described above provide a detailed description of the technical solutions and beneficial effects of the present invention. It should be understood that the above is only the most preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, supplements and equivalent substitutions made within the scope of the principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A cluster implementation method for massive key management, characterized in that: The following steps are involved: The key management process based on the key management cluster includes: initiating a key management request to the key management process, calling the service of the key management cluster, performing a first analysis on the key management request after verifying the user identity and authority based on the key management request, and performing a key cache and multi-level hierarchical storage update based on the first analysis result; The cryptographic operation process based on the cryptographic operation cluster and the key management cluster includes: sending a cryptographic operation request to the cryptographic operation process of the cryptographic operation cluster, performing user identity and authority verification based on the cryptographic operation request, calling the service of the key management cluster through the RDMA protocol, performing a second analysis on the cryptographic operation request, and obtaining a ciphertext key from a cache or multi-level hierarchical storage based on the second analysis result, and returning the ciphertext key or the plaintext key obtained by decrypting the ciphertext key to the cryptographic operation cluster through the RDMA protocol to complete data encryption or decryption.
2. The cluster implementation method for massive key management according to claim 1, characterized in that: The services of the key management cluster include: The client API service provides a unified calling interface to the outside world and parses the request to obtain the parsing result; Massive key management service, which provides a unified key management interface, has identity authentication and access control strategies based on cryptographic keys, directory structures and index structures for reading and writing massive key files, and creates a key cache layer for data caching and handles key-related services; The secure key storage service provides a storage and query interface for massive keys, with multi-level hierarchical storage of keys. The master key is stored in the hardware security module, and the encryption key and user key generated by the key management cluster are stored in the database. The user's managed files are encrypted and stored in the distributed file system. The database includes structured databases, unstructured databases, and distributed databases, and the managed files include massive key files and sensitive files. The hardware security module stores the master key, generates true random numbers, and provides an operating environment for secure encryption and decryption of user ciphertext keys.
3. The cluster implementation method for massive key management according to claim 2, characterized in that: Call the service of the key management cluster, perform a first analysis on the key management request after verifying the user identity and authority based on the key management request, and perform key caching and multi-level hierarchical storage update based on the first analysis result, including: After verifying the user identity and authority of the key management request based on the identity authentication and access control policy of the massive key management service, the load balancing distribution of the call flow is performed, and then the client API service interface is called to perform a first analysis of the key management request. When it is a key modification or query type, a unified key index analysis is performed to obtain a first analysis result including the key index; Call the massive key management service and the secure key storage service, search in the cache layer or multi-level hierarchical storage based on the key index to obtain the ciphertext key specified by the index and update it, where the update includes deletion and replacement.
4. The cluster implementation method for massive key management according to claim 2, characterized in that: Also includes: Performing a first analysis on the key management request, and when a new class is added to the key, performing analysis on the directory / file index, and obtaining a first analysis result including the directory / file index; Call the massive key management service and the secure key storage service to create an index of the managed files for the directory / file index based on the directory structure and index structure for reading and writing massive key files, and store it in the cache layer and distributed file system.
5. The cluster implementation method for mass key management according to claim 3, characterized in that: Also includes: After the ciphertext key is updated based on the key index, the secure key storage service key cache and the massive key management service key cache are updated layer by layer in the cache layer to ensure that the cached and stored data are consistent, and finally complete this key management task.
6. The cluster implementation method for mass key management according to claim 1, characterized in that: During cryptographic operations, the service of the key management cluster is called through the RDMA protocol to perform a second analysis on the cryptographic operation request, and based on the second analysis result, the ciphertext key is obtained from the cache or multi-level hierarchical storage, including: Based on the key management thread, the unified index specified by the user is parsed, and according to the definition of the unified index, the key index or managed file index of the specified user is parsed, and the corresponding key or managed file is queried in the cache based on the key index or managed file index to obtain the ciphertext key.
7. The cluster implementation method for mass key management according to claim 6, characterized in that: When the corresponding key or managed file cannot be queried in the cache according to the key index or managed file index, the client API service is called, and the key index or managed file index is transmitted to the client API service interface, and the key index resolution information is re-parsed; Call the massive key management service, and call the secure key storage service based on the index parsing information to search for the corresponding key or managed file from the multi-level hierarchical storage to obtain the ciphertext key.
8. The cluster implementation method for mass key management according to claim 1, characterized in that: Also includes: When the cryptographic operation process is started, a key management thread is created synchronously, and the service interface of the key management cluster is remotely called in the key management thread through the RDMA protocol.
9. The cluster implementation method for mass key management according to claim 1, characterized in that: The key management cluster defines a unified 32-bit key index. Bit 0 is the unified index version number, bits 1-10 are the specific key index value or managed file index value, bits 11-15 are the storage database table code or directory index code, bits 16-19 are the storage database type code or directory index code, bits 20-21 are the index type code, bits 22-27 are the user code, and the other bits are reserved for extension fields.
10. A cluster implementation device for massive key management, characterized in that: include: A key management module, which is used for a key management process based on a key management cluster, including: initiating a key management request to a key management process, calling a service of the key management cluster, performing a first analysis on the key management request after verifying the user identity and authority based on the key management request, and performing a key cache and multi-level hierarchical storage update based on the first analysis result; A cryptographic operation module is used for a cryptographic operation process based on a cryptographic operation cluster and a key management cluster, including: sending a cryptographic operation request to the cryptographic operation process of the cryptographic operation cluster, performing user identity and authority verification based on the cryptographic operation request, calling the service of the key management cluster through the RDMA protocol, performing a second analysis on the cryptographic operation request, and obtaining a ciphertext key from a cache or multi-level hierarchical storage based on the second analysis result, and returning the ciphertext key or the plaintext key obtained by decrypting the ciphertext key to the cryptographic operation cluster through the RDMA protocol to complete data encryption or decryption.
Citation Information
Patent Citations
Symmetric key management method in multi-level cross-domain environment
CN115549898A
Encryption method and device and key management system
CN116781248A
Identity-based closed key management method and system
CN107948156A
Password management service platform for intelligent manufacturing
CN112818332A
