Key management method, device and system

By generating and encrypting 256-bit symmetric keys, combining hashing algorithm and TLS1.3 protocol, the security problem of the key management system under network failure is solved, ensuring the security and integrity of data transmission, and realizing the key Effective management and protection.

CN119011253APending Publication Date: 2024-11-22GUANGDONG SOUTHERN COMM CONSTR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411113179.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-14
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

Existing key management systems are difficult to ensure the security and integrity of keys under network failure or external factors, resulting in potential data loss.

Method used

Random number generator is used to generate 256-bit symmetric keys, and the key is securely stored and transmitted through elliptic curve encryption and hashing algorithms. The encryption key is transmitted in combination with the TLS1.3 protocol, and the key destruction command is used in trusted platforms. , use blockchain technology to record operation logs.

Benefits of technology

Effectively protect the confidentiality, integrity and availability of data, prevent data tampering and leakage, ensure that only authorized users access the data, and maintain the integrity and reliability of the data during transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119011253A_ABST
    Figure CN119011253A_ABST
Patent Text Reader

Abstract

The invention discloses a key management method, and relates to the technical field of information management, in particular to a key management method, device and system, and the method comprises the following steps: generating a 256-bit symmetric key by using a random number generator; acquiring a corresponding public key, and performing elliptic curve encryption on the symmetric key according to the public key; calculating a Hash value corresponding to the symmetric key through a Hash algorithm, and storing the Hash value; identifying the obtained request information, and verifying the identity and / or authority of the user; if the acquired request information is a key request, retrieving a symmetric key corresponding to the key request and a stored hash value; matching verification is carried out through the hash value; the security of network communication and data transmission can be effectively ensured, and the confidentiality and integrity of data can be protected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of information management, and in particular to a key management method, device and system. Background Art

[0002] A key management system is a system that integrates key generation, storage, use, update, and destruction. Its main function is to ensure the security and integrity of keys to protect the confidentiality, integrity, and availability of information systems. A key management server is a hardware security module that combines advanced cryptography technology, has physical security measures, and has an independent key management framework.

[0003] Obtaining the authentication key of the self-encrypting hard disk stored in the external key management server depends on the network environment or other external factors. It is inevitable that the key cannot be obtained from the external key management server due to network failure or other external factors, resulting in potential data loss. Therefore, the current key management security is relatively low.

[0004] Therefore, it is particularly important to ensure the security of network communications and data transmission and to protect the confidentiality and integrity of data. Summary of the invention

[0005] The object of the present invention is to avoid the deficiencies in the prior art and provide a key management technology that ensures the security of network communication and data transmission and protects the confidentiality and integrity of data.

[0006] The purpose of the present invention is achieved through the following technical solutions:

[0007] Therefore, according to one aspect of the present invention, a key management method is provided, comprising the following steps:

[0008] S1: Generate a 256-bit symmetric key using a random number generator;

[0009] S2: Obtain the corresponding public key and perform elliptic curve encryption on the symmetric key based on the public key;

[0010] S3: Calculate the hash value corresponding to the symmetric key through the hash algorithm and store it;

[0011] S4: Identify the obtained request information and verify the user identity and / or authority;

[0012] S5: If the obtained request information is a key request, retrieve the symmetric key corresponding to the key request and the stored hash value;

[0013] S6: Hash the symmetric key and compare the calculated hash value with the stored hash value. If the comparison result matches, the encrypted symmetric key is transmitted through the TLS1.3 protocol.

[0014] Specifically, if the acquired request is a key destruction request, a corresponding key destruction command is called in a corresponding trusted platform module, and the corresponding key data is destroyed by overwriting with random number data multiple times.

[0015] In another specific embodiment, it is identified and determined whether the update deadline has been reached. If so, a key update request is generated, and steps S1 to S3 are repeated.

[0016] Another specific method is to record the operation records in a log; wherein the log is recorded using blockchain technology.

[0017] According to another aspect of the present disclosure, there is provided a key management device, comprising: a hardware security module, a security authentication module, an encryption module, a communication module, a key storage module and a key verification module;

[0018] The hardware security module has a built-in random number generator for generating 256-bit symmetric keys;

[0019] The encryption module is used to perform elliptic curve encryption on the symmetric key according to the public key;

[0020] The key storage module is used to store symmetric keys and corresponding hash values;

[0021] The security authentication module is used to verify the user's identity and / or authority;

