A method, device, computer equipment and readable storage medium for authorization activation

CN114900291BActive Publication Date: 2024-11-26BEIJING CERTIFICATE AUTHORITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210446738.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-26
Publication Date
2024-11-26
Estimated Expiration
2042-04-26

Smart Images

  • Figure CN114900291B_ABST
    Figure CN114900291B_ABST
Patent Text Reader

Abstract

The present application belongs to the technical field of encryption and decryption, and discloses a method, device, computer equipment and readable storage medium for authorization activation, the method comprising: receiving an authorization activation request sent by an application device; obtaining a copy key identifier and an application personal identification code based on the authorization activation request; obtaining a private key ciphertext and a public key plaintext of a target key, and a target key identifier based on the copy key identifier; encrypting the private key ciphertext based on the copy key identifier and the application personal identification code to obtain a copy escrow key; and performing authorization activation based on the application personal identification code, the target key identifier, the copy key identifier, the public key plaintext and the copy escrow key. In this way, when performing key authorization for an electronic seal, personalized authorization can be performed, which expands the scope of application of key authorization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of encryption and decryption, and in particular to a method, apparatus, computer device and readable storage medium for authorization activation. Background Art

[0002] With the development of Internet technology, paperless office is becoming more and more popular. For example, the digital certificate and private key corresponding to the company's electronic seal can be controlled through cryptographic technology, allowing users to electronically stamp with the company's electronic seal.

[0003] Under existing technologies, the application of key authorization is relatively limited and usually cannot meet the needs of multi-person use control of corporate electronic seals. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a method, apparatus, computer device and readable storage medium for authorization activation, so as to perform personalized authorization when performing key authorization for electronic seals and expand the application scope of key authorization.

[0005] In one aspect, a method for authorization activation is provided, comprising:

[0006] Receive the authorization activation request sent by the application device;

[0007] Based on the authorization activation request, obtain the copy key identifier and apply for a personal identification code, the copy key identifier is used to identify the target key copy, and the target key copy is a copy created based on the target key;

[0008] Based on the copy key identifier, obtain the private key ciphertext and public key plaintext of the target key, as well as the target key identifier;

[0009] Based on the copy key identifier and the application personal identification code, the private key ciphertext is encrypted to obtain the copy escrow key;

[0010] Authorization activation is performed based on the applicant's personal identification code, target key identifier, copy key identifier, public key plaintext, and copy escrow key.

[0011] In the above implementation process, the private key ciphertext of the target key can be encrypted according to the applicant's personal identity code to obtain the copy escrow key, and an association relationship can be established between the applicant and the target key copy, so that different applicants can independently control the target key copy, and personalized authorization of the key can be achieved through the key authorization policy, which expands the application scope of key authorization.

[0012] In one implementation, obtaining a duplicate key identifier and applying for a personal identification code based on an authorization activation request includes:

[0013] Obtain the copy key identifier and application key identifier contained in the authorization activation request;

[0014] Based on the application key identifier, the applicant is authenticated;

[0015] If the identity verification is successful, the applicant obtains the personal identification code.

[0016] In the above implementation process, identity authentication is performed on the applicant, which improves the security of key authorization.

[0017] In one implementation, based on the application key identifier, identity verification of the applicant user includes:

[0018] Obtain the contact information set for the application key identification and the summary of the application personal identification code;

[0019] Sending a first verification code to the applicant device of the applicant through the contact method;

[0020] Receive the second verification code corresponding to the applicant user and the applicant's personal identification code;

[0021] If it is determined that the first verification code and the second verification code meet the verification failure condition, then the identity authentication fails, otherwise, the summary of the application personal identification code returned by the application device is determined;

[0022] If the application personal identification code digest is the same as the application personal identification code digest, it is determined that the identity authentication is successful, otherwise, it is determined that the identity authentication fails.

[0023] In the above implementation process, two-level identity authentication is performed on the applicant through the verification code and the application personal identification code, which improves the security of key authorization.

[0024] In one implementation, based on the duplicate key identifier, obtaining the private key ciphertext and the public key plaintext of the target key, as well as the target key identifier, includes:

[0025] Get key copy information set for the copy key identifier;

[0026] Obtain the private key ciphertext, public key plaintext and target key identifier contained in the key copy information, or obtain the temporary escrow key, public key plaintext and target key identifier contained in the key copy information, and decrypt the temporary escrow key based on the copy key identifier to obtain the private key ciphertext.

[0027] In the above implementation process, key copy information containing private key ciphertext or temporary escrow key is created, so that in subsequent steps, different methods can be used for authorization activation, thereby improving the flexibility of authorization activation.

[0028] In one implementation, before receiving the authorization activation request sent by the application device, the method further includes:

[0029] Obtain the application key identifier and the target key identifier contained in the authorization request sent by the target device;

[0030] Authenticate the target user based on the target key identifier;

[0031] If it is determined that the identity authentication is passed, a key copy of the target key corresponding to the target key identifier is created, the target key copy is obtained, and a copy key identifier of the target key copy is generated;

[0032] Get the initial escrow key and public key plaintext set for the target key identity;

[0033] Based on the application key identifier, the target key identifier, the copy key identifier, the initial escrow key and the public key plaintext, the key copy information corresponding to the copy key identifier is generated.

[0034] In the above implementation process, key authorization is performed on any applicant user according to the authorization request of the target device, thereby realizing key authorization for different applicant users.

[0035] In one implementation, if the key copy information includes a private key ciphertext, the key copy information corresponding to the copy key identifier is generated based on the application key identifier, the target key identifier, the copy key identifier, the initial escrow key, and the public key plaintext, including:

[0036] Based on the application key identifier, obtain the application personal identification code summary;

[0037] Based on the target personal identification code and target key identifier of the target user, the initial escrow key is decrypted to obtain the private key ciphertext;

[0038] Generate key copy information including the applicant's personal identification code digest, target key identifier, copy key identifier, private key ciphertext, and public key plaintext.

[0039] In the above implementation process, key copy information including private key ciphertext is generated, so that in subsequent steps, authorization activation can be performed according to the application key identifier and private key ciphertext.

[0040] In one implementation, if the key copy information includes a temporary escrow key, the key copy information corresponding to the copy key identifier is generated based on the application key identifier, the target key identifier, the copy key identifier, the initial escrow key, and the public key plaintext, including:

[0041] Based on the application key identifier, obtain the application personal identification code summary;

[0042] Based on the target personal identification code and target key identifier of the target user, the initial escrow key is decrypted to obtain the private key ciphertext;

[0043] Generate a temporary personal identification code, and perform hash calculation on the temporary personal identification code to obtain a temporary personal identification code digest;

[0044] Based on the temporary personal identification code and the copy key identifier, the private key ciphertext is encrypted to obtain a temporary escrow key;

[0045] Generate key copy information including temporary personal identification code digest, target key identifier, copy key identifier, temporary escrow key and public key plaintext.

[0046] In the above implementation process, key copy information including the temporary escrow key is generated, so that in subsequent steps, authorization activation can be performed based on the temporary escrow key.

[0047] In one implementation, decrypting the temporary escrow key based on the replica key identifier to obtain the private key ciphertext includes:

[0048] Obtain the temporary personal identification code also included in the authorization activation request;

[0049] Performing hash calculation on the temporary personal identification code to obtain a summary of the temporary personal identification code;

[0050] obtain a temporary personal identification code digest contained in the key copy information;

[0051] If the summary of the temporary personal identification code is the same as the summary of the temporary personal identification code, the temporary escrow key is decrypted based on the duplicate key identifier and the temporary personal identification code to obtain the private key ciphertext.

[0052] In the above implementation process, decryption is performed based on the temporary user identity to obtain the private key ciphertext, thereby improving the security of obtaining the private key ciphertext.

[0053] In one implementation, authorization activation is performed based on the applicant's personal identification code, the target key identifier, the duplicate key identifier, the public key plaintext, and the duplicate escrow key, including:

[0054] Obtain the contact information of the applicant user and the summary of the application personal identification code set for the application personal identification code;

[0055] Establish an association between the applicant's contact information, the applicant's personal identification code summary, the target key identifier, the copy key identifier, the public key plaintext, and the copy escrow key.

[0056] In the above implementation process, the above association relationship is established, that is, the association relationship between the applicant user and the target key copy is established, so that different applicant users can independently control the associated target key copy, thereby improving the flexibility of key authorization use control.

[0057] In one implementation, after authorization activation is performed based on the application personal identification code, the target key identifier, the copy key identifier, the public key plaintext, and the copy escrow key, the following is further included:

[0058] Receiving an authorization change request including a target key identifier and a copy key identifier, the authorization change request is used to request to revoke key authorization or change a key authorization policy of a target key copy;

[0059] Authenticate the target user based on the target key identifier in the authorization change request;

[0060] If the verification is successful, the key authorization for the target key copy is revoked or the key authorization policy of the target key copy is changed based on the copy key identifier in the authorization change request.

[0061] In the above implementation process, the key authorization can be revoked or changed, which improves the flexibility of key authorization.

[0062] In one aspect, a device for authorization activation is provided, comprising:

[0063] A receiving unit, used for receiving an authorization activation request sent by an application device;

[0064] A first acquisition unit is used to acquire a copy key identifier and apply for a personal identification code based on an authorization activation request, wherein the copy key identifier is used to identify a target key copy, and the target key copy is a copy created based on the target key;

[0065] A second acquisition unit, configured to acquire a private key ciphertext and a public key plaintext of a target key, and a target key identifier based on the copy key identifier;

[0066] An encryption unit, used to encrypt the private key ciphertext based on the replica key identifier and the application personal identification code to obtain the replica escrow key;

[0067] The authorization unit is used to perform authorization activation based on the applicant's personal identification code, the target key identifier, the replica key identifier, the public key plaintext, and the replica escrow key.

[0068] In one implementation, the first acquisition unit is used to:

[0069] Obtain the copy key identifier and application key identifier contained in the authorization activation request;

[0070] Based on the application key identifier, the applicant is authenticated;

[0071] If the identity verification is successful, the applicant obtains the personal identification code.

[0072] In one implementation, the first acquisition unit is used to:

[0073] Obtain the contact information set for the application key identification and the summary of the application personal identification code;

[0074] Sending a first verification code to the applicant device of the applicant through the contact method;

[0075] Receive the second verification code corresponding to the applicant user and the applicant's personal identification code;

[0076] If it is determined that the first verification code and the second verification code meet the verification failure condition, then the identity authentication fails, otherwise, the summary of the application personal identification code returned by the application device is determined;

[0077] If the application personal identification code digest is the same as the application personal identification code digest, it is determined that the identity authentication is successful, otherwise, it is determined that the identity authentication fails.

[0078] In one implementation, the second acquisition unit is used to:

[0079] Get key copy information set for the copy key identifier;

[0080] Obtain the private key ciphertext, public key plaintext and target key identifier contained in the key copy information, or obtain the temporary escrow key, public key plaintext and target key identifier contained in the key copy information, and decrypt the temporary escrow key based on the copy key identifier to obtain the private key ciphertext.

[0081] In one implementation, the second acquisition unit is further configured to:

[0082] Obtain the application key identifier and the target key identifier contained in the authorization request sent by the target device;

[0083] Authenticate the target user based on the target key identifier;

[0084] If it is determined that the identity authentication is passed, a key copy of the target key corresponding to the target key identifier is created, the target key copy is obtained, and a copy key identifier of the target key copy is generated;

[0085] Get the initial escrow key and public key plaintext set for the target key identity;

[0086] Based on the application key identifier, the target key identifier, the copy key identifier, the initial escrow key and the public key plaintext, the key copy information corresponding to the copy key identifier is generated.

[0087] In one implementation, the second acquisition unit is further configured to:

[0088] Based on the application key identifier, obtain the application personal identification code summary;

[0089] Based on the target personal identification code and target key identifier of the target user, the initial escrow key is decrypted to obtain the private key ciphertext;

[0090] Generate key copy information including the applicant's personal identification code digest, target key identifier, copy key identifier, private key ciphertext, and public key plaintext.

[0091] In one implementation, the second acquisition unit is further configured to:

[0092] Based on the application key identifier, obtain the application personal identification code summary;

[0093] Based on the target personal identification code and target key identifier of the target user, the initial escrow key is decrypted to obtain the private key ciphertext;

[0094] Generate a temporary personal identification code, and perform hash calculation on the temporary personal identification code to obtain a temporary personal identification code digest;

[0095] Based on the temporary personal identification code and the copy key identifier, the private key ciphertext is encrypted to obtain a temporary escrow key;

[0096] Generate key copy information including temporary personal identification code digest, target key identifier, copy key identifier, temporary escrow key and public key plaintext.

[0097] In one implementation, the second acquisition unit is further configured to:

[0098] Obtain the temporary personal identification code also included in the authorization activation request;

[0099] Performing hash calculation on the temporary personal identification code to obtain a summary of the temporary personal identification code;

[0100] obtain a temporary personal identification code digest contained in the key copy information;

[0101] If the summary of the temporary personal identification code is the same as the summary of the temporary personal identification code, the temporary escrow key is decrypted based on the duplicate key identifier and the temporary personal identification code to obtain the private key ciphertext.

[0102] In one implementation, the authorization unit is used to:

[0103] Obtain the contact information of the applicant user and the summary of the application personal identification code set for the application personal identification code;

[0104] Establish an association between the applicant's contact information, the applicant's personal identification code summary, the target key identifier, the copy key identifier, the public key plaintext, and the copy escrow key.

[0105] In one implementation, the authorization unit is further configured to:

[0106] Receiving an authorization change request including a target key identifier and a copy key identifier, the authorization change request is used to request to revoke key authorization or change a key authorization policy of a target key copy;

[0107] Authenticate the target user based on the target key identifier in the authorization change request;

[0108] If the verification is successful, the key authorization for the target key copy is revoked or the key authorization policy of the target key copy is changed based on the copy key identifier in the authorization change request.

[0109] On the one hand, a computer device is provided, including a processor and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps of the method provided in any of the various optional implementations of the above-mentioned authorization activation are executed.

[0110] On the one hand, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method provided in any of the various optional implementations of the above-mentioned authorization activation are executed.

[0111] On the one hand, a computer program product is provided. When the computer program product is run on a computer, the computer is caused to execute the steps of the method provided in any of the various optional implementations of the above authorization activation.

[0112] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0113] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0114] Figure 1 A flowchart of a key authorization method provided in an embodiment of the present application;

[0115] Figure 2 A flowchart of an implementation method of authorization activation provided in an embodiment of the present application;

[0116] Figure 3 A schematic diagram of the architecture of an authorization activation system provided in an embodiment of the present application Figure 1 ;

[0117] Figure 4 This is an implementation process of a key authorization and authorization activation method in the implementation method of this application Figure 1 ;

[0118] Figure 5 The following is a schematic diagram of the architecture of an authorization activation system in the implementation mode of the present application. Figure 2 ;

[0119] Figure 6 This is an implementation process of a key authorization and authorization activation method in the implementation method of this application Figure 2 ;

[0120] Figure 7 A structural block diagram of an authorization activation device provided in an embodiment of the present application;

[0121] Figure 8 It is a schematic diagram of the structure of a computer device in an embodiment of the present application. DETAILED DESCRIPTION

[0122] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0123] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0124] First, some terms involved in the embodiments of the present application are explained to facilitate understanding by those skilled in the art.

[0125] Terminal device: can be a mobile terminal, a fixed terminal or a portable terminal, such as a mobile phone, a station, a unit, a device, a multimedia computer, a multimedia tablet, an Internet node, a communicator, a desktop computer, a laptop computer, a notebook computer, a netbook computer, a tablet computer, a personal communication system device, a personal navigation device, a personal digital assistant, an audio / video player, a digital camera / camcorder, a positioning device, a television receiver, a radio broadcast receiver, an electronic book device, a gaming device or any combination thereof, including accessories and peripherals of these devices or any combination thereof. It is also foreseeable that the terminal device can support any type of interface for the user (such as a wearable device), etc.

