A revocable identity-based key encryption method, storage medium and device

By introducing the method of key distribution center and hash function to generate public keys in identity-based encryption technology, the problem of insufficient key revocation mechanism in identity-based encryption technology is solved, and the secure management of keys and communication security are improved.

CN118018310BActive Publication Date: 2024-09-17BLOCKCHAIN NEW TECHNOLOGY (GUANGZHOU) CO LTD +2
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410271716.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-11
Publication Date
2024-09-17
Estimated Expiration
2044-03-11

AI Technical Summary

Technical Problem

Identity-based encryption technology lacks a flexible key revocation mechanism and cannot effectively respond to key leaks or other security threats, affecting communication security.

Method used

A revocable identity-based key encryption method is designed. The key issuance center generates a private key based on the user's identity information and master key, and uses global parameters and hash functions to generate a public key to achieve secure management of the key. and a revocation mechanism, including randomly allocating nodes on a binary tree and calculating updated keys, to promptly revoke insecure private keys.

Benefits of technology

It ensures the security and uniqueness of the key, simplifies the key exchange process, improves communication efficiency, and can respond to key leaks or other security threats in a timely manner, ensuring the security of communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118018310B
    Figure CN118018310B
Patent Text Reader

Abstract

The present application provides a revocable identity-based key encryption method, storage medium and device, the method includes presetting a key issuing center; obtaining identity information provided by a user, and registering the user according to the identity information; generating the user's private key through an encryption algorithm according to the user's identity information and a master key; the sender uses global parameters and a public hash function to generate the receiver's public key according to the receiver's identity information, and encrypts the message according to the receiver's public key; the receiver uses the private key to decrypt the received information; when a user's private key is determined to be unsafe, the key issuing center chooses to revoke its key. The present invention generates the receiver's public key through a public hash function and global parameters, simplifies the key exchange process, and improves communication efficiency; the key issuing center can revoke unsafe private keys in a timely manner, effectively respond to key leaks or other security threats, and ensure the security of communications.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of asymmetric encryption algorithm protection technology, and in particular to a revocable identity-based key encryption method, storage medium and device. Background Art

[0002] The background and development of revocable identity-based cryptography are related to the history of identity-based cryptography. The main innovation of identity-based cryptography is that it allows users' public keys to be directly generated from their identity information, without relying on certificates as in traditional public key infrastructure. Boneh and Franklin proposed the first practical identity-based cryptography scheme, which is based on elliptic curve cryptography based on bilinear mapping.

[0003] Currently, identity-based encryption facilitates key management, but it lacks a flexible key revocation mechanism. In traditional public key encryption systems, certificate revocation lists or online certificate status protocols can be used to revoke keys, but this is not directly applicable in identity-based encryption technology systems. Summary of the invention

[0004] In order to overcome the above technical defects, the present invention provides a revocable identity-based key encryption method, storage medium and device, which can improve the security of communication.

[0005] In order to solve the above problems, the present invention is implemented according to the following technical solutions:

[0006] In a first aspect, the present invention provides a revocable identity-based key encryption method, comprising the following steps:

[0007] Preset key distribution center;

[0008] The key issuing center obtains the identity information provided by the user and registers the user based on the identity information;

[0009] The key issuing center generates the user's private key through an encryption algorithm based on the user's identity information and master key;

[0010] The sender generates the receiver's public key based on the receiver's identity information using global parameters and a public hash function, and encrypts the message using the receiver's public key.

[0011] The receiver uses the private key to decrypt the received information;

[0012] When a user's private key is judged to be unsafe, the key distribution center chooses to revoke the key.

[0013] As an improvement to the above solution, the step of presetting the key issuing center includes:

[0014] The key issuing center obtains the security parameters input by the user, selects a bilinear generator based on the input security parameters, and generates cryptographic parameters;

[0015] The key issuing center selects a tree with n nodes, where each node has at most two child nodes, for storing user information, initializes an empty list for recording the credentials of the revoked user, and initializes the status information;

[0016] The key issuing center generates public parameters;

[0017] The key distribution center stores the system master key.

[0018] As an improvement of the above solution, the step of obtaining identity information provided by a user of the key issuing center and performing user registration according to the identity information includes:

[0019] The key issuing center obtains the identity information provided by the user to the key issuing center;

[0020] The key issuance center verifies the identity information provided by the user.

[0021] As an improvement to the above solution, the step of generating the user's private key by the key issuing center through an encryption algorithm according to the user's identity information and the master key includes:

[0022] The key issuing center randomly allocates an unused leaf node on the binary tree to store the current user's information based on the public parameters, system master key, state information, attribute set, attribute vector and user ID input by the user. For each node, a vector is randomly selected and stored in the node, and the index key is calculated;

[0023] The key issuing center extracts the corresponding random vector from the previously generated node and calculates the updated key based on the status information input by the user, the system master key, the current time period and the latest revocation list;

[0024] The key issuing center randomly selects a vector for each node based on the public parameters input by the user, the user's attribute private key and the update key, and calculates the user's complete decryption key within the time period.

[0025] As an improvement of the above solution, the sender generates the public key of the receiver according to the identity information of the receiver using global parameters and a public hash function, and encrypts the message according to the public key of the receiver, including:

[0026] The sender takes the received public parameters, access control policy, plaintext message, and current time period as input and randomly selects the required parameters;

[0027] The sender calculates the hash value based on the input parameters and the randomly selected parameters;

[0028] The sender generates a ciphertext based on the calculated hash value and other parameters to encrypt the original message.

[0029] As an improvement of the above solution, the receiving party uses the private key to decrypt the received information, including the following steps:

[0030] The receiver takes the received ciphertext, the user's private key, and the scheme as input and verifies whether the time period corresponding to the user's private key matches the time period in the ciphertext;

[0031] The receiver calculates the parameters that make the decryption equation valid and recovers the plaintext message.

[0032] As an improvement to the above solution, when a user's private key is determined to be unsafe, the key issuing center chooses to revoke the key, including the following steps:

[0033] The key issuing center updates and outputs the latest user revocation list based on the input current revocation list, the user to be revoked, and the current time period;

[0034] The key distribution center generates new global parameters and broadcasts the new global parameters and the updated revocation list.

[0035] In a second aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor to implement the revocable identity-based key encryption method as described in the first aspect.

[0036] In a third aspect, the present invention provides a device, comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, at least one program, a code set or an instruction set is loaded and executed by the processor to implement the revocable identity-based key encryption method as described in the first aspect.

[0037] Compared with the prior art, the present invention has the following beneficial effects:

[0038] This application generates a private key based on the user's identity information and master key, ensuring the security and uniqueness of the key; generates the recipient's public key through a public hash function and global parameters, simplifying the key exchange process and improving communication efficiency; the key issuance center can revoke unsafe private keys in a timely manner, effectively respond to key leaks or other security threats, and ensure the security of communications. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The specific embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings, wherein:

[0040] Figure 1 A schematic diagram of a process flow of a revocable identity-based key encryption method in an embodiment of the present application;

[0041] Figure 2 This is a schematic diagram of the process of step S1 described in the embodiment of the present application;

[0042] Figure 3 This is a flow chart of step S2 described in the embodiment of the present application;

[0043] Figure 4 Schematic diagram of the process of step S3 described in the embodiment of the present application;

[0044] Figure 5 Schematic diagram of the process of step S4 described in the embodiment of the present application;

[0045] Figure 6 Schematic diagram of the process of step S5 described in the embodiment of the present application;

[0046] Figure 7 Schematic diagram of the process of step S6 described in the embodiment of the present application. DETAILED DESCRIPTION

[0047] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0048] It should be noted that the serial numbers mentioned in this article, such as S1, S2, etc., are only used to distinguish between steps and do not mean that the steps must be strictly executed in the order of the serial numbers.

[0049] In one embodiment, Figure 1 As shown, a revocable identity-based key encryption method is provided, comprising the following steps:

[0050] S1: preset key issuing center;

[0051] Specifically, a trusted key distribution center is established in advance, whose responsibility is to manage and distribute master keys and handle key revocation.

[0052] In the embodiments of the present application, Figure 2 As shown, step S1 specifically includes the following steps:

[0053] S11: The key issuing center obtains the security parameters input by the user, selects a bilinear generator based on the input security parameters, and generates cryptographic parameters;

[0054] Specifically, input the security parameter λ, the maximum length of the time period l and the maximum length supported by the system and the maximum number of users N supported by the system, let the algorithm select a bilinear generator This generator is a function that takes as input a security parameter λ and outputs a set of cryptographic parameters that compute:

[0055]

[0056] G and H are two finite cyclic groups with the same prime order, G T is another finite cyclic group, where e is a bilinear map G×H→G T , g and h are the generators of groups G and H respectively.