[0022] The key verification module is used to retrieve the symmetric key and the stored hash value corresponding to the key request and match them;

[0023] The communication module is used to transmit the encrypted symmetric key and / or management instruction.

[0024] Specifically, it also includes a key destruction module, which is used to call a corresponding key destruction command in a corresponding trusted platform module.

[0025] More specifically, it also includes a key update module, which is used to determine whether the update deadline has arrived, and if so, generate a key update request.

[0026] According to another aspect of the present invention, a key management system is provided, comprising: a key management server, a management terminal, a client, a business system, an external key device and an encryption database; the key management server comprises the above-mentioned key management device;

[0027] The management end, the client end, the business system, the external key device and the encryption database are connected to the communication modules respectively.

[0028] According to another aspect of the present invention, there is provided a computing device, including a memory, a processor, and computer instructions stored in the memory and executable on the processor, wherein the processor implements the steps of the above key management method when executing the instructions.

[0029] According to another aspect of the present invention, a computer-readable storage medium is provided, which stores computer instructions, and when the instructions are executed by a processor, the steps of the above key management method are implemented.

[0030] Beneficial effects of the present invention:

[0031] 1. Ensure the security of network communication and data transmission: Through reasonable key management, the confidentiality, integrity and availability of data can be effectively protected, and data can be prevented from being tampered with, stolen or abused during transmission. This is the most basic and important purpose of the key management system.

[0032] 2. Protect the confidentiality of data: By using encryption algorithms and proper key management, you can ensure that only authorized users can access and use data, preventing data from being leaked to unauthorized users.

[0033] 3. Protect data integrity: By using appropriate encryption algorithms and key management, you can ensure that data is not tampered with or damaged during transmission, maintaining data integrity and reliability.

[0034] 4. Protect data availability: Through reasonable key management, you can ensure that data can be properly accessed and used by authorized users when needed, avoiding data unavailability caused by improper key management.

[0035] 5. Maintain the key relationship between various entities in the system: The key management system is also responsible for maintaining the key relationship between various entities in the system to combat various possible threats, such as key leakage, loss of authenticity, and unauthorized use. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The present invention may be better understood by describing exemplary embodiments disclosed in the present invention in conjunction with the accompanying drawings, in which:

[0037] Figure 1 The figure shows a schematic flow chart of a key management method according to the first embodiment disclosed in the present invention;

[0038] Figure 2 The figure shows a module block diagram of a key management system according to the first embodiment disclosed in the present invention;

[0039] Figure 3What is shown is a schematic diagram of the hardware structure of a computing device according to the first embodiment disclosed in the present invention. DETAILED DESCRIPTION

[0040] The specific embodiments of the present invention will be described below. It should be noted that in the specific description of these embodiments, in order to be concise and clear, this specification cannot provide a detailed description of all the features of the actual embodiments. It should be understood that in the actual implementation of any embodiment, just as in the process of any engineering project or design project, in order to achieve the specific goals of the developer and to meet system-related or business-related restrictions, various specific decisions are often made, and this will also change from one embodiment to another. In addition, it can also be understood that although the efforts made in this development process may be complex and lengthy, for ordinary technicians in the field related to the content disclosed by the present invention, some changes such as design, manufacturing or production based on the technical content disclosed by the present invention are just conventional technical means, and should not be understood as the content of the present invention is insufficient.

[0041] Unless otherwise defined, the technical or scientific terms used in the claims and the specification shall have the usual meaning understood by persons with ordinary skills in the technical field to which the invention belongs. The words "first", "second" and similar words used in the patent application specification and the claims of the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. "One" or "one" and other similar words do not indicate a quantitative limitation, but indicate the existence of at least one. "Include" or "comprises" and other similar words mean that the elements or objects appearing before "include" or "comprises" include the elements or objects listed after "include" or "comprises" and their equivalent elements, and do not exclude other elements or objects. "Connected" or "connected" and other similar words are not limited to physical or mechanical connections, nor are they limited to direct or indirect connections.

[0042] Embodiment 1

[0043] See also Figure 2 This embodiment proposes a key management system, which is intended to provide a secure, reliable and easy-to-manage key service. The system consists of a key management server, a management terminal, a client, and an external device, which together realize the full life cycle management of key generation, storage, distribution, update, and destruction.