[0126] Server: It can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, and big data and artificial intelligence platforms.

[0127] In order to personalize the authorization and expand the application scope of key authorization when performing key authorization for electronic seals, the embodiments of the present application provide a method, apparatus, computer device and readable storage medium for authorization activation.

[0128] The application scenario of the embodiment of the present application is: the target user holds the control right of the target key, and through the key authorization and authorization activation process in the embodiment of the present application, the control right of the target key copy of the target key is granted to the applicant user, that is, an association relationship is established between the target key copy and the applicant user, so that different applicant users can independently control and use the associated target key copy.

[0129] In the embodiments of the present application, only the execution subject is taken as an example of a server. In actual applications, the execution subject can also be a computer device such as a terminal device, which is not limited here.

[0130] In an embodiment of the present application, the target user authorizes the target key copy to the applicant user, and the applicant user authorizes and activates the target key copy so that the applicant user can independently control and use the target key copy.

[0131] See also Figure 1 As shown, it is an implementation flow chart of a key authorization method provided in an embodiment of the present application. The specific implementation process of the method is as follows:

[0132] Step 100: Obtain the application key identifier and the target key identifier contained in the authorization request sent by the target device.

[0133] Specifically, the target user obtains the application key identifier of the applicant user, the target key identifier of the target key to be authorized, and the key authorization policy through the target device, and sends an authorization request to the server. When the server determines that it has received the authorization request, it obtains the target key identifier, the application key identifier, and the key authorization policy contained in the authorization request.

[0134] It should be noted that both the applicant and the target user have at least one independent key, and the application device can be a terminal device or a server, and can be one or more, without limitation. The key authorization policy is used to indicate the authorized use of the target key, such as the authorized use period and the number of allowed calls.

[0135] It should be noted that different key authorization policies can be set for different applicants, so as to achieve personalized authorization for different applicants, so that different applicants can adopt different key authorization policies to use keys in subsequent steps.

[0136] In actual applications, the key authorization policy can be set according to the actual application scenario and is not restricted here.

[0137] In one implementation, the target user has an independent key (i.e., target key) in the managed key signature service, the target key identifier is keyId_A, and the applicant user has an independent key (i.e., application key) in the managed key signature service, the application key identifier is keyId_B. The target user applies to the managed key signature service to execute the requestKeyPairCounterpart process (authorization request), and the input parameters in the authorization request include: the target key identifier keyId_A of the target key to be authorized, the application key identifier keyId_B of the application key held by the applicant user, and the key authorization policy.

[0138] In this way, the target user can send an authorization request to the server to request that the target key be authorized for use by the applicant user.

[0139] Step 101: Authenticate the target user based on the target key identifier.

[0140] Specifically, when executing step 101, the following steps may be adopted:

[0141] S1011: Acquire the contact information set for the target key identifier and the target personal identification code summary.

[0142] In one implementation, metadata of the target key is obtained from a key library based on the target key identifier.

[0143] The metadata of the target key at least includes the contact information of the target user and the target personal identification code summary. The target personal identification code summary is a summary value obtained by performing a hash operation on the target personal identification number (PIN).

[0144] Optionally, the contact information may be the target user's mobile phone number or other methods, which are not limited here.

[0145] S1012: Send a first verification code to the target user through the above contact method.

[0146] Optionally, the first verification code may be a one-time password (OTP) or other types of verification codes, which are not limited here.

[0147] S1013: Receive a second verification code corresponding to the target user and a target personal identification code.

[0148] Specifically, the user inputs the received first verification code into the target device, and the target device returns the second verification code and the target personal identification code PIN_A to the server. The server receives the second verification code and the target personal identification code returned by the target device.

[0149] It should be noted that, to ensure security, OTP needs to be sent through an out-of-band channel. That is, the user receives the first verification code through one device and returns the second verification code through another device, or receives the activation link through SMS or email and verifies by clicking on the activation link.

[0150] For example, the server sends a randomly generated first verification code to the mobile phone of user Bob (the target user) (a communication device other than the target device) through the mobile phone number of user Bob (the target user). After receiving the first verification code sent by the server through the mobile phone, user Bob sends a second verification code and applies for a personal identification code to the server through the notebook (i.e. the target device).

[0151] S1014: If it is determined that the first verification code and the second verification code meet the verification failure condition, then the identity authentication fails; otherwise, a digest of the target personal identification code is determined.

[0152] Specifically, if the first verification code and the second verification code are the same, a hash calculation is performed on the target personal identification code returned by the target device to obtain a digest hashPIN_A of the target personal identification code.

[0153] For example, the verification failure condition may be that the first verification code and the second verification code are different, that is, if the first verification code and the second verification code are the same, it means that the first verification code is valid, otherwise, it means that the identity authentication fails, and an error message can be returned to the target device.

[0154] In actual applications, the verification failure condition can be set according to the actual application scenario and is not limited here.

[0155] S1015: If the target personal identification code digest is the same as the target personal identification code digest, it is determined that the identity authentication is successful, otherwise, it is determined that the identity authentication fails.

[0156] Specifically, if the target personal identification code digest is the same as the target personal identification code digest, it is determined that the identity authentication is successful, and the program running result of the completed identity authentication can be returned. If the target personal identification code digest is different from the target personal identification code digest, it is determined that the identity authentication fails. Error information can also be returned to the target device.

[0157] In this way, the identity of the target device can be verified, improving security.

[0158] Step 102: If it is determined that the identity authentication is passed, a key copy of the target key corresponding to the target key identifier is created, the target key copy is obtained, and a copy key identifier of the target key copy is generated.

[0159] It should be noted that the private key and public key plaintext contained in the target key copy are the same as the private key and public key plaintext contained in the target key. The private key ciphertext of the target key copy is the same as the private key ciphertext of the target key.

[0160] For example, a unique copy key identifier keyId_F is generated for the target key copy.

[0161] In this way, the private key ciphertext and public key plaintext of the target key, as well as the copy key identifier of the target key copy, can be obtained, so that an associated target key copy can be generated for each applicant user, so that different applicant users can independently control a target key copy.

[0162] Further, the target key identifier keyId_A is set as the original key identifier masterKeyId of the target key copy.

[0163] In this way, the target key copy can be associated with the original target key, so that when the key authorization is subsequently revoked, the association between the target key copy and the original target key can be used to verify whether the user applying for revocation has the authority.

[0164] Step 103: Obtain the initial escrow key and public key plaintext set for the target key identifier.

[0165] Specifically, the initial escrow key encUsrPri_A and the public key plaintext usrPub are obtained from the metadata corresponding to the target key identifier.

[0166] It should be noted that the initial escrow key encUsrPri_A is obtained by encrypting the private key ciphertext, and the private key ciphertext is obtained by encrypting the private key. In other words, the private key ciphertext is the ciphertext encrypted once with the private key, and the initial escrow key encUsrPri_A is the ciphertext encrypted twice with the private key.

[0167] Step 104: Generate key copy information corresponding to the copy key identifier based on the application key identifier, the target key identifier, the copy key identifier, the initial escrow key, and the public key plaintext.

[0168] Furthermore, key copy information corresponding to the copy key identifier may be generated based on the application key identifier, the target key identifier, the copy key identifier, the initial escrow key, the public key plaintext, and the key authorization policy.

[0169] Specifically, when generating key copy information, the following two methods can be used:

[0170] Method 1: Generate key copy information containing private key ciphertext based on the application key identifier, target key identifier, copy key identifier, initial escrow key, public key plaintext, and key authorization policy.

[0171] Method 2: Generate key copy information containing a temporary escrow key based on the application key identifier, target key identifier, copy key identifier, initial escrow key, public key plaintext, and key authorization policy.

[0172] When executing method 1, the following steps can be used:

[0173] Step 1: Based on the application key identifier, obtain the application personal identification code summary.

[0174] In one implementation, based on the application key identifier, metadata of the application key is obtained from the key library, and a summary of the applicant's personal identity code set for the application key identifier is obtained from the metadata of the application key.

[0175] The summary of the personal identification code for application is a summary value obtained by performing a hash operation on the personal identification code for application. The metadata of the application key includes the summary of the personal identification code for application and may also include the contact information of the applicant.

[0176] Optionally, the contact information can be the applicant's mobile phone number or other methods, which are not limited here.

[0177] Step 2: Based on the target user's target personal identification code and target key identifier, decrypt the initial escrow key to obtain the private key ciphertext.

[0178] Specifically, based on the target personal identification code PIN_A of the target user and the target key identifier keyId_A, a target encryption and decryption key key_A is generated, and based on the target encryption and decryption key key_A, a decryption operation is performed on the initial escrow key encUsrPri_A to obtain the private key ciphertext usrPri.

[0179] Among them, the target encryption and decryption key key_A is obtained by calculating the key derivation function KDF.

[0180] Optionally, the encryption and decryption algorithm for decryption may adopt the Advanced Encryption Standard (AES) algorithm, or may adopt the national secret SM4 block encryption.

[0181] In practical applications, the encryption and decryption algorithms can be set according to the actual application scenarios and are not limited here.

[0182] In one implementation, the target encryption and decryption key can be obtained using the following formula:

[0183] key0=KDF(SAM_SymKey, keyId_A||PIN_A);

[0184] key_A=Truncate(key0, 16Bytes).

[0185] Among them, key0 is the initial encryption and decryption key, KDF is the key derivation function, SAM_SymKey is the key securely stored inside the hardware cryptographic module, keyId_A is the target key identifier, PIN_A is the target personal identification code, Truncate is the truncation function, and key_A is the target encryption and decryption key.

[0186] In an embodiment of the present application, the target key identifier and the target personal identity identifier are taken as input, and the initial encryption and decryption key key0 is obtained through the key derivation function KDF calculation, and key0 is transformed into a 128-bit target encryption and decryption key key_A through the truncation function Truncate.

[0187] Among them, the key derivation function KDF can apply multiple algorithms. In the process of deriving the key, the key SAM_SymKey securely stored inside the hardware cryptographic module is used, ensuring that the key derivation process depends on the hardware cryptographic module device, making it impossible for attackers to calculate the encryption and decryption keys offline without the hardware cryptographic module device.

[0188] Furthermore, the target encryption and decryption key may be stored, for example, the target encryption and decryption key may be stored in a cache system.

[0189] Step 3: Generate key copy information including the applicant's personal identification code summary, target key identifier, copy key identifier, private key ciphertext, public key plaintext and key authorization policy.

[0190] In this way, a target key copy can be created based on the authorization request of the target user, and an association relationship between the applicant user and the target key copy can be established through the key copy information.

[0191] When executing method 2, the following steps can be used:

[0192] Step 1: Based on the application key identifier, obtain the application personal identification code summary.

[0193] Step 2: Based on the target user's target personal identification code and target key identifier, decrypt the initial escrow key to obtain the private key ciphertext.

[0194] Step 3: Generate a temporary personal identification code, and determine to perform a hash calculation on the temporary personal identification code to obtain a summary of the temporary personal identification code.

[0195] In one implementation, the managed key signing service is called to generate an initial PIN code, namely, a temporary personal identification code initPIN, through a random number generator.

[0196] Optionally, to ensure the security of the temporary personal identity code initPIN, the following security conditions may be set: the temporary personal identity code initPIN contains uppercase and lowercase letters, numbers and special symbols, and the character length of the temporary personal identity code initPIN is not less than a preset length (eg, 20 characters).

[0197] Furthermore, according to the contact information of the applicant user, the temporary personal identity code initPIN is sent to the applicant device of the applicant user.

[0198] For example, the interface of the SMS gateway may be called to send the temporary personal identification code initPIN to the mobile phone number of the applicant.

[0199] Step 4: Based on the temporary personal identification code and the copy key identifier, encrypt the private key ciphertext to obtain a temporary escrow key.

[0200] Specifically, based on the temporary personal identity code initPIN and the copy key identifier keyId_F, a temporary encryption and decryption key key_C is generated, and the private key ciphertext is encrypted according to the temporary encryption and decryption key key_C to obtain a temporary escrow key.

[0201] Among them, the temporary encryption and decryption key key_C can be determined based on a principle similar to that of determining the target encryption and decryption key key_A, which will not be elaborated here.

[0202] Step 5: Generate key copy information including temporary personal identification code summary, target key identifier, copy key identifier, temporary escrow key, public key plaintext, and key authorization policy.

[0203] In this way, a target key copy can be created based on the authorization request of the target user, and an association relationship between the applicant user and the target key copy can be established through the key copy information.

[0204] In an embodiment of the present application, after the target user authorizes the target key copy to the applicant user, the applicant user can authorize and activate the associated target key copy in a subsequent step so that the applicant user can independently control and use the associated target key copy.

[0205] See also Figure 2 As shown, it is an implementation flow chart of a method for authorization activation provided in an embodiment of the present application. The specific implementation process of the method is as follows:

[0206] Step 200: Receive an authorization activation request sent by an application device.

[0207] The authorization activation request includes the duplicate key identifier keyId_F and the application key identifier keyId_B. Optionally, the authorization activation request may also include a temporary personal identity code initPIN.

[0208] Step 201: Based on the authorization activation request, obtain the copy key identifier and apply for a personal identification code.

[0209] In one implementation, when executing step 201, the following steps may be used:

[0210] S2011: Obtain the copy key identifier and the application key identifier included in the authorization activation request.

[0211] Specifically, the copy key identifier is used to identify the target key copy. The target key copy is a copy created based on the target key.

[0212] S2012: Authenticate the applicant user based on the application key identifier.

[0213] Specifically, when executing S2012, the following steps may be adopted:

[0214] Step 1: Obtain the contact information for the application key identification setting and the application personal identification code summary.

[0215] In one implementation, based on the application key identifier, metadata of the application key is obtained from the key library, and contact information set for the application key identifier and a summary of the application personal identification code are obtained from the metadata of the application key.

[0216] The metadata of the application key at least includes the contact information of the applicant and the summary of the personal identification code of the applicant. The summary of the personal identification code of the applicant is a summary value obtained by performing a hash operation on the personal identification code of the applicant.

[0217] Optionally, the contact information can be the applicant's mobile phone number or other methods, which are not limited here.

[0218] Step 2: Send the first verification code to the applicant through the above contact method.

[0219] Specifically, the server sends the first verification code to the verification device of the applicant user through the contact information of the applicant user.

[0220] Step 3: Receive the second verification code corresponding to the applicant and the personal identification code of the applicant.

[0221] Specifically, the application device returns a second verification code and an application personal identification code PIN_B to the server based on the received first verification code. The server receives the second verification code and the application personal identification code returned by the application device.

[0222] Step 4: If it is determined that the first verification code and the second verification code meet the verification failure condition, then the identity authentication fails, otherwise, the summary of the application for the personal identification code is determined.

[0223] Step 5: If the summary of the applied personal identification code is the same as the summary of the applied personal identification code, it is determined that the identity authentication is successful, otherwise, it is determined that the identity authentication fails.

[0224] Specifically, if the summary of the personal identification code applied for is the same as the summary of the personal identification code applied for, it is determined that the identity authentication is successful, and the program running result of the completed identity authentication can be returned. If the summary of the personal identification code applied for is different from the summary of the personal identification code applied for, it is determined that the identity authentication fails. An error message can also be returned to the applying device.

[0225] In this way, the identity of the applicant device can be verified, which improves security.

[0226] S2013: If the identity authentication is successful, the applicant's personal identification code is obtained.

[0227] In this way, the applicant user can be authenticated to improve security.

