IP Library › Granted Patent US 11,128,447
Granted Patent B2
US 11,128,447 · App. 17/106,762 · Granted Sep 21, 2021

Cryptographic operation method, working key creation method, cryptographic service platform, and cryptographic service device

Inventors: Shuting Xiao (Zhejiang, CN); Xiaodan Lin (Zhejiang, CN); Haifeng Fang (Zhejiang, CN); Shengcai Gu (Zhejiang, CN)
Assignee: Advanced New Technologies Co., Ltd.
H04L9/083H04L9/0618H04L9/30H04L9/3242
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,128,447
App. No.
17/106,762
Granted
Sep 21, 2021
Kind
B2
Abstract

A cryptographic service device includes: a processor; and a memory storing instructions executable by the processor, wherein the processor is configured to execute the instructions to operate as a registration module, a working key creation module, and a cryptographic operation calling module. The registration module is configured to call a primary security module to generate a master key for a newly added secondary security module. The working key creation module is configured to receive a working key creation request of a business system, call the primary security module to generate a working key for the business system, and acquire a working key ciphertext. The cryptographic operation calling module is configured to receive a cryptographic operation request of the business system; call a target security module, and obtain an operation result of the target security module.

Claims (53)

1. A cryptographic operation method, comprising:

receiving a cryptographic operation request initiated by a business system, the cryptographic operation request carrying data to be operated;

determining a target security module responding to the cryptographic operation request, the target security module being one of a primary security module or at least one secondary security module, and a master key of the secondary security module being generated by the primary security module;

acquiring a working key ciphertext corresponding to the target security module, the working key ciphertext being obtained when the primary security module encrypts a working key using a master key of the target security module, the working key being created by the primary security module for the business system; and

calling the target security module using the working key ciphertext and the data to be operated as input, acquiring an operation result returned by the target security module and sending the operation result to the business system, the operation result being obtained by the target security module by decrypting the working key ciphertext to obtain the working key using the master key of the target security module, and encrypting the data to be operated using the decrypted working key.

2. The method according to claim 1 , wherein the master key of the secondary security module is obtained by:

acquiring a target public key generated by the secondary security module;

calling the primary security module using the target public key as input, generating, by the primary security module, the master key of the secondary security module, and encrypting the generated master key using the target public key to obtain a master key ciphertext; and

sending the master key ciphertext to the secondary security module, and decrypting, by the secondary security module, the master key ciphertext using a target private key corresponding to the target public key to obtain the master key.

3. The method according to claim 2 , wherein calling the primary security module using the target public key as input, and generating, by the primary security module, the master key of the secondary security module comprises:

acquiring a public key check value obtained when the primary security module performs message authentication code calculation on the target public key; and

calling the primary security module using the target public key and the public key check value as input, and generating the master key of the secondary security module after the primary security module checks validity of the input target public key based on the public key check value.

4. The method according to claim 1 , wherein the master key of the secondary security module is obtained by:

calling the primary security module, and acquiring two or more key components of the master key of the secondary security module after the primary security module generates the master key; and

transmitting the two or more key components to key management entities, respectively, and transmitting, by the key management entities, the key components to the secondary security module respectively to generate the master key according to each key component.

5. The method according to claim 1 , further comprising:

receiving and storing a master key ciphertext of the secondary security module returned by the primary security module, the master key ciphertext being encrypted by the master key of the primary security module.

6. A cryptographic service device, the cryptographic service device being connected to a primary security module, and comprising:

a processor; and

a memory storing instructions executable by the processor,

wherein the processor is configured to execute the instructions to operate as a registration module, a working key creation module, and a cryptographic operation calling module, wherein:

the registration module is configured to call the primary security module to generate a master key for a newly added secondary security module;

the working key creation module is configured to receive a working key creation request of a business system, call the primary security module to generate a working key for the business system, and acquire a working key ciphertext encrypted by a master key of the primary security module and a working key ciphertext encrypted by a master key of each secondary security module connected with the cryptographic service device; and

the cryptographic operation calling module is configured to receive a cryptographic operation request of the business system, the cryptographic operation request carrying data to be operated; determine a target security module responding to the cryptographic operation request; call the target security module using a working key ciphertext corresponding to the target security module and the data to be operated as input, and obtain an operation result of the target security module, the operation result being obtained by the target security module by decrypting the working key ciphertext to obtain the working key using a stored master key, and encrypting the data to be operated using the working key.

