Safe KV storage bucket system based on trusted cryptographic module protection
Through the secure KV bucket system protected by trusted cryptographic modules, the problem of frequent key replacement and irreversible data during data encryption and storage is solved, the secure storage and application isolation of data are realized, and the security and reliability of data are ensured. .
Patent Information
- Application Number
- CN202411132872.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2044-08-19
AI Technical Summary
The existing technology has problems such as frequent key replacement, frequent code changes, irreversible data, and exposure of ciphertext during the data encryption and storage process, resulting in insufficient data security and reliability.
A secure KV storage bucket system based on trusted cryptographic module protection is used to perform initialization, application authorization, data encryption and key management through the media Ukey and trusted cryptographic modules to ensure data security and integrity.
It realizes reversible encrypted data storage, application isolation, permission management and automatic data renovation, ensuring the security and reliability of data and avoiding ciphertext exposure and irreversible consequences.
Smart Images

Figure CN118747385A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information security technology of cryptographic applications and devices, and more specifically to a secure KV storage bucket system protected by a trusted cryptographic module. Background Art
[0002] With the rapid development of the information age, information security and privacy protection are becoming more and more important. Cryptography has also played a vital role in the Internet, government network and other fields. Cryptography is particularly important for data protection. However, after the introduction of cryptography for data protection, the upper-level application integration will increase many processing details and necessary steps. If you are a little careless, it will have the impact of data being unrecoverable. In some security application specifications, data encryption and storage require the replacement of encryption keys, and ciphertext is exposed in storage media such as databases and configuration files. Once the encryption key needs to be replaced, these ciphertexts need to be refurbished (decrypted and re-encrypted with the replaced key). After the data reaches a certain amount, the operation is usually missed, resulting in irreversible results.
[0003] The general solution of the prior art is to find the fields and values that need to be encrypted during system integration, decrypt the ciphertext when the encryption key is changed, wait for the new key to be generated, and then re-encrypt it with the new key and store it in various files. However, it has the following disadvantages:
[0004] (1) Every time a piece of data that needs to be encrypted is added, its preset data needs to be refurbished;
[0005] (2) The system requires frequent code changes;
[0006] (3) If the data that needs to be decrypted is omitted during development, irreversible consequences will occur;
[0007] (4) The ciphertext is exposed and can be easily tampered with.
[0008] Therefore, improving the security and reliability of data encryption storage is an urgent problem that needs to be solved by those skilled in the art. Summary of the invention
[0009] In view of this, the present invention provides a secure KV storage bucket system based on trusted cryptographic module protection to solve the security problems of ciphertext storage of sensitive data, the high complexity of the process of sensitive data relying on trusted cryptographic modules for protection, and the problem of sensitive data being maliciously decrypted and tampered with by other malicious programs.
[0010] In order to achieve the above object, the present invention adopts the following technical solution:
[0011] A secure KV storage bucket system based on trusted password module protection includes an application, a medium Ukey and a device, wherein the device is loaded with a connected KV storage bucket and a trusted password module, the medium Ukey is inserted into the device, and the application is connected to the device through an interface; the KV storage bucket is initialized using the medium Ukey, and the application is authorized; the communication between the application and the KV storage bucket is read authenticated and the storage authenticated using the trusted password module; and the KV storage bucket is data refurbished using the trusted password module.
[0012] Preferably, the KV bucket is initialized securely to implement permission management of the application KV bucket using the medium Ukey. The medium Ukey stores private and public keys, and the private key cannot be exported. The public key is imported into the self-use area of the KV bucket, and the private key is signed by inserting it into the device to ensure the security of the private key. The signature is verified using the public key to implement permission management. Only users with the medium Ukey can call the KV bucket.
[0013] Preferably, the application authorized by the KV bucket transmits the key-value pair consisting of the obtained key and value plaintext to the KV bucket, and the KV bucket encrypts the value plaintext using the key in the trusted cryptographic module to obtain the value ciphertext, and stores the value ciphertext and the key in pairs.
[0014] Preferably, after the user inserts the medium Ukey into the device, the KV storage bucket is initialized. The initialization process is:
[0015] Step 11: The medium Ukey initiates initialization to the KV storage bucket;
[0016] Step 12: The KV storage bucket sends a Ukey authentication prompt to the medium Ukey;
[0017] Step 13: The medium Ukey enters the Ukey password into the KV storage bucket;
[0018] Step 14: The device enumerates and authenticates Ukey according to the Ukey password. If the authentication is successful, the public key in the medium Ukey is exported and the process goes to step 15; otherwise, the initialization ends;
[0019] Step 15: The KV storage bucket calls the trusted cryptographic module, uses the secure random number stored in the trusted cryptographic module to randomly generate a file key and a protection key, and stores them in the trusted cryptographic module. If the trusted cryptographic module verifies that the key generation is successful, the public key is imported into the KV storage bucket and the initialization is completed; otherwise, the initialization ends.
[0020] The technical effect of the above technical solution is that after initialization, the public key is imported into the KV storage bucket, and the medium Ukey in the user's hand is the authorized key. Only the application signed by the private key in the medium Ukey has the authority to call the KV storage bucket, thereby realizing permission management; another purpose of initialization is to generate a key. After importing the public key and generating a key (random value), the KV storage bucket can provide services to the outside world normally; in addition, the private key signature needs to be verified using the public key. After the private key in the medium Ukey is kept well, the signature cannot be forged, which makes the KV storage bucket have the security of interface calls.
[0021] Preferably, a KV storage bucket is run in the device, and a physical USB interface is provided. The device can be a host computer such as a PC or a server that can provide a physical USB port.
[0022] Preferably, application authorization can prevent malicious access and calls. The process of application authorization is:
[0023] Step 21: The user sends the selected application to the KV storage bucket through the medium Ukey;
[0024] Step 22: The KV storage bucket calculates the fingerprint based on the unique identification information of the selected application;
[0025] Step 23: The KV storage bucket sends a Ukey authentication prompt to the medium Ukey;
[0026] Step 24: The medium Ukey enters the Ukey password into the KV storage bucket;
[0027] Step 25: The device enumerates and authenticates Ukey according to the Ukey password. If the authentication is successful, the medium Ukey calls the private key to sign the fingerprint, obtains the fingerprint signature, and enters step 26; otherwise, it is not authorized;
[0028] Step 26: The KV storage bucket uses the public key to verify the fingerprint signature. If the verification passes, the fingerprint is stored, an authorization list is generated, and a storage space is allocated for each selected application; otherwise, no authorization is given.
[0029] Preferably, the unique identification information of the application in step 22 includes the application path, the application name and the application summary, and the formula for calculating the fingerprint is:
[0030] Fingerprint = hmac(application path + application name)^hmac(application summary);
[0031] The key of the hmac algorithm uses the protection key of the trusted cryptographic module; the SM3 algorithm is used to calculate the application to obtain the application summary.
[0032] Preferably, the storage authentication process is:
[0033] Step 31: The application calls the data storage interface of the KV storage bucket;
[0034] Step 32: The KV storage bucket calculates the application fingerprint and checks whether it exists in the authorization list. If so, the digest of the plaintext value transmitted by the application is calculated and stored in the corresponding storage space, and then goes to step 33; otherwise, the service is denied;
[0035] Step 33: The KV storage bucket calls the protection key of the trusted cryptographic module to encrypt the plain text value transmitted by the application, obtains the ciphertext of the value, and stores it in pairs with the corresponding key in the corresponding storage space;
[0036] Step 34: The KV storage bucket calls the file key of the trusted cryptographic module to encrypt and map the storage space into a ciphertext file.
[0037] Preferably, the expression for calculating the digest of the plaintext value is:
[0038] summary = SM3(value);
[0039] SM3 indicates the SM3 encryption algorithm.
[0040] Preferably, the process of reading authentication is:
[0041] Step 41: The application calls the data retrieval interface of the KV storage bucket;
[0042] Step 42: The KV storage bucket calculates the application fingerprint and checks whether it exists in the authorization list. If so, it searches for the key in the corresponding storage space and proceeds to step 43; otherwise, the service is denied.
[0043] Step 43: The KV storage bucket calls the protection key of the trusted cryptographic module to decrypt the vlaue ciphertext corresponding to the searched key to obtain the vlaue plaintext;
[0044] Step 44: The KV storage bucket calculates a digest of the vlaue plaintext and compares it with the digest stored in step 32. If the verification is correct (the comparison is consistent), the vlaue plaintext is retrieved and transmitted to the application; otherwise, the service is denied.
[0045] Preferably, the process of data renovation is:
[0046] Step 51: Monitor that the key of the trusted cryptographic module is about to be updated, and trigger the KV storage bucket pre-method;
[0047] Step 52: The KV storage bucket calls the file key in the trusted cryptographic module to decrypt the ciphertext file to obtain the plaintext file;
[0048] Step 53: The KV storage bucket traverses all value ciphertexts in the plaintext file and decrypts them using the protection key of the trusted cryptographic module to obtain the value plaintext;
[0049] Step 54: Update the key in the trusted cryptographic module and trigger the KV storage bucket post-method; the trusted cryptographic module randomly generates an updated key based on the stored secure random number;
[0050] Step 55: The KV storage bucket cyclically calls the new protection key to encrypt the value plaintext, obtains the new value ciphertext, traverses and stores the new value ciphertext, and calls the new file key encryption storage space in the trusted password module to obtain and store the new ciphertext file.
[0051] Preferably, the precondition refers to monitoring actions related to the trusted cryptographic module, such as key update, and the execution scope of the precondition method is from triggering the precondition to updating the key; the postcondition refers to monitoring whether the trusted cryptographic module action is completed, and the execution scope of the postcondition method is from triggering the postcondition to generating the ciphertext file.
[0052] Through the above technical solutions, it can be known that compared with the prior art, the present invention discloses a secure KV storage bucket system based on trusted password module protection, which provides data security storage capabilities for password devices and password applications. The transformation process is simple, and the KV storage bucket is used to protect data security. It can store database passwords, service passwords and other data that need to be reversibly encrypted and stored, and realize configuration file integrity protection, application integrity protection, etc. The system of the present invention has the function of application isolation, uses a trusted password module to protect the key for data protection, and ensures data security; uses physical media Ukey for authorization management, and ensures data call security; triggers data renovation to ensure that data is not lost or exposed. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] 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 embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0054] Figure 1 A schematic diagram of the structure of a secure KV storage bucket system based on trusted password module protection provided by the present invention;
[0055] Figure 2 A timing diagram of the initialization process provided by the present invention;
[0056] Figure 3A schematic diagram of the timing of the application authorization process provided by the present invention;
[0057] Figure 4 A schematic diagram of the storage authentication process timing provided by the present invention;
[0058] Figure 5 A timing diagram of the read authentication process provided by the present invention;
[0059] Figure 6 A timing diagram of the data renovation process provided by the present invention. DETAILED DESCRIPTION
[0060] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0061] The embodiment of the present invention discloses a secure KV storage bucket system based on trusted password module protection, such as Figure 1 As shown, it includes an application, a media Ukey and a device. The device is loaded with a connected KV storage bucket and a trusted password module. The media Ukey is inserted into the device, and the application is connected to the device through an interface. The KV storage bucket is initialized using the media Ukey, and the application is authorized. The trusted password module is used to perform read authentication and storage authentication on the communication between the application and the KV storage bucket. The trusted password module is used to renovate the data in the KV storage bucket.
[0062] The KV bucket stores data in the form of Key-Value, and the application accesses the value through a unique key; the Key-Value is stored in the storage space allocated for each authorized application in the application data area; the public key imported by the KV bucket and the key correspondence mark between the storage space and the trusted cryptographic module are stored in the self-use area; the present invention uses a separate key to protect the files in the KV bucket through the trusted cryptographic module; the storage space of the application is protected by the file key, and whether to use an exclusive key for protection can be set according to the application level; some application configuration items, public keys, authorizations, etc. are stored in the self-use area of the KV bucket, and the application data area stores the key.
[0063] Furthermore, the KV bucket is initialized securely to implement permission management of the application KV bucket using the medium Ukey. The medium Ukey stores private and public keys, and the private key cannot be exported. The public key is imported into the self-use area of the KV bucket, and the private key is signed by inserting it into the device to ensure the security of the private key. The public key is then used for signature verification to implement permission management. Only users with the medium Ukey can call the KV bucket.
[0064] Furthermore, the application authorized by the KV bucket transmits the key-value pair consisting of the obtained key and value plaintext to the KV bucket. The KV bucket encrypts the value plaintext using the key in the trusted cryptographic module to obtain the value ciphertext, and stores the value ciphertext and the key in pairs.
[0065] Furthermore, a KV storage bucket is run in the device, and a physical USB interface is provided. The device can use a host computer such as a PC or a server that can provide a physical USB port.
[0066] On the other hand, in a specific embodiment, after the user inserts the media Ukey into the device, the KV storage bucket is initialized, such as Figure 2 The initialization process shown is:
[0067] S11: The medium Ukey initiates initialization to the KV storage bucket;
[0068] S12: The KV storage bucket sends a Ukey authentication prompt to the medium Ukey;
[0069] S13: The medium Ukey inputs the Ukey password to the KV storage bucket;
[0070] S14: The device enumerates and authenticates Ukey according to the Ukey password. If the authentication is successful, the public key in the medium Ukey is exported and enters S15; otherwise, the initialization ends;
[0071] S15: The KV storage bucket calls the trusted cryptographic module, uses the random number generation unit in the trusted cryptographic module to generate file keys and protection keys, and stores them in the trusted cryptographic module. If the trusted cryptographic module verifies that the key generation is successful, the public key is imported into the KV storage bucket and the initialization is completed; otherwise, the initialization ends.
[0072] The technical effect of the above technical solution is that after initialization, the public key is imported into the KV storage bucket, and the medium Ukey in the user's hand is the authorized key. Only the application signed by the private key in the medium Ukey has the authority to call the KV storage bucket, thereby realizing permission management; another purpose of initialization is to generate a key. After importing the public key and generating a key (random value), the KV storage bucket can provide services to the outside world normally; in addition, the private key signature needs to be verified using the public key. After the private key in the medium Ukey is kept well, the signature cannot be forged, which makes the KV storage bucket have the security of interface calls.
[0073] On the other hand, in a specific embodiment, application authorization can prevent malicious access and calls, such as Figure 3 As shown in the figure, the process of application authorization is:
[0074] S21: The user sends the selected application to the KV storage bucket through the medium Ukey;
[0075] S22: The KV storage bucket calculates a fingerprint based on the unique identification information of the selected application;
[0076] S23: The KV storage bucket sends a Ukey authentication prompt to the medium Ukey;
[0077] S24: The medium Ukey inputs the Ukey password to the KV storage bucket;
[0078] S25: The device enumerates and authenticates the Ukey according to the Ukey password. If the authentication is successful, the medium Ukey calls the private key to sign the fingerprint and obtain the fingerprint signature;
[0079] S26: The KV storage bucket verifies the fingerprint signature using the public key. If the verification passes, the fingerprint is stored, an authorization list is generated, and a storage space is allocated for each selected application; otherwise, authorization is not granted.
[0080] Furthermore, the unique identification information of the application in S22 includes the application path, application name and application summary, and the formula for calculating the fingerprint is:
[0081] Fingerprint = hmac(application path + application name)^hmac(application summary);
[0082] The key of the hmac algorithm uses the protection key of the trusted cryptographic module; the SM3 algorithm is used to calculate the application to obtain the application summary.
[0083] On the other hand, in a specific embodiment, the storage authentication is Figure 4 As shown, the specific process is:
[0084] S31: The application calls the data storage interface of the KV storage bucket;
[0085] S32: The KV storage bucket calculates the application fingerprint and checks whether it exists in the authorization list. If so, it calculates the summary of the plaintext value transmitted by the application and stores it in the corresponding storage space, and then enters S33; otherwise, the service is denied;
[0086] S33: The KV storage bucket calls the protection key of the trusted cryptographic module to encrypt the plain text value transmitted by the application, obtains the ciphertext of the value, and stores it in pairs with the corresponding key in the corresponding storage space;
[0087] S34: The KV storage bucket calls the file key of the trusted cryptographic module to encrypt and map the storage space into a ciphertext file.
[0088] Furthermore, the expression for calculating the digest of the plaintext value is:
[0089] summary = SM3(value).
[0090] On the other hand, in a specific embodiment, reading authentication such as Figure 5 As shown, the specific process is:
[0091] S41: The application calls the data retrieval interface of the KV storage bucket;
[0092] S42: The KV storage bucket calculates the application fingerprint and checks whether it exists in the authorization list. If so, it searches for the key in the corresponding storage space and enters S43; otherwise, the service is denied.
[0093] S43: The KV storage bucket calls the protection key of the trusted cryptographic module to decrypt the vlaue ciphertext corresponding to the searched key to obtain the vlaue plaintext;
[0094] S44: The KV storage bucket calculates the summary of the vlaue plaintext and compares it with the summary stored in S32. If the verification is correct (the comparison is consistent), the vlaue plaintext is retrieved and transmitted to the application; otherwise, the service is denied.
[0095] On the other hand, in a specific embodiment, data refurbishment is as follows Figure 6 As shown, the specific process is:
[0096] S51: monitoring that the key of the trusted cryptographic module is about to be updated, triggering the KV storage bucket pre-method;
[0097] S52: The KV storage bucket calls the file key in the trusted cryptographic module to decrypt the ciphertext file to obtain the plaintext file;
[0098] S53: The KV storage bucket traverses all value ciphertexts in the plaintext file and decrypts them using the protection key of the trusted cryptographic module to obtain the value plaintext;
[0099] S54: Update the key in the trusted cryptographic module and trigger the KV storage bucket post-position method; the trusted cryptographic module randomly generates the updated key according to the stored secure random number;
[0100] S55: The KV storage bucket cyclically calls the new protection key to encrypt the value plaintext, obtains the new value ciphertext, traverses and stores the new value ciphertext, and calls the new file key encryption storage space in the trusted password module to obtain and store the new ciphertext file.
[0101] Furthermore, the precondition refers to monitoring actions related to the trusted cryptographic module, such as key update. The execution scope of the precondition method ranges from triggering the precondition to updating the key. The postcondition refers to monitoring whether the actions of the trusted cryptographic module are completed. The execution scope of the postcondition method ranges from triggering the postcondition to generating the ciphertext file.
[0102] Furthermore, the trusted cryptographic modules in the system include but are not limited to cryptographic machines, encryption machines, SSL VPN gateways, IPSec VPN gateways, KMS, signature verification servers, financial data cryptographic machines, etc.
[0103] A KV secure storage bucket system based on a trusted password module protection has the following features:
[0104] (1) Easy to use. Application integration only requires integrating two interfaces for storage and access.
[0105] (2) Data isolation: data stored in different applications will be isolated;
[0106] (3) Application authorization: In order to prevent malicious programs from obtaining sensitive values through open interface calls, application authorization is added to limit application access rights;
[0107] (4) Ciphertext data is automatically updated. When the key is changed, the data is automatically updated internally, and the external interface does not affect the normal data storage.
[0108] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0109] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A secure KV storage bucket system based on trusted password module protection, characterized in that: It includes applications, media Ukey and devices. The connected KV storage bucket and trusted password module are loaded on the device. The media Ukey is inserted into the device, and the application is connected to the device through an interface. The KV storage bucket is initialized using the media Ukey, and the application is authorized. The trusted password module is used to perform read authentication and storage authentication on the communication between the application and the KV storage bucket. The trusted password module is used to renovate the data of the KV storage bucket.
2. A secure KV storage bucket system based on trusted password module protection according to claim 1, characterized in that: The medium Ukey stores the private key and public key, and the private key cannot be exported. It is inserted into the device for private key signing.
3. A secure KV storage bucket system based on trusted password module protection according to claim 2, characterized in that: The application authorized by the KV bucket transmits the key-value pair consisting of the obtained key and value plaintext to the KV bucket. The KV bucket uses the key in the trusted cryptographic module to encrypt the value plaintext, obtain the value ciphertext, and store the value ciphertext and key in pairs.
4. A secure KV storage bucket system based on trusted password module protection according to claim 3, characterized in that: After inserting the media Ukey into the device, the KV storage bucket is initialized. The initialization process is as follows: Step 11: The medium Ukey initiates initialization to the KV storage bucket; Step 12: The KV storage bucket sends a Ukey authentication prompt to the medium Ukey; Step 13: The medium Ukey enters the Ukey password into the KV storage bucket; Step 14: The device enumerates and authenticates Ukey according to the Ukey password. If the authentication is successful, the public key in the medium Ukey is exported and the process goes to step 15; otherwise, the initialization ends; Step 15: The KV storage bucket calls the trusted cryptographic module, which generates a file key and a protection key. If the trusted cryptographic module verifies that the key generation is successful, the public key is imported into the KV storage bucket and the initialization is completed; otherwise, the initialization ends.
5. A secure KV storage bucket system based on trusted password module protection according to claim 4, characterized in that: The process of application authorization is: Step 21: Send the selected application to the KV storage bucket through the medium Ukey; Step 22: The KV storage bucket calculates the fingerprint based on the unique identification information of the selected application; Step 23: The KV storage bucket sends a Ukey authentication prompt to the medium Ukey; Step 24: The medium Ukey enters the Ukey password into the KV storage bucket; Step 25: The device enumerates and authenticates Ukey according to the Ukey password. If the authentication is successful, the medium Ukey calls the private key to sign the fingerprint, obtains the fingerprint signature, and enters step 26; otherwise, it is not authorized; Step 26: The KV storage bucket uses the public key to verify the fingerprint signature. If the verification passes, the fingerprint is stored, an authorization list is generated, and a storage space is allocated for each selected application; otherwise, no authorization is given.
6. A secure KV storage bucket system based on trusted password module protection according to claim 5, characterized in that: The unique identification information of the application in step 22 includes the application path, application name and application summary. The formula for calculating the fingerprint is: Fingerprint = hmac(application path + application name)^hmac(application summary); The key of the hmac algorithm uses the protection key of the trusted cryptographic module; the SM3 algorithm is used to calculate the application to obtain the application summary.
7. A secure KV storage bucket system based on trusted password module protection according to claim 5, characterized in that: The process of storage authentication is: Step 31: The application calls the data storage interface of the KV storage bucket; Step 32: The KV storage bucket calculates the application fingerprint and checks whether it exists in the authorization list. If so, the digest of the plaintext value transmitted by the application is calculated and stored in the corresponding storage space, and then goes to step 33; otherwise, the service is denied; Step 33: The KV storage bucket calls the protection key of the trusted cryptographic module to encrypt the plain text value transmitted by the application, obtains the ciphertext of the value, and stores it in pairs with the corresponding key in the corresponding storage space; Step 34: The KV storage bucket calls the file key of the trusted cryptographic module to encrypt and map the storage space into a ciphertext file.
8. A secure KV storage bucket system based on trusted password module protection according to claim 7, characterized in that: The process of reading authentication is: Step 41: The application calls the data retrieval interface of the KV storage bucket; Step 42: The KV storage bucket calculates the application fingerprint and checks whether it exists in the authorization list. If so, it searches for the key in the corresponding storage space and proceeds to step 43; otherwise, the service is denied. Step 43: The KV storage bucket calls the protection key of the trusted cryptographic module to decrypt the vlaue ciphertext corresponding to the searched key to obtain the vlaue plaintext; Step 44: The KV storage bucket calculates a digest of the vlaue plaintext and compares and verifies it with the digest stored in step 32. If the verification is correct, the vlaue plaintext is retrieved and transmitted to the application; otherwise, the service is denied.
9. A secure KV storage bucket system based on trusted password module protection according to claim 7, characterized in that: The expression for calculating the digest of the plaintext value is: summary = SM3(value).
10. A secure KV storage bucket system based on trusted password module protection according to claim 7, characterized in that: The process of data renovation is: Step 51: monitoring that the key of the trusted cryptographic module is about to be updated; Step 52: The KV storage bucket calls the file key in the trusted cryptographic module to decrypt the ciphertext file to obtain the plaintext file; Step 53: The KV storage bucket traverses all value ciphertexts in the plaintext file and decrypts them using the protection key of the trusted cryptographic module to obtain the value plaintext; Step 54: Update the key in the trusted cryptographic module; Step 55: The KV storage bucket cyclically calls the new protection key to encrypt the value plaintext, obtains the new value ciphertext, traverses and stores the new value ciphertext, and calls the new file key encryption storage space in the trusted password module to obtain and store the new ciphertext file.
Citation Information
Patent Citations
Bright and dense double-channel anti-leakage security burner
CN102385891A
USB-key based security system and usage method therefor
CN105243314A
Authorization authentication method and system based on key value, electronic equipment and storage medium
CN108400875A
Identity verification method and system
CN114329410A
Shared file transparent encryption method and system
CN115550058A