[0228] Step 202: Based on the copy key identifier, obtain the private key ciphertext and public key plaintext of the target key, as well as the target key identifier.

[0229] Specifically, the key copy information set for the copy key identifier is obtained, and based on the key copy information, the private key ciphertext and public key plaintext of the target key, as well as the target key identifier, are obtained.

[0230] Furthermore, based on the copy key identifier, the private key ciphertext and public key plaintext of the target key, the target key identifier and the key authorization policy can be obtained.

[0231] The following two methods can be used to obtain the private key ciphertext and public key plaintext of the target key, the target key identifier, and the key authorization policy:

[0232] Method 1: Obtain the private key ciphertext, public key plaintext, target key identifier, and key authorization policy contained in the key copy information.

[0233] Method 2: Obtain the temporary escrow key, public key plaintext, target key identifier, and key authorization policy contained in the key copy information, and decrypt the temporary escrow key based on the copy key identifier to obtain the private key ciphertext.

[0234] In one implementation, a temporary encryption and decryption key key_C is generated based on the copy key identifier and the temporary personal identity code initPIN also included in the authorization activation request, and the temporary escrow key is decrypted based on the temporary encryption and decryption key key_C to obtain the private key ciphertext.

[0235] Furthermore, before executing method 2, the temporary personal identification code initPIN is first verified.

[0236] When verifying the temporary personal identification code initPIN, the following steps may be used:

[0237] The temporary personal identity code digest contained in the key copy information is obtained, and the temporary personal identity code initPIN also contained in the authorization activation request is hashed to obtain the digest of the temporary personal identity code initPIN; if the temporary personal identity code digest is the same as the digest of the temporary personal identity code initPIN, the temporary personal identity code initPIN verification is successful; otherwise, the temporary personal identity code initPIN verification fails, and the authorization activation process is stopped.

[0238] Step 203: Based on the copy key identifier and the application personal identification code, the private key ciphertext is encrypted to obtain the copy escrow key.

[0239] Specifically, based on the copy key identifier and the application personal identity identification code, a copy encryption and decryption key is generated, and the private key ciphertext usrPri is symmetrically encrypted (i.e., the second layer of encryption) using the copy encryption and decryption key Key_B and the copy key identifier keyId_F to obtain the copy custody key.

[0240] Optionally, the encryption and decryption algorithm may be the AES algorithm, the national SM4 block encryption, or other encryption and decryption algorithms, without limitation here.

[0241] Optionally, when obtaining the replica escrow key encUsrPri_F, the following formula may be used:

[0242] encUsrPri_F=Sym_Encrypt(keyId_F, usrPri||keyId_F);

[0243] Among them, keyId_F is the copy key identifier, and usrPri is the private key.

[0244] Optionally, the encryption and decryption algorithm can use AES block encryption, or national encryption SM4 block encryption, or can be set according to the actual application scenario, without limitation here.

[0245] Furthermore, after the copy hosting key is generated, the copy encryption and decryption key corresponding to the applicant user is deleted from the storage system to improve the security of encryption and decryption.

[0246] Furthermore, when performing key authorization, a key authorization record corresponding to the replica key identifier can also be established. And before the previous step 203, the key authorization record can also be searched by the replica key identifier. If the key authorization record corresponding to the replica key identifier is not established in the cache, the authorization activation process is terminated. And after the replica escrow key is generated, the key authorization record corresponding to the applicant user is deleted. In this way, the security of key authorization can be further improved.

[0247] Step 204: Authorization activation is performed based on the applicant's personal identification code, target key identifier, copy key identifier, public key plaintext, and copy escrow key.

[0248] Furthermore, authorization activation can also be performed based on the application personal identification code, target key identifier, copy key identifier, public key plaintext, copy escrow key and key authorization policy.

[0249] Specifically, when activating authorization, you can take the following steps:

[0250] S2041: Acquire the contact information of the applicant user and the summary of the applied personal identity identification code set for the application personal identity identification code.

[0251] Specifically, the application personal identification code digest hashPIN_B and contact information of the applicant user are obtained from the metadata corresponding to the application key identifier.

[0252] S2042: Establish an association relationship between the applicant's contact information, the applicant's personal identity code summary, the target key identifier, the copy key identifier, the public key plaintext, the copy escrow key, and the key authorization policy.

[0253] Specifically, an association relationship is established between the applicant's contact information telNum_B, the applicant's personal identity code digest hashPIN_B, the original key identifier masterKeyId of the target key copy, the copy key identifier keyId_F, the public key plaintext usrPub, the copy escrow key encUsrPri_F, and the key authorization policy.

[0254] The original key identifier masterKeyId of the target key copy is the target key identifier.

[0255] It should be noted that the execution order of the steps in the embodiments of the present application can be executed sequentially or in other orders, which is not limited here.

[0256] In an embodiment of the present application, after establishing an association between the applicant's contact information, the applicant's personal identity code summary, the target key identifier, the copy key identifier, the public key plaintext, the copy escrow key, and the key authorization policy, the applicant user has independent control over the target key copy.

[0257] In the embodiment of the present application, only the authorization of the target key to one applicant user is taken as an example for explanation. In actual application, based on the principle similar to that of authorizing the target key to one applicant user, the target key can be authorized to multiple different applicant users, which will not be elaborated here.

[0258] Furthermore, if the applicant needs to use the target key copy, after the applicant's identity verification is passed, the target key copy can be used to generate electronic signature data based on the above association relationship to realize the management and use of the company's electronic official seal.

[0259] Furthermore, after the target user passes the identity authentication, he or she can also revoke the key authorization of the applicant user or change the key authorization policy through the original key identifier masterKeyId.

[0260] In one embodiment, an authorization change request including a target key identifier and a copy key identifier is received, and the target user's identity is authenticated based on the target key identifier in the authorization change request; if the verification is successful, the key authorization for the target key copy corresponding to the copy key identifier is revoked or the key authorization policy of the above-mentioned target key copy is changed based on the copy key identifier in the authorization change request.

[0261] The authorization change request is used to request the revocation of key authorization or the change of key authorization policy.

[0262] Furthermore, a correspondence can be established between the original key identifier masterKeyId of the target key copy, the application key identifier keyId_B, and the key authorization policy. Based on the correspondence, the applicant user can further authorize the authorized target key copy to another user (i.e., the third user) based on a principle similar to authorizing the target key to an applicant user, thereby forming a chained key authorization relationship.

[0263] It should be noted that one or more target key copies can be created based on one target key.

[0264] After building a chain of key authorization relationships, it can be stipulated that any predecessor node of a target key copy (e.g., the target user) has the authority to revoke the key authorization of any one or more key copies that follow it in the chain (e.g., the key authorization of the target key copy of the applicant user), thereby achieving more flexible key authorization management.

[0265] In an embodiment of the present application, the copy encryption and decryption keys and private key ciphertext are security-sensitive parameters related to the user's keys, and have high security requirements. Therefore, a cache system can be used to store data with high security factors such as the user's copy encryption and decryption keys and private key ciphertext, thereby protecting the copy encryption and decryption keys and private key ciphertext to prevent data leakage.

[0266] Furthermore, the data may be encrypted before being stored in a cache system, and it is necessary to ensure key sharing between different nodes of a server (eg, a cluster system hosting a key signing service) so that the ciphertext data stored in the cache system can be correctly decrypted.

[0267] It should be noted that the embodiments of the present application need to be executed in a secure and controllable environment, and the cache system needs to be run in a secure and controllable environment.

[0268] Optionally, a secure and controllable environment can be built based on a trusted execution environment (TEE), such as by using an extension (Software Guard Extension, SGX) technology of the Intel instruction set architecture.

[0269] See also Figure 3 FIG. 1 is a schematic diagram of the architecture of an authorization activation system provided in an embodiment of the present application. Figure 1 The authorization activation system includes a key authorization module, a cache module and an authorization activation module.

[0270] The key authorization module stores the metadata of the target key and the metadata of the application key. The metadata of the target key includes the target personal identity code summary hashPI N_A, the target key identifier keyId_A, the initial escrow key encUsrPri_A and the public key plaintext usrPub. The metadata of the application key includes the application personal identity code summary hashPI N_B and the application key identifier keyId_B.

