Key design method for S3 data encryption and decryption service based on password card
By using password cards to manage three-level secret keys in S3 encryption and decryption service, the problems of universality of security solutions and discrete keys in the existing technology are solved, and higher security levels and secret key correlation are achieved to meet specific needs. Data encryption and decryption service.
Patent Information
- Application Number
- CN202411171647.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-26
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2044-08-26
AI Technical Summary
The existing S3 encryption and decryption technology can only use general or third-party security solutions, and the secret keys are discrete and do not have correlation and cannot meet specific needs.
Design a secret key method for S3 data encryption and decryption service based on password cards. By embedding password cards in the server, generating and managing the secret keys of the storage bucket and object, using the three-level secret key (root key, bucket key, Object keys) Strengthen data security to ensure correlation and high security levels between keys.
The security level of S3 data encryption and decryption service has been improved, meeting specific organizational structure needs, realizing the correlation of secret keys and three-level secret key reinforcement, ensuring high data security.
Smart Images

Figure CN118690395B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data storage, and in particular to a secret key design method for an S3 data encryption and decryption service based on a password card. Background Art
[0002] In some specific scenarios, it is necessary to add data security solutions between the application server and the storage server to implement secure storage functions based on storage protocols. Among these solutions, some are implemented by directly integrating security solutions into the storage, while others are implemented using proxy services.
[0003] The common technical deficiencies in implementing S3 encryption and decryption are as follows:
[0004] 1. Only the general security solutions of storage manufacturers can be used, or the security solutions of other manufacturers need to be integrated into the storage.
[0005] 2. The discreteness of secret keys is not relevant and does not meet some specific requirements. Summary of the invention
[0006] The purpose of the present invention is to provide a key design method for S3 data encryption and decryption service based on a password card in view of the deficiencies in the prior art.
[0007] To achieve the above object, the present invention provides a key design method for S3 data encryption and decryption service based on a password card, comprising:
[0008] Design root keys, bucket keys, and object keys for storage buckets and objects in the S3 encryption and decryption service. The bucket keys and object keys correspond to the buckets and objects in the S3 encryption and decryption service one by one, respectively, to control access to the corresponding storage buckets and objects;
[0009] The password card is embedded in the server and electrically connected to the server. A program related to the password card is run on the server so as to call the relevant interface of the password card. When the server controls the password card to be initialized, the password card generates the root key and stores the root key.
[0010] When receiving a command to create a storage bucket, the server controls the password card to generate a storage bucket key, and when receiving a request to upload an object or to start uploading a segment, generates an object key; after the storage bucket is successfully created, the server controls the password card to encrypt the bucket key with the root key, and exports it to the first designated location via the server after plain text verification; after the object is successfully uploaded, the server encrypts the current object key with the bucket key corresponding to the object, and exports it to the second designated location via the server after plain text verification;
[0011] When accessing the storage bucket, first load the root key, then import the corresponding bucket key encrypted by the root key, and then use the root key to decrypt the imported bucket key to access the corresponding storage bucket; when accessing the object, first load the corresponding bucket key, then import the corresponding object key encrypted by the bucket key, and then use the currently loaded bucket key to decrypt the imported object key to access the corresponding object.
[0012] Furthermore, the security level of the root key is higher than that of the bucket key, and the security level of the bucket key is higher than that of the object key.
[0013] Furthermore, the first designated position and the second designated position are different data units.
[0014] Furthermore, the password card is connected to the server via a PIC-e interface.
[0015] Beneficial effects: 1. The present invention is based on the design and storage of secret keys in the hardware password card S3 data encryption and decryption service, with a higher security level;
[0016] 2. The keys are related to each other to meet certain organizational structure requirements;
[0017] 3. One object corresponds to one object key, and three-level keys are used to strengthen data security. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 This is a schematic diagram of the key design method for the S3 data encryption and decryption service based on the password card;
[0019] Figure 2 It is a schematic diagram of the security levels of the root key, bucket key and object key in an embodiment of the present invention. DETAILED DESCRIPTION
[0020] The present invention is further explained below in conjunction with the accompanying drawings and specific embodiments. The embodiments are implemented based on the technical solution of the present invention. It should be understood that these embodiments are only used to illustrate the present invention and are not used to limit the scope of the present invention.
[0021] like Figure 1 As shown, the embodiment of the present invention provides a key design method for S3 data encryption and decryption service based on a password card, including:
[0022] Root keys, bucket keys, and object keys are designed for the storage buckets and objects in the S3 encryption and decryption service. There is only one root key in the encryption and decryption service, and the root key is used to ensure the security of the bucket key. Bucket keys correspond to storage buckets in the S3 encryption and decryption service one by one, and bucket keys are used to control access to storage buckets. Object keys correspond to objects in the S3 encryption and decryption service one by one, and object keys are used to control access to objects. The above-mentioned root keys, bucket keys, and object keys each include corresponding encryption keys and decryption keys. The encryption key is used when encrypting data, and the decryption key is used when decrypting encrypted data.
[0023] The password card 1 is embedded in the server 2, and the password card 1 is electrically connected to the server 2. The password card 1 and the server 2 can be connected through the PIC-e interface. The server 2 runs a program related to the password card 1 to call the relevant interface of the password card 1. When the server 2 controls the password card 1 to initialize, the password card 1 generates the above-mentioned root key and stores the root key. If the password card 1 has previously stored a root key, the previously stored root key will be destroyed during initialization, and then a new root key will be generated and stored.
[0024] When receiving the command to create a storage bucket, server 2 controls the password card 1 to generate a storage bucket key, and generates an object key when receiving an upload object or a request to start segmented upload. After the storage bucket is successfully created, server 2 controls password card 1 to encrypt the bucket key of the storage bucket with the root key, and then controls password card 1 to perform plaintext verification on the encrypted bucket key. After the plaintext verification passes, it is exported to the first designated location via server 2. After the object is successfully uploaded, server 2 will store the uploaded object in the corresponding storage bucket. Server 2 uses the bucket key of the storage bucket corresponding to the object to encrypt the object key of the current object, and then controls password card 1 to perform plaintext verification on the encrypted object key. After the plaintext verification passes, it is exported to the second designated location via the server. It should be noted that the root key is not allowed to be exported, and only the bucket key and object key that have been encrypted and plaintext verified can be exported. Specifically, the S3 data encryption and decryption service implements the key management function through the key management module, and the key management module implements the relevant key design function by calling the interface of password card 1. Specifically, the generation of the above-mentioned secret key requires the help of the password card random number generator interface, and the export function of the secret key can be realized by relying on the password card interface or the encapsulated password card interface. The above-mentioned first designated location and second designated location are different data units. The designer can design the storage location according to actual needs. For example, the bucket key ciphertext after encryption and plaintext verification is managed by the system administrator, and the object key ciphertext after encryption and plaintext verification is stored in the storage system.
[0025] When accessing a storage bucket, you need to load the root key first, then import the corresponding externally stored bucket key encrypted by the root key, and then use the root key to decrypt the imported bucket key. In this way, you can obtain the plaintext bucket key, and use the plaintext bucket key to access the corresponding storage bucket. When accessing an object, first load the corresponding bucket key, then import the corresponding externally stored object key encrypted by the bucket key, and then use the currently loaded bucket key to decrypt the imported object key. In this way, you can obtain the plaintext object key, and use the plaintext object key to access the corresponding object. Since the root key cannot be exported, there is no need to import it, and it can only be obtained by loading.
[0026] See also Figure 2 The security level of the root key is preferably higher than that of the bucket key, and the security level of the bucket key is preferably higher than that of the object key.
[0027] The above is only a preferred embodiment of the present invention. It should be noted that for ordinary technicians in this technical field, other parts not specifically described belong to the prior art or common knowledge. Several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered as the protection scope of the present invention.
Claims
1. A key design method for S3 data encryption and decryption service based on a password card, characterized in that: include: Design root keys, bucket keys, and object keys for storage buckets and objects in the S3 encryption and decryption service. The bucket keys and object keys correspond to the buckets and objects in the S3 encryption and decryption service one by one, respectively, to control access to the corresponding storage buckets and objects; The password card is embedded in the server and electrically connected to the server. A program related to the password card is run on the server so as to call the relevant interface of the password card. When the server controls the password card to be initialized, the password card generates the root key and stores the root key. When receiving a command to create a storage bucket, the server controls the password card to generate a storage bucket key, and when receiving a request to upload an object or to start uploading a segment, generates an object key; after the storage bucket is successfully created, the server controls the password card to encrypt the bucket key with the root key, and exports it to the first designated location via the server after plain text verification; after the object is successfully uploaded, the server encrypts the current object key with the bucket key corresponding to the object, and exports it to the second designated location via the server after plain text verification; When accessing the storage bucket, first load the root key, then import the corresponding bucket key encrypted by the root key, and then use the root key to decrypt the imported bucket key to access the corresponding storage bucket; when accessing the object, first load the corresponding bucket key, then import the corresponding object key encrypted by the bucket key, and then use the currently loaded bucket key to decrypt the imported object key to access the corresponding object.
2. The key design method for S3 data encryption and decryption service based on a password card according to claim 1 is characterized in that: The security level of the root key is higher than that of the bucket key, and the security level of the bucket key is higher than that of the object key.
3. The key design method for S3 data encryption and decryption service based on a password card according to claim 1 is characterized in that: The first designated position and the second designated position are different data units.
4. The key design method for S3 data encryption and decryption service based on a password card according to claim 1 is characterized in that: The password card is connected to the server via a PIC-e interface.
Citation Information
Patent Citations
Decentralized storage security implementation method
CN108429759A
Password card, root key protection method thereof and computer readable storage medium
CN114785503A
