×

Key management method and system

  • US 9,705,672 B2
  • Filed: 01/23/2014
  • Issued: 07/11/2017
  • Est. Priority Date: 03/15/2013
  • Status: Active Grant
First Claim
Patent Images

1. A key management method, comprising:

  • calling a first hardware and security module to generate a public key Pu and a private key Pr, storing the private key Pr in the first hardware and security module and sending the public key Pu to a security module of the POS terminal, using a Material Tracking and Management (MTMS) system;

    calling the first hardware and security module using the MTMS system and calling a second hardware and security module using a KMS system to respectively combine MTMS access components and KMS access components into a protective key PK and a MAC key MAK in the respective first and second hardware and security modules and store the protective key PK and the MAC key MAK in the respective first hardware and security module and the second hardware and security module;

    using an operating terminal to generate a transmission key TK and store the transmission key in the security module of the POS terminal, wherein the transmission key TK consists of a transmission encryption key TEK and an authentication key AUK;

    encrypting the transmission key TK using the public key Pu to generate a first transmission key cipher text Ctk_Pu in the security module of the POS terminal using the POS terminal;

    sending the first transmission key cipher text Ctk_Pu and a terminal sequence number SN to the MTMS system through the operating terminal using the POS terminal;

    storing the received terminal sequence number SN and the corresponding first transmission key cipher text Ctk_Pu in an SN-Key_MTMS database using the MTMS system;

    calling the first hardware and security module to decrypt the first transmission key cipher text Ctk_Pu using the private key Pr to obtain the transmission key TK, encrypting the transmission key TK using the protective key PK and calculating a MAC value using the MAC key MAK to generate a second transmission key cipher text Ctk_Pk using the MTMS system;

    sending the terminal sequence number SN and the second transmission key cipher text Ctk_Pk to the KMS system using the MTMS system;

    storing the terminal sequence number SN and the second transmission key cipher text Ctk_Pk sent from the MTMS system in an SN-TK_KMS database using the KMS system;

    sending the terminal sequence number SN and a downloading master key application to the KMS system using the POS terminal;

    inquiring about the second transmission key cipher text Ctk_Pk corresponding to the terminal sequence number SN using the KMS system after receiving the terminal sequence number SN and the downloading master key application sent by the POS terminal;

    calling the second hardware and security module to verify the MAC validity of the inquired-about second transmission key cipher text Ctk_Pk using the MAC key MAK, and if the verification is passed, decrypting the second transmission key cipher text Ctk_Pk using the protective key PK to obtain the transmission key TK, and storing the transmission key TK in the second hardware and security module, using the KMS system;

    calling the second hardware and security module to perform bidirectional authentication using an authentication key AUK and the POS terminal by the KMS system after obtaining the transmission key TK, and if the authentication is passed, calling the second hardware and security module to encrypt the terminal master key TMK using the transmission decryption key TEK to generate a master key cipher text Ctmk, and sending the master key cipher text Ctmk to the POS terminal, using the KMS system;

    decrypting the master key cipher text Ctmk using the transmission encryption key TEK to obtain the terminal master key TMK and storing the terminal master key TMK in the security module of the POS terminal, using the POS terminal after receiving the master key cipher text Ctmk sent by the KSM system.

View all claims
  • 3 Assignments
Timeline View
Assignment View
    ×
    ×