[0271] The key authorization module decrypts the initial escrow key encUsrPri_A based on the application key identifier PIN_A and the target key identifier keyId_A in the authorization request to obtain the private key ciphertext usrPri. The key authorization module also creates a key copy of the target key corresponding to the target key identifier, obtains the target key copy, and generates a copy key identifier keyId_F of the target key copy, and associates and stores the application personal identity code digest hashPIN_B, the copy key identifier keyId_F, the private key ciphertext usrPri, and the public key plaintext usrPub through the cache module.

[0272] After receiving the authorization activation request sent by the applicant device, the authorization activation module encrypts the private key ciphertext usrPri based on the copy key identifier keyId_F and the applicant personal identity code PI N_B, obtains the copy escrow key encUsrPri_F, and establishes an association between the applicant personal identity code digest hashPI N_B, the original key identifier masterKeyId of the target key copy (ie, the target key identifier keyId_A), the copy key identifier keyId_F, the public key manifest usrPub, the copy escrow key encUsrPri_F, and the key authorization policy.

[0273] It should be noted that when the authorization activation system performs key authorization and authorization activation, the specific steps refer to the above steps 100 to 104 and the above steps 200 to 204, and the specific steps are not repeated here.

[0274] Combination Figure 3 The license activation system shown provides further details on key authorization and license activation. Figure 4 The following is an implementation flow of a key authorization and authorization activation method provided in an embodiment of the present application. Figure 1 .

[0275] Step 400: The server receives an authorization request sent by the target device.

[0276] The authorization request may include the application key identifier and target key identifier, and may also include a key authorization policy.

[0277] Step 401: The server creates a key copy of a target key corresponding to a target key identifier, obtains the target key copy, and generates a copy key identifier of the target key copy.

[0278] Step 402: The server obtains the initial escrow key and the public key plaintext set for the target key identifier.

[0279] Step 403: The server obtains the applicant's personal identification code summary based on the application key identifier.

[0280] Step 404: The server decrypts the initial escrow key based on the target personal identification code and the target key identifier of the target user to obtain the private key ciphertext.

[0281] Step 405: The server generates key copy information including the applicant's personal identification code summary, target key identifier, copy key identifier, private key ciphertext and public key plaintext.

[0282] Furthermore, the server may also generate key copy information including a summary of the applicant's personal identification code, a target key identifier, a copy key identifier, a private key ciphertext, a public key plaintext, and a key authorization policy.

[0283] Step 406: The server receives the authorization activation request sent by the application device.

[0284] The authorization activation request includes the copy key identifier keyId_F and the application key identifier keyId_B.

[0285] Step 407: The server obtains the duplicate key identifier and applies for a personal identification code based on the authorization activation request.

[0286] Step 408: The server obtains the private key ciphertext, public key plaintext and target key identifier contained in the key copy information based on the copy key identifier.

[0287] Furthermore, the server may also obtain the key authorization policy included in the key copy information.

[0288] Step 409: The server encrypts the private key ciphertext based on the copy key identifier and the application personal identification code to obtain the copy escrow key.

[0289] Step 410: The server performs authorization activation based on the applicant's personal identification code, target key identifier, copy key identifier, public key plaintext, and copy escrow key.

[0290] Furthermore, the server can also perform authorization activation based on the applicant's personal identification code, target key identifier, copy key identifier, public key plaintext, copy escrow key and key authorization policy.

[0291] It should be noted that when executing step 400 to step 410, the specific steps refer to the above-mentioned step 100 to step 104, and the above-mentioned step 200 to step 204, and the specific steps are not repeated here.

[0292] See also Figure 5 FIG. 1 is a schematic diagram of the architecture of an authorization activation system provided in an embodiment of the present application. Figure 2 The authorization activation system includes a key authorization module and an authorization activation module. The key authorization module contains metadata of the target key and metadata of the application key. The metadata of the target key includes the target personal identification code digest hashPIN_A, the target key identifier keyId_A, the initial escrow key encUsrPri_A and the public key plaintext usrPub.

[0293] The key authorization module decrypts the initial escrow key encUsrPri_A based on the application key identifier PIN_A in the authorization request and the target key identifier keyId_A to obtain the private key ciphertext usrPri. The key authorization module also creates a key copy of the target key corresponding to the target key identifier, obtains the target key copy, and generates a copy key identifier keyId_F of the target key copy.

[0294] The key authorization module generates a temporary encryption and decryption key key_C based on the temporary personal identity code initPIN and the copy key identifier keyId_F, and encrypts the private key ciphertext according to the temporary encryption and decryption key key_C to obtain a temporary escrow key.

[0295] The authorization and activation module obtains the temporary personal identity code initPIN contained in the authorization and activation request of the application device, generates a temporary encryption and decryption key key_C based on the temporary personal identity code initPIN, and decrypts the temporary escrow key according to the temporary encryption and decryption key key_C to obtain the private key ciphertext usrPri.

[0296] The authorization activation module generates a copy encryption and decryption key based on the copy key identifier and the applicant's personal identity code, and uses the copy encryption and decryption key to encrypt the private key ciphertext again to obtain the copy escrow key encUsrPri_F, and establishes an association between the applicant's personal identity code digest hashPI N_B, the original key identifier masterKeyId of the target key copy (ie, the target key identifier keyId_A), the copy key identifier keyId_F, the public key manifest usrPub, the copy escrow key encUsrPri_F, and the key authorization policy.

[0297] It should be noted that when the authorization activation system performs key authorization and authorization activation, the specific steps refer to the above steps 100 to 104 and the above steps 200 to 204, and the specific steps are not repeated here.

[0298] Combination Figure 5 The license activation system shown provides further details on key authorization and license activation. Figure 6 The following is an implementation flow of a key authorization and authorization activation method provided in an embodiment of the present application. Figure 2 .

[0299] Step 600: The server obtains the application key identifier and the target key identifier contained in the authorization request sent by the target device.

[0300] Furthermore, the server may also obtain the application key identifier, the target key identifier, and the key authorization policy contained in the authorization request sent by the target device.

[0301] Step 601: The server authenticates the target user based on the target key identifier.

[0302] Step 602: If it is determined that the identity authentication is successful, the server creates a key copy of the target key corresponding to the target key identifier, obtains the target key copy, and generates a copy key identifier of the target key copy.

[0303] Step 603: The server decrypts the initial escrow key based on the target personal identification code and the target key identifier of the target user to obtain the private key ciphertext.

[0304] Step 604: The server generates a temporary personal identification code, and determines to perform a hash calculation on the temporary personal identification code to obtain a temporary personal identification code digest.

[0305] Step 605: The server encrypts the private key ciphertext based on the temporary personal identification code and the copy key identifier to obtain a temporary escrow key.

[0306] Step 606: The server generates key copy information including a temporary personal identification code digest, a target key identifier, a copy key identifier, a temporary escrow key, and a public key plaintext.

[0307] Furthermore, the server may also generate key copy information including a temporary personal identification code digest, a target key identifier, a copy key identifier, a temporary escrow key, a public key plaintext, and a key authorization policy.

[0308] Step 607: The server sends the temporary personal identification code to the application device.

[0309] Step 608: The server receives the authorization activation request sent by the application device.

[0310] Step 609: The server obtains the duplicate key identifier, applies for a personal identification code, and a temporary personal identification code based on the authorization activation request.

[0311] Step 610: The server generates a temporary encryption and decryption key according to the duplicate key identifier and the temporary personal identification code.

[0312] Step 611: The server decrypts the temporary escrow key according to the temporary encryption and decryption key to obtain the private key ciphertext.

[0313] Step 612: The server encrypts the private key ciphertext based on the copy key identifier and the application personal identification code to obtain the copy escrow key.

[0314] Step 613: The server performs authorization activation based on the applicant's personal identification code, target key identifier, copy key identifier, public key plaintext, and copy escrow key.