[0057] Choose a large prime number p to define a finite field Z p , and then choose a one-way hash function:

[0058] H:0,1 * →Z p #(2)

[0059] And randomly select the following parameters:

[0060]

[0061]

[0062]

[0063]

[0064] In the finite field Z p Randomly select d elements from to form a vector, each element is independently randomly selected and has a value range of [0, p-1].

[0065] S12: The key issuing center selects a tree with n nodes, where each node has at most two child nodes, for storing user information, initializes an empty list for recording the credentials of the revoked user, and initializes the status information;

[0066] Specifically, a tree BT with N nodes is selected. Each node in the tree has at most two child nodes for storing user information. An empty list REL is initialized to record the credentials of the revoked user and the status information is initialized:

[0067] st=BT#(7)

[0068] S13: The key issuing center generates public parameters;

[0069] Specifically, the system common parameters are obtained through the algorithm:

[0070]

[0071] S14: The key issuing center saves the system master key.

[0072] Specifically, keep the system master key secret:

[0073]

[0074] S2: The key issuing center obtains the identity information provided by the user and registers the user based on the identity information;

[0075] Specifically, the user provides his or her identity information to the key issuing center and registers with the center. This may include the user's personal information, identity certificate, etc. The key issuing center ensures the legitimacy of the registration by verifying this information.

[0076] In the embodiments of the present application, Figure 3 As shown, step S2 includes the following steps:

[0077] S21: The key issuing center obtains the identity information provided by the user to the key issuing center;

[0078] Specifically, the user provides the key distribution center with his unique identity information, which is publicly available, such as an email address, phone number, or username. The identity information acts as the "public key" in traditional public key encryption in this system.

[0079] The S22 key issuance center verifies the identity information provided by the user.

[0080] Specifically, the key distribution center verifies the user's identity information to ensure that it represents the corresponding user. This process may include checking the user's ID, verifying emails or text messages, or using other authentication methods.

[0081] S3: The key issuance center generates the user's private key through an encryption algorithm based on the user's identity information and master key;

[0082] Specifically, using the identity information and master key provided by the user, the key issuing center generates the user's private key through an encryption algorithm. This private key is the key for the user to decrypt the received encrypted message.

[0083] In the embodiments of the present application, Figure 4 As shown, step S3 includes the following steps:

[0084] S31: The key issuing center randomly allocates an unused leaf node on the binary tree to store the current user's information based on the public parameters, system master key, state information, attribute set, attribute vector and user ID input by the user. For each node, a vector is randomly selected and stored in the node, and the index key is calculated;

[0085] Specifically, input the public parameter pp, the system master key msk, the state information st, the attribute set S, an attribute vector x and the user ID, and then randomly assign an unused leaf node δ on the binary tree BT to store the current user's information. The algorithm randomly selects a vector Store it at the node and calculate the index key in one step:

[0086]

[0087] Algorithm random selection

[0088] b,{b y b′ y} y∈s ←span(D)#(11)

[0089] Where span(D) refers to the set of all linear combinations generated by D. The following parameters are calculated:

[0090] K0=h b #(12)

[0091]

[0092]

[0093]

[0094]

[0095] Where y∈S.

[0096] Output where K = (K0, {K0, yK′ 0,y , K 1,y} y∈s , K2).

[0097] S32: The key issuing center extracts the corresponding random vector from the previously generated node according to the status information input by the user, the system master key, the current time period and the latest revocation list, and calculates the updated key;

[0098] Specifically, input status information st, system master key msk, current time period t and the latest revocation list REL, from the node in S31 Extract the corresponding random vector And calculate:

[0099]

[0100] calculate:

[0101]

[0102]

[0103] in and

[0104] Output

[0105] S33: The key issuing center randomly selects a vector for each node based on the public parameters input by the user, the user's attribute private key and the update key, and calculates the user's complete decryption key within the time period.

[0106] Specifically, input the public parameter pp, the user's attribute private key AK ID and update the key KU t , for each node The algorithm randomly selects a vector:

[0107]

[0108] And calculate:

[0109]

[0110] in

[0111] Output sk t =(K0, {K 0,y , K′ 0,y , K 1,y} y∈S , K2, K ID,t ) is the user's complete decryption key within time period t.

[0112] S4: The sender generates the receiver's public key based on the receiver's identity information using global parameters and a public hash function, and encrypts the message based on the receiver's public key;