[0044] Among them, the key management server is the core of the system, responsible for the centralized management and control of keys. It has a built-in key management device, which includes: hardware security module, security authentication module, encryption module, communication module, key storage module, key verification module, key update module and key destruction module.

[0045] In this embodiment, a key management device may include or be divided into one or more program modules, one or more program modules are stored in a storage medium and executed by one or more processors to complete the present invention and implement the following key management method. The program module referred to in the present invention refers to a series of computer program instruction segments that can complete specific functions, which is more suitable for describing the execution process of a key management device in a storage medium than the program itself. The following description will specifically introduce the functions of each program module in this embodiment:

[0046] The hardware security module has a built-in random number generator for generating 256-bit symmetric keys. The hardware security module uses a FIPS140-2 certified module to ensure that the generated keys comply with international encryption standards; key generation is performed within the hardware security module to ensure that the key generation process is performed in a protected environment, preventing unauthorized access to the key, and ensuring the security of the key during storage and transmission.

[0047] The encryption module is used to perform elliptic curve encryption on the symmetric key according to the public key. Among them, the AES-256 algorithm is used for symmetric encryption to ensure the confidentiality and integrity of the data; the elliptic curve cryptography (ECC) is used for asymmetric encryption to ensure the security of key distribution and protect the key from being accessed by unauthorized users.

[0048] The key storage module is used to store symmetric keys and hash values ​​corresponding to each symmetric key.

[0049] The security authentication module is used to verify the user's identity and / or authority; to authenticate the identity and manage the authority of users and administrators, ensuring that only authorized users can access and operate the keys. The security authentication module also includes the following functions: user authentication, authority management, key authenticity verification, operation auditing, and integration with other security mechanisms.

[0050] 1) User authentication:

[0051] The security authentication module first ensures that only authorized users can access the key management system. This is usually achieved through username and password, biometrics, multi-factor authentication, etc. Through user authentication, unauthorized users can be prevented from accessing the key management system, thereby protecting the confidentiality of the key.

[0052] 2) Permission management:

[0053] For authenticated users, the security authentication module will further determine their permission level in the key management system. This includes which keys the user can access, which operations the user can perform (such as key generation, storage, distribution, revocation, etc.). Through sophisticated permission management, unauthorized users can be prevented from performing sensitive operations and security risks can be reduced.

[0054] 3) Key authenticity verification:

[0055] During key distribution and use, the security authentication module verifies the authenticity of the key. This is usually achieved through technologies such as digital signatures and hash algorithms to ensure that the key has not been tampered with or replaced during transmission and use.

[0056] 4) Operational Audit:

[0057] The security authentication module records all user operations in the key management system, including login, key access, modification, etc. These audit logs can be used to track and discover potential security issues, such as abnormal login, unauthorized operation, etc.

[0058] 5) Through operational auditing, security issues can be discovered and handled in a timely manner, improving the security of the system.

[0059] 6) Integration with other security mechanisms:

[0060] The security authentication module can be integrated with other security mechanisms in the key management system (such as encrypted storage, access control, etc.). By working in conjunction with other security mechanisms, a more complete security protection system can be formed to improve the security of the entire key management system.

[0061] Specifically, the safety authentication module also includes an equipment status monitoring unit, an anomaly detection and alarm unit, an alarm confirmation and urgency assessment unit, a fault location and analysis unit, a countermeasure selection and execution unit, and a fault recording unit.

[0062] The equipment status monitoring unit uses a dedicated equipment status monitoring software or system (such as Seetong software) to monitor the operating status of the equipment in real time. The monitoring scope includes but is not limited to key indicators such as temperature, humidity, voltage, current, etc. of the equipment to ensure that the equipment operates within the normal range.

[0063] The anomaly detection and alarm unit implements anomaly detection of equipment by setting abnormal alarm rules for the equipment. For example, when a key indicator exceeds the preset threshold, it is considered abnormal. Once the equipment status reaches an abnormal condition, the monitoring software should immediately trigger an alarm to notify relevant personnel. The alarm notification method can be SMS, phone, email and other methods to ensure that relevant personnel can receive notifications in time.

[0064] The alarm confirmation and urgency assessment unit will immediately confirm the authenticity and urgency of the alarm after receiving the alarm notification. The confirmation can be made by checking the equipment parameters, historical data, etc., and the impact of the abnormality on the equipment stability and work efficiency can be assessed.