[0315] Furthermore, the server can also perform authorization activation based on the applicant's personal identification code, target key identifier, copy key identifier, public key plaintext, copy escrow key and key authorization policy.

[0316] It should be noted that when executing step 600 to step 613, the specific steps refer to the above-mentioned steps 100 to step 104, and the above-mentioned steps 200 to step 204, and the specific steps are not repeated here.

[0317] Based on the same inventive concept, an authorization activation device is also provided in the embodiment of the present application. Since the principle of solving the problem by the above-mentioned device and equipment is similar to that of an authorization activation method, the implementation of the above-mentioned device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0318] like Figure 7 As shown, it is a structural diagram of an authorization activation device provided in an embodiment of the present application, including:

[0319] The receiving unit 701 is used to receive an authorization activation request sent by an application device;

[0320] The first acquisition unit 702 is used to acquire a duplicate key identifier and apply for a personal identification code based on the authorization activation request, where the duplicate key identifier is used to identify a target key duplicate, which is a copy created based on the target key;

[0321] The second acquisition unit 703 is used to acquire the private key ciphertext and the public key plaintext of the target key and the target key identifier based on the copy key identifier;

[0322] The encryption unit 704 is used to encrypt the private key ciphertext based on the copy key identifier and the application personal identification code to obtain the copy escrow key;

[0323] The authorization unit 705 is used to perform authorization activation based on the applicant's personal identification code, the target key identifier, the copy key identifier, the public key plaintext, and the copy escrow key.

[0324] In one implementation, the first acquiring unit 702 is used to:

[0325] Obtain the copy key identifier and application key identifier contained in the authorization activation request;

[0326] Based on the application key identifier, the applicant is authenticated;

[0327] If the identity verification is successful, the applicant obtains the personal identification code.

[0328] In one implementation, the first acquiring unit 702 is used to:

[0329] Obtain the contact information set for the application key identification and the summary of the application personal identification code;

[0330] Sending a first verification code to the applicant device of the applicant through the contact method;

[0331] Receive the second verification code corresponding to the applicant user and the applicant's personal identification code;

[0332] If it is determined that the first verification code and the second verification code meet the verification failure condition, then the identity authentication fails, otherwise, the summary of the application personal identification code returned by the application device is determined;

[0333] If the application personal identification code digest is the same as the application personal identification code digest, it is determined that the identity authentication is successful, otherwise, it is determined that the identity authentication fails.

[0334] In one implementation, the second obtaining unit 703 is used to:

[0335] Get key copy information set for the copy key identifier;

[0336] Obtain the private key ciphertext, public key plaintext and target key identifier contained in the key copy information, or obtain the temporary escrow key, public key plaintext and target key identifier contained in the key copy information, and decrypt the temporary escrow key based on the copy key identifier to obtain the private key ciphertext.

[0337] In one implementation, the second obtaining unit 703 is further configured to:

[0338] Obtain the application key identifier and the target key identifier contained in the authorization request sent by the target device;

[0339] Authenticate the target user based on the target key identifier;

[0340] If it is determined that the identity authentication is passed, a key copy of the target key corresponding to the target key identifier is created, the target key copy is obtained, and a copy key identifier of the target key copy is generated;

[0341] Get the initial escrow key and public key plaintext set for the target key identity;

[0342] Based on the application key identifier, the target key identifier, the copy key identifier, the initial escrow key and the public key plaintext, the key copy information corresponding to the copy key identifier is generated.

[0343] In one implementation, the second obtaining unit 703 is further configured to:

[0344] Based on the application key identifier, obtain the application personal identification code summary;

[0345] Based on the target personal identification code and target key identifier of the target user, the initial escrow key is decrypted to obtain the private key ciphertext;

[0346] Generate key copy information including the applicant's personal identification code digest, target key identifier, copy key identifier, private key ciphertext, and public key plaintext.

[0347] In one implementation, the second obtaining unit 703 is further configured to:

[0348] Based on the application key identifier, obtain the application personal identification code summary;

[0349] Based on the target personal identification code and target key identifier of the target user, the initial escrow key is decrypted to obtain the private key ciphertext;

[0350] Generate a temporary personal identification code, and perform hash calculation on the temporary personal identification code to obtain a temporary personal identification code digest;

[0351] Based on the temporary personal identification code and the copy key identifier, the private key ciphertext is encrypted to obtain a temporary escrow key;

[0352] Generate key copy information including temporary personal identification code digest, target key identifier, copy key identifier, temporary escrow key and public key plaintext.

[0353] In one implementation, the second obtaining unit 703 is further configured to:

[0354] Obtain the temporary personal identification code also included in the authorization activation request;

[0355] Performing hash calculation on the temporary personal identification code to obtain a summary of the temporary personal identification code;

[0356] obtain a temporary personal identification code digest contained in the key copy information;

[0357] If the summary of the temporary personal identification code is the same as the summary of the temporary personal identification code, the temporary escrow key is decrypted based on the duplicate key identifier and the temporary personal identification code to obtain the private key ciphertext.

[0358] In one implementation, the authorization unit 705 is used to:

[0359] Obtain the contact information of the applicant user and the summary of the application personal identification code set for the application personal identification code;

[0360] Establish an association between the applicant's contact information, the applicant's personal identification code summary, the target key identifier, the copy key identifier, the public key plaintext, and the copy escrow key.

[0361] In one implementation, the authorization unit 705 is further configured to:

[0362] Receiving an authorization change request including a target key identifier and a copy key identifier, the authorization change request is used to request to revoke key authorization or change a key authorization policy of a target key copy;

[0363] Authenticate the target user based on the target key identifier in the authorization change request;

[0364] If the verification is successful, the key authorization for the target key copy is revoked or the key authorization policy of the target key copy is changed based on the copy key identifier in the authorization change request.

[0365] Figure 8 FIG. 8 is a schematic diagram showing the structure of a computer device 8000. Figure 8 As shown, the computer device 8000 includes: a processor 8010 and a memory 8020 , and optionally, may also include a power supply 8030 , a display unit 8040 , and an input unit 8050 .

[0366] The processor 8010 is the control center of the computer device 8000. It uses various interfaces and lines to connect various components, and performs various functions of the computer device 8000 by running or executing software programs and / or data stored in the memory 8020, thereby monitoring the computer device 8000 as a whole.

[0367] In the embodiment of the present application, the processor 8010 executes the various steps in the above embodiment when calling the computer program stored in the memory 8020.

[0368] Optionally, the processor 8010 may include one or more processing units; preferably, the processor 8010 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and applications, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 8010. In some embodiments, the processor and the memory may be implemented on a single chip, and in some embodiments, they may also be implemented separately on separate chips.

[0369] The memory 8020 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, various applications, etc.; the data storage area may store data created according to the use of the computer device 8000, etc. In addition, the memory 8020 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices, etc.

[0370] The computer device 8000 also includes a power supply 8030 (such as a battery) for supplying power to various components. The power supply can be logically connected to the processor 8010 through a power management system, thereby managing functions such as charging, discharging, and power consumption through the power management system.

[0371] The display unit 8040 may be used to display information input by a user or information provided to a user, various menus of the computer device 8000, and in the embodiment of the present invention, is mainly used to display the display interface of each application in the computer device 8000 and objects such as text and pictures displayed in the display interface. The display unit 8040 may include a display panel 8041. The display panel 8041 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

[0372] The input unit 8050 may be used to receive information such as numbers or characters input by the user. The input unit 8050 may include a touch panel 8051 and other input devices 8052. The touch panel 8051, also known as a touch screen, may collect user touch operations on or near it (such as operations performed by the user using a finger, a stylus, or any other suitable object or accessory on or near the touch panel 8051).

[0373] Specifically, the touch panel 8051 can detect the user's touch operation, detect the signal brought by the touch operation, convert these signals into touch point coordinates, send them to the processor 8010, and receive and execute the command sent by the processor 8010. In addition, the touch panel 8051 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. Other input devices 8052 can include but are not limited to one or more of a physical keyboard, function keys (such as volume control keys, power on / off keys, etc.), a trackball, a mouse, a joystick, etc.