[0113] Specifically, the sender generates the receiver's public key based on the identity information provided by the receiver using global parameters and a public hash function. The sender then uses this public key to encrypt the message to be sent, ensuring that only the receiver with the corresponding private key can decrypt it.

[0114] In the embodiments of the present application, Figure 5 As shown, step S4 includes the following steps:

[0115] S41: The sender takes the received public parameters, access control policy, plaintext message and current time period as input and randomly selects the required parameters;

[0116] Specifically, input the public parameter pp, access control policy (v, π) (where v = (y j ,z j ) j∈[n] , and π is a vector (y j ,z j ) to attribute A), the plaintext message msg and the current time period t. The algorithm first randomly selects

[0117] S42: The sender calculates a hash value based on the input parameters and the randomly selected parameters;

[0118] Specifically, for any calculate:

[0119]

[0120]

[0121]

[0122]

[0123]

[0124]

[0125]

[0126]

[0127]

[0128] S43: The sender generates a ciphertext based on the calculated hash value and other parameters to encrypt the original message.

[0129] Specifically, output ciphertext ct t ={C0,{C0,j , C 1,j , C 2,j , C′ 1,j , C′ 2,j} j∈[n] , C3, C4, C5}

[0130] S5: The recipient uses the private key to decrypt the received information;

[0131] Specifically, after receiving the encrypted message, the recipient uses the private key associated with its identity to decrypt the message to obtain the original content.

[0132] In the embodiments of the present application, as Figure 6 shown, the step S5 includes the following steps:

[0133] S51: The recipient takes the received ciphertext, the user's private key, and the scheme as inputs, and verifies whether the time period corresponding to the user's private key matches the time period in the ciphertext;

[0134] Specifically, input the ciphertext ct t , the user's private key skt ′′ , and the scheme (v, π). This algorithm first verifies whether the time period corresponding to the user's private key matches the ciphertext. If t'<t, where t' is the time period of the private key and t is the time period of the ciphertext, that is, the ciphertext is generated after the user is revoked, then the user cannot perform decryption and the algorithm ends immediately. Otherwise, the algorithm proceeds to perform subsequent operations.

[0135] S52: The recipient calculates the parameters that make the decryption equation hold and recovers the plaintext message.

[0136] Specifically, calculate the parameters γ1, γ2,..., γ j∈[n] γ j (y j +x πj z j )=(1, 0,..., 0) that hold. For any parameter n ∈Z p , calculate: Calculate:

[0137]

[0138]

[0139]

[0140] Finally, recover the plaintext message

[0141] S6: When the private key of a certain user is determined to be insecure, the key distribution center selects to revoke its key.

[0142] Specifically, if the key issuing center determines that a user's private key is no longer safe, perhaps due to loss, disclosure or other reasons, it can choose to revoke the user's private key. This will prevent unauthorized access to the private key to decrypt messages. After revocation, the user will need to re-register and obtain a new private key before using the system again.

[0143] It should be noted that key revocation allows the system administrator to revoke a user's key. For example, if the user loses access rights, the key is leaked, or the user's identity expires, the system administrator can make the user unable to use his key to decrypt new messages. Assume that time is divided into periods t1, t2, …, t n ,Through time period division, the impact of the revocation operation can be limited to a specific ,time period, so that even if a key is leaked in one period, ,it will not affect the security of other periods.

[0144] In the embodiments of the present application, Figure 7 As shown, step S6 includes the following steps:

[0145] S61: The key issuing center updates and outputs the latest user revocation list according to the input current revocation list, the user to be revoked, and the current time period;

[0146] Specifically, the current revocation list REL, the ID of the user to be revoked, and the current time period t are input, and this step updates and outputs the latest user revocation list.

[0147] S62: The key issuing center generates new global parameters, and broadcasts the new global parameters and the updated revocation list.

[0148] Specifically, the key issuing center generates new global parameters and broadcasts this information and the updated revocation list REL. When encrypting a message, the sender must use the minimum global parameters and consider the revocation list REL. If the revocation list REL contains the identity and time period of the recipient, the sender cannot use the public key of the recipient for encryption. For users who have not been revoked, the updated private key is obtained from the key issuing center using the newly obtained parameters.

[0149] The present invention uses identity-based encryption technology and introduces a time factor, divides time into different periods, and associates a key with a specific time period, thereby realizing revocable operations in identity-based encryption.