[0065] The fault location and analysis unit can quickly locate the fault by using remote monitoring, fault diagnosis tools, etc. The fault is further analyzed, including the cause of the fault, the scope of the fault, etc., in order to determine the best solution.

[0066] The countermeasure selection and execution unit is used to select corresponding countermeasures according to the fault analysis results, and immediately execute the selected countermeasures to ensure that the device can resume normal operation or at least reduce the impact of the fault on the business. Among them, possible countermeasures include forced key update, device isolation, device repair, component replacement, parameter adjustment, etc.

[0067] The fault recording unit is used to regularly summarize and analyze fault records in order to identify potential problems and improvement points.

[0068] The key verification module is used to retrieve the symmetric key and stored hash value corresponding to the key request and match them to verify whether the password or key entered by the user is correct in order to perform the corresponding operation.

[0069] The key update module updates the key regularly or as needed; by determining whether the update deadline has been reached and generating a key update request to perform key update, the risk of key leakage can be reduced.

[0070] The key destruction module is used to call the corresponding key destruction command in the corresponding trusted platform module.

[0071] The communication module is used to transmit the encrypted symmetric key and / or management instruction. Specifically, the key management server is separately connected with the management terminal, the client terminal and the external device through the communication module.

[0072] The management terminal is an interface or tool used by administrators to monitor and manage the key management server. Administrators can use the management terminal to configure key policies, view key status, and perform key updates and destruction operations.

[0073] The client is the interface or application that users use to interact with the key management server. Users can request keys, verify keys, and use keys for encryption and decryption through the client.

[0074] External devices are other systems or devices connected to the key management server and used to store, use or manage keys, including: external key devices, business systems and / or encryption databases.

[0075] An external key device is a specialized hardware device used to securely store and transmit keys. It can communicate securely with a key management server to obtain, verify, and use keys.

[0076] Business systems refer to various application systems used within an enterprise, such as CRM, ERP, etc. These systems may require the use of keys to encrypt sensitive data or for identity authentication. Business systems can interact with the key management server through APIs or middleware to request and use keys.

[0077] An encrypted database is a database system used to store encrypted data. The encrypted database uses the key provided by the key management server to encrypt and decrypt data to ensure the confidentiality and integrity of the data. The encrypted database can interact with the key management server through a specific database driver or middleware.

[0078] See also Figure 1 The present invention also provides a key management method. When the key management device described above is working, the method is executed, which specifically includes the following steps:

[0079] S1: Generate a 256-bit symmetric key using a random number generator; wherein the symmetric key is based on the Advanced Encryption Standard (AES);

[0080] S2: Obtain the corresponding public key and perform elliptic curve encryption on the symmetric key based on the public key;

[0081] The public key is generated by the corresponding device through a key generation tool (such as ssh-keygen) (a public key and a private key). The public key is used to encrypt data or verify identity, while the private key is used to decrypt data or prove identity. The generated public key will be registered in the key management system.

[0082] S3: Calculate the hash value corresponding to the symmetric key through the hash algorithm and store it;

[0083] S4: Identify the obtained request information and verify the user identity and / or authority;

[0084] S5: If the obtained request information is a key request, retrieve the symmetric key corresponding to the key request and the stored hash value;

[0085] S6: Hash the symmetric key and compare the calculated hash value with the stored hash value. If the comparison result is a match, the encrypted symmetric key is transmitted through the TLS1.3 protocol. Otherwise, the request is rejected and a corresponding alarm message is generated.

[0086] After the device obtains the encrypted symmetric key, it uses the private key to decrypt the symmetric key, and the decrypted symmetric key is stored in the Trusted Platform Module (TPM).

[0087] Specifically, if the request obtained in step S4 is a key destruction request, a corresponding key destruction command is called in the corresponding trusted platform module, and the corresponding key data is destroyed by overwriting with random number data multiple times.

[0088] More specifically, the following steps are also included: identifying and determining whether the update deadline has arrived, and if so, generating a key update request, and repeating steps S1 to S3.

[0089] More specifically, the following steps are also included: recording the operation records in a log; wherein the log is recorded using blockchain technology.

[0090] The present embodiment also provides a computing device, such as a smart phone, tablet computer, laptop computer, desktop computer, rack server, blade server, tower server or cabinet server (including an independent server or a server cluster composed of multiple servers) that can execute programs. The computing device 20 of the present embodiment includes at least but is not limited to: a memory 21 and a processor 22 that can communicate with each other through a system bus, such as Figure 3 It should be pointed out that Figure 3 Computing device 20 is shown only with components 21 - 22 , but it should be understood that implementing all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.