[0374] Of course, the touch panel 8051 can cover the display panel 8041. When the touch panel 8051 detects a touch operation on or near it, it transmits it to the processor 8010 to determine the type of touch event, and then the processor 8010 provides corresponding visual output on the display panel 8041 according to the type of touch event. Figure 8 In the embodiment, the touch panel 8051 and the display panel 8041 are used as two independent components to implement the input and output functions of the computer device 8000, but in some embodiments, the touch panel 8051 and the display panel 8041 can be integrated to implement the input and output functions of the computer device 8000.

[0375] The computer device 8000 may also include one or more sensors, such as a pressure sensor, a gravity acceleration sensor, a proximity light sensor, etc. Of course, according to the needs of specific applications, the computer device 8000 may also include other components such as a camera. Since these components are not the key components used in the embodiments of the present application, Figure 8 It is not shown and will not be described in detail.

[0376] Those skilled in the art will understand that Figure 8 This is merely an example of a computer device and does not constitute a limitation on the computer device. The computer device may include more or fewer components than shown in the figure, or a combination of certain components, or different components.

[0377] In an embodiment of the present application, a computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, a communication device can perform each step in the above embodiment.

[0378] For the convenience of description, the above parts are divided into modules (or units) according to their functions and described separately. Of course, when implementing this application, the functions of each module (or unit) can be implemented in the same or multiple software or hardware.

[0379] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0380] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0381] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0382] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0383] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0384] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for authorization activation, characterized in that: include: Receive the authorization activation request sent by the application device; Based on the authorization activation request, obtaining a copy key identifier and applying for a personal identification code, wherein the copy key identifier is used to identify a target key copy, and the target key copy is a copy created based on the target key; Based on the copy key identifier, obtain the private key ciphertext and public key plaintext of the target key, as well as the target key identifier; Based on the copy key identifier and the applicant personal identification code, encrypt the private key ciphertext to obtain a copy escrow key; Authorization activation is performed based on the applicant personal identification code, the target key identifier, the copy key identifier, the public key plaintext, and the copy escrow key.

2. The method according to claim 1, characterized in that The obtaining of the duplicate key identifier and applying for a personal identification code based on the authorization activation request includes: Obtaining the copy key identifier and the application key identifier contained in the authorization activation request; authenticating the applicant based on the application key identifier; If the identity verification is successful, the applicant's personal identification code is obtained.

3. The method according to claim 2, characterized in that The identity verification of the applicant user based on the application key identifier includes: Obtaining the contact information set for the application key identifier and the summary of the application personal identification code; Sending a first verification code to the applicant device of the applicant user through the contact method; Receiving a second verification code corresponding to the applicant user and an applicant personal identification code; If it is determined that the first verification code and the second verification code meet the verification failure condition, then the identity authentication fails; otherwise, the summary of the application personal identity identification code returned by the application device is determined; If the summary of the application personal identification code is the same as the summary of the application personal identification code, it is determined that the identity authentication is successful, otherwise, it is determined that the identity authentication fails.

4. The method according to any one of claims 1 to 3, characterized in that: The step of obtaining the private key ciphertext and the public key plaintext of the target key and the target key identifier based on the copy key identifier includes: Obtain key copy information set for the copy key identifier; Obtain the private key ciphertext, the public key plaintext and the target key identifier contained in the key copy information, or obtain the temporary escrow key, the public key plaintext and the target key identifier contained in the key copy information, and decrypt the temporary escrow key based on the copy key identifier to obtain the private key ciphertext.

5. The method according to claim 4, characterized in that Before receiving the authorization activation request sent by the application device, the method further includes: Obtaining the application key identifier and the target key identifier contained in the authorization request sent by the target device; authenticating the target user based on the target key identifier; If it is determined that the identity authentication is passed, a key copy of the target key corresponding to the target key identifier is created, the target key copy is obtained, and a copy key identifier of the target key copy is generated; Obtaining an initial escrow key set for the target key identifier and the public key plaintext; Based on the application key identifier, the target key identifier, the copy key identifier, the initial escrow key and the public key plaintext, the key copy information corresponding to the copy key identifier is generated.

6. The method according to claim 5, characterized in that If the key copy information includes the private key ciphertext, then generating the key copy information corresponding to the copy key identifier based on the application key identifier, the target key identifier, the copy key identifier, the initial escrow key and the public key plaintext includes: Based on the application key identifier, obtaining a summary of the applicant's personal identity identification code; Decrypting the initial escrow key based on the target personal identification code of the target user and the target key identifier to obtain the private key ciphertext; Generate the key copy information including the applicant personal identity code summary, the target key identifier, the copy key identifier, the private key ciphertext and the public key plaintext.

7. The method according to claim 5, characterized in that If the key copy information includes the temporary escrow key, generating the key copy information corresponding to the copy key identifier based on the application key identifier, the target key identifier, the copy key identifier, the initial escrow key and the public key plaintext includes: Based on the application key identifier, obtaining a summary of the applicant's personal identity identification code; Decrypting the initial escrow key based on the target personal identification code of the target user and the target key identifier to obtain the private key ciphertext; Generate a temporary personal identification code, and perform hash calculation on the temporary personal identification code to obtain a temporary personal identification code digest; Encrypting the private key ciphertext based on the temporary personal identification code and the duplicate key identifier to obtain the temporary escrow key; Generate the key copy information including the temporary personal identification code digest, the target key identifier, the copy key identifier, the temporary escrow key and the public key plaintext.

8. The method according to claim 7, characterized in that The decrypting the temporary escrow key based on the copy key identifier to obtain the private key ciphertext includes: Obtaining a temporary personal identification code also included in the authorization activation request; Performing hash calculation on the temporary personal identification code to obtain a summary of the temporary personal identification code; Obtaining a temporary personal identification code digest contained in the key copy information; If the summary of the temporary personal identification code is the same as the summary of the temporary personal identification code, the temporary escrow key is decrypted based on the duplicate key identifier and the temporary personal identification code to obtain the private key ciphertext.

9. The method according to claim 8, characterized in that The authorization activation based on the applicant personal identification code, the target key identifier, the copy key identifier, the public key plaintext, and the copy escrow key includes: Obtaining the contact information of the applicant user and the summary of the application personal identification code set for the application personal identification code; Establish an association relationship between the contact information of the applicant user, the summary of the applicant personal identity code, the target key identifier, the copy key identifier, the public key plaintext and the copy escrow key.

10. The method according to any one of claims 1 to 3, characterized in that: After the authorization activation is performed based on the application personal identification code, the target key identifier, the copy key identifier, the public key plaintext, and the copy escrow key, the method further includes: Receiving an authorization change request including a target key identifier and a copy key identifier, the authorization change request being used to request revocation of key authorization or change of a key authorization policy of the target key copy; authenticating the target user based on the target key identifier in the authorization change request; If the verification is successful, the key authorization for the target key copy is revoked or the key authorization policy of the target key copy is changed based on the copy key identifier in the authorization change request.

11. A device for authorization activation, characterized in that: include: A receiving unit, used for receiving an authorization activation request sent by an application device; A first acquisition unit is used to acquire a copy key identifier and apply for a personal identification code based on the authorization activation request, wherein the copy key identifier is used to identify a target key copy, and the target key copy is a copy created based on the target key; A second acquisition unit, configured to acquire the private key ciphertext and the public key plaintext of the target key, and the target key identifier based on the copy key identifier; An encryption unit, used to encrypt the private key ciphertext based on the copy key identifier and the applicant personal identification code to obtain a copy escrow key; The authorization unit is used to perform authorization activation based on the applicant personal identification code, the target key identifier, the copy key identifier, the public key plaintext, and the copy escrow key.

12. A computer device, characterized in that: The method comprises a processor and a memory, wherein the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the method according to any one of claims 1 to 10 is executed.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 10 is executed.