7. The cryptographic service device according to claim 6 , wherein the registration module is further configured to configure a master key of a secondary security module by:

acquiring a target public key generated by the secondary security module;

calling the primary security module using the target public key as input, generating, by the primary security module, the master key of the secondary security module, and encrypting the generated master key using the target public key to obtain a master key ciphertext; and

sending the master key ciphertext to the secondary security module, and decrypting, by the secondary security module, the master key ciphertext using a target private key corresponding to the target public key to obtain the master key.

8. The cryptographic service device according to claim 7 , wherein the registration module is further configured to:

acquire a public key check value obtained when the primary security module performs message authentication code calculation on the target public key; and

call the primary security module using the target public key and the public key check value as input, and generate the master key of the secondary security module after the primary security module verifies validity of the input target public key based on the public key check value.

9. The cryptographic service device according to claim 6 , wherein the registration module is further configured to configure a master key of a secondary security module by:

calling the primary security module, and acquiring two or more key components of the master key of the secondary security module after the primary security module generates the master key; and

outputting the two or more key components to key management entities, respectively, and transmitting, by the key management entities, the key components to the secondary security module to generate the master key according to each key component.

10. The cryptographic service device according to claim 6 , wherein the registration module is further configured to:

receive and store a master key ciphertext of a secondary security module returned by the primary security module, the master key ciphertext being encrypted by the master key of the primary security module.

11. A non-transitory computer-readable storage medium having stored therein instructions that, when executed by a processor of a device, cause the device to perform a cryptographic operation method, the method comprising:

receiving a cryptographic operation request initiated by a business system, the cryptographic operation request carrying data to be operated;

determining a target security module responding to the cryptographic operation request, the target security module being one of a primary security module or at least one secondary security module, and a master key of the secondary security module being generated by the primary security module;

acquiring a working key ciphertext corresponding to the target security module, the working key ciphertext being obtained when the primary security module encrypts a working key using a master key of the target security module, the working key being created by the primary security module for the business system; and

calling the target security module using the working key ciphertext and the data to be operated as input, acquiring an operation result returned by the target security module and sending the operation result to the business system, the operation result being obtained by the target security module by decrypting the working key ciphertext to obtain the working key using the master key of the target security module, and encrypting the data to be operated using the working key.

12. The non-transitory computer-readable storage medium according to claim 11 , wherein the master key of the secondary security module is obtained by:

acquiring a target public key generated by the secondary security module;

calling the primary security module using the target public key as input, generating, by the primary security module, the master key of the secondary security module, and encrypting the generated master key using the target public key to obtain a master key ciphertext; and

sending the master key ciphertext to the secondary security module, and decrypting, by the secondary security module, the master key ciphertext using a target private key corresponding to the target public key to obtain the master key.

13. The non-transitory computer-readable storage medium according to claim 12 , wherein calling the primary security module using the target public key as input, and generating, by the primary security module, the master key of the secondary security module comprises:

acquiring a public key check value obtained when the primary security module performs message authentication code calculation on the target public key; and

calling the primary security module using the target public key and the public key check value as input, and generating the master key of the secondary security module after the primary security module checks validity of the input target public key based on the public key check value.

14. The non-transitory computer-readable storage medium according to claim 11 , wherein the master key of the secondary security module is obtained by:

calling the primary security module, and acquiring two or more key components of the master key of the secondary security module after the primary security module generates the master key; and

transmitting the two or more key components to key management entities, respectively, and transmitting, by the key management entities, the key components to the secondary security module respectively to generate the master key according to each key component.

15. The non-transitory computer-readable storage medium according to claim 11 , the method further comprising:

receiving and storing a master key ciphertext of the secondary security module returned by the primary security module, the master key ciphertext being encrypted by the master key of the primary security module.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 30, 2021
From: XIAO, SHUTING; LIN, XIAODAN; FANG, HAIFENG; GU, SHENGCAI
To: ADVANCED NEW TECHNOLOGIES CO., LTD.
Reel/Frame 056719/0416 →
Priority Claims (1)
CN 201811012441.8 · Aug 31, 2018 · national
Continuity (2)
Continuation PCTCN2019096662 · Jul 19, 2019
Related Publication 20210099286A1 · Apr 1, 2021