[0150] In some embodiments, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the revocable identity-based key encryption method provided by the present invention.

[0151] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In a hardware implementation, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable storage medium, which may include a computer-readable storage medium (or a non-transitory medium) and a communication medium (or a temporary medium).

[0152] As is known to those of ordinary skill in the art, the term computer-readable storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer-readable storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is known to those of ordinary skill in the art that communication media typically contain computer-readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and may include any information delivery medium.

[0153] Exemplarily, the computer-readable storage medium may be an internal storage unit of the network management device described in the foregoing embodiment, such as a hard disk or memory of the network management device. The computer-readable storage medium may also be an external storage device of the network management device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc., equipped on the network management device.

[0154] In some embodiments, a device is provided, including a processor and a memory, wherein the memory is used to store a computer program; the processor is used to execute the computer program and implement the revocable identity-based key encryption method provided by the present invention when executing the computer program.

[0155] It should be understood that the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0156] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A revocable identity-based key encryption method, characterized in that: The steps include: Preset key distribution center; The key issuing center obtains the identity information provided by the user and registers the user based on the identity information; The key issuing center generates the user's private key through an encryption algorithm based on the user's identity information and master key; The sender generates the receiver's public key based on the receiver's identity information using global parameters and a public hash function, and encrypts the message using the receiver's public key. The receiver uses the private key to decrypt the received information; When a user's private key is determined to be unsafe, the key issuance center chooses to revoke the key; The key issuing center generates the user's private key through an encryption algorithm according to the user's identity information and the master key, including: The key issuing center randomly allocates an unused leaf node on the binary tree to store the current user's information based on the public parameters, system master key, state information, attribute set, attribute vector and user ID input by the user. For each node, a vector is randomly selected and stored in the node, and the index key is calculated; The key issuing center extracts the corresponding random vector from the previously generated node and calculates the updated key based on the status information input by the user, the system master key, the current time period and the latest revocation list; The key issuing center randomly selects a vector for each node based on the public parameters input by the user, the user's attribute private key and the update key, and calculates the user's complete decryption key within the time period; The receiving party uses the private key to decrypt the received information, including the steps of: The receiver takes the received ciphertext, the user's private key, and the scheme as input and verifies whether the time period corresponding to the user's private key matches the time period in the ciphertext; The receiver calculates the parameters that make the decryption equation valid and recovers the plaintext message; When a user's private key is determined to be unsafe, the key issuing center chooses to revoke the key, including the following steps: The key issuing center updates and outputs the latest user revocation list based on the input current revocation list, the user to be revoked, and the current time period; The key distribution center generates new global parameters and broadcasts the new global parameters and the updated revocation list.

2. The revocable identity-based key encryption method according to claim 1, characterized in that: The step of presetting a key issuing center includes: The key issuing center obtains the security parameters input by the user, selects a bilinear generator based on the input security parameters, and generates cryptographic parameters; The key issuing center selects a tree with n nodes, where each node has at most two child nodes, for storing user information, initializes an empty list for recording the credentials of the revoked user, and initializes the status information; The key issuing center generates public parameters; The key distribution center stores the system master key.

3. The revocable identity-based key encryption method according to claim 1, characterized in that: The key issuing center obtains the identity information provided by the user, and performs user registration steps according to the identity information, including: The key issuing center obtains the identity information provided by the user to the key issuing center; The key issuance center verifies the identity information provided by the user.

4. The revocable identity-based key encryption method according to claim 1, characterized in that: The sender generates the public key of the receiver according to the identity information of the receiver using global parameters and a public hash function, and encrypts the message according to the public key of the receiver, including: The sender takes the received public parameters, access control policy, plaintext message, and current time period as input and randomly selects the required parameters; The sender calculates the hash value based on the input parameters and the randomly selected parameters; The sender generates a ciphertext based on the calculated hash value and other parameters to encrypt the original message.

5. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor to implement the revocable identity-based key encryption method as described in any one of claims 1 to 4.

6. A device, characterized in that: The device includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to implement the revocable identity-based key encryption method as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • A revocable identity public key encryption method

    CN109873699A

  • Attribute-based encryption method for ciphertext strategy supporting attribute revocation

    CN113194089A

  • PCH revocation method and system for editable blockchain protocol

    CN113794556A

  • Conditional proxy re-encryption method and system capable of efficiently revoking

    CN116094845A

  • Attribute-based encryption method and device without secure channel key strategy

    CN116346459A