[0091] In this embodiment, the memory 21 (i.e., readable storage medium) includes flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 21 may be an internal storage unit of the computing device 20, such as a hard disk or memory of the computing device 20. In other embodiments, the memory 21 may also be an external storage device of the computing device 20, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card, etc. equipped on the computing device 20. Of course, the memory 21 may also include both the internal storage unit of the computing device 20 and its external storage device. In this embodiment, the memory 21 is generally used to store the operating system and various application software installed on the computing device 20, such as the program code of a key management device in the first embodiment. In addition, the memory 21 can also be used to temporarily store various types of data that have been output or are to be output.

[0092] In some embodiments, the processor 22 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip. The processor 22 is generally used to control the overall operation of the computing device 20. In this embodiment, the processor 22 is used to run the program code stored in the memory 21 or process data, such as running a key management device to implement a key management method of the first embodiment.

[0093] This embodiment also provides a computer-readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a disk, an optical disk, a server, an App application store, etc., on which a computer program is stored, and the program implements a corresponding function when executed by a processor. The computer-readable storage medium of this embodiment is used to store a key management device, and when executed by a processor, a key management method of the first embodiment is implemented.

[0094] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0095] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present invention belong.

[0096] A person of ordinary skill in the art can understand that all or part of the steps carried out in the above-mentioned embodiment method can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable medium. When the program is executed, it includes one of the steps of the method embodiment or a combination thereof.

[0097] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0098] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method.

[0099] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A key management method, characterized in that: The following steps are involved: S1: Generate a 256-bit symmetric key using a random number generator; S2: Obtain the corresponding public key, and perform elliptic curve encryption on the symmetric key according to the public key; S3: Calculate the hash value corresponding to the symmetric key through a hash algorithm and store it; S4: Identify the obtained request information and verify the user identity and / or authority; S5: If the obtained request information is a key request, retrieve the symmetric key and the stored hash value corresponding to the key request; S6: Perform hash calculation on the symmetric key and compare the calculated hash value with the stored hash value. If the comparison result is a match, transmit the encrypted symmetric key via the TLS1.3 protocol.

2. A key management method according to claim 1, characterized in that: The following steps are also included: If the request obtained is a key destruction request, the corresponding key destruction command is called in the corresponding trusted platform module, and the corresponding key data is destroyed by overwriting with random number data multiple times.

3. A key management method according to claim 1, characterized in that: The following steps are also included: Identify and determine whether the update deadline has arrived. If so, generate a key update request and repeat steps S1 to S3.

4. A key management method according to claim 1, characterized in that: The following steps are also included: The operation records are recorded in the log; the log is recorded using blockchain technology.

5. A key management device, using a key management method according to any one of claims 1 to 4, characterized in that: include: Hardware security module, security authentication module, encryption module, communication module, key storage module and key verification module; The hardware security module has a built-in random number generator for generating a 256-bit symmetric key; The encryption module is used to perform elliptic curve encryption on the symmetric key according to the public key; The key storage module is used to store symmetric keys and corresponding hash values; The security authentication module is used to verify the user identity and / or authority; The key verification module is used to retrieve the symmetric key and the stored hash value corresponding to the key request and perform matching; The communication module is used to transmit the encrypted symmetric key and / or management instruction.

6. A key management device according to claim 5, characterized in that: Also includes: The key destruction module is used to call the corresponding key destruction command in the corresponding trusted platform module.

7. A key management device according to claim 6, characterized in that: Also includes: The key update module is used to determine whether the update deadline has arrived, and if so, generate a key update request.

8. A key management system, characterized in that: include: Key management server, management terminal, client, business system, external key device and encryption database; The key management server comprises a key management device according to any one of claims 5 to 7; The management terminal, the client terminal, the business system, the external key device and the encryption database are respectively connected to the communication module.

9. A computing device comprising a memory, a processor, and computer instructions stored in the memory and executable on the processor, characterized in that: When the processor executes the instructions, the steps of the method according to any one of claims 1 to 4 are implemented.

10. A computer-readable storage medium storing computer instructions, characterized in that: When the instruction is executed by a processor, the steps of the method described in any one of claims 1 to 4 are implemented.