Data security sharing method and system from identity-based encryption to common public key encryption

By converting the identity-based encryption ciphertext into ordinary public key encrypted ciphertext, the efficiency and flexibility of data sharing between identity-based encryption and ordinary public key encryption systems in cloud computing are solved, and efficient data decryption and permission control are achieved.

CN119030709AActive Publication Date: 2024-11-26CHANGSHA UNIVERSITY
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411108530.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-13
Publication Date
2024-11-26
Estimated Expiration
2044-08-13

AI Technical Summary

Technical Problem

In cloud computing scenarios, users of the identity-based encryption system cannot directly share encrypted data with users of the ordinary public key encryption system, because users of the ordinary public key encryption system lack the private key of the identity-based encryption system, resulting in complex decryption process and computing and communication overhead high.

Method used

Through the steps of system initialization, identity-based private key generation, ordinary public-private key generation, data encryption, conversion key generation and ciphertext conversion, the identity-based encrypted ciphertext is converted into ordinary public-key encrypted ciphertext, so that users of ordinary public-key encryption system can The data can be decrypted directly and the permissions to the conversion key are specified through the tag.

Benefits of technology

It improves the efficiency and flexibility of data security sharing, allows two different encryption systems to run independently, reduces decryption steps, reduces computing and communication overhead, and achieves flexible data sharing through tag control permissions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119030709A_ABST
    Figure CN119030709A_ABST
Patent Text Reader

Abstract

The invention discloses a data security sharing method and system from identity-based encryption to common public key encryption, and belongs to the technical field of network space security. The method comprises the following steps: initializing a system; generating an identity-based private key; generating common public and private keys; encrypting the data; generating a conversion key; performing ciphertext conversion; and decrypting the ciphertext. Compared with the prior art, the method has the beneficial effects that the ciphertext conversion efficiency is improved, and the identity-based encrypted ciphertext can be converted into a common public key encrypted ciphertext on the premise of not decrypting the identity-based encrypted ciphertext, so that a common public key encryption system user can directly decrypt and obtain plaintext data; the flexibility and adaptability of the scheme are improved, and the method is easier to implement between the two different encryption systems; the permission of the conversion key can be limited through the specified label, so that the conversion key can only be used for converting the ciphertext consistent with the label.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of cyberspace security technology, and specifically relates to a data security sharing method and system from identity-based encryption to common public key encryption. Background Art

[0002] In cloud computing and other application scenarios, different users can use different encryption systems to encrypt data to protect data security. For example, in a common public key encryption system, users can generate their own public and private keys, where the public key is published publicly and the private key is kept by themselves; when others want to send data to the user secretly, they need to ask the user or a third party for the user's public key and then use the public key to encrypt the data.

[0003] In identity-based encryption (IBE), when users encrypt data, they do not need to obtain the recipient's public key from a third party, but directly use the recipient's identification string (such as an email address) to encrypt the data. Ordinary public key encryption is more suitable for occasions with a small number of users and a closed application scope, while identity-based encryption is more suitable for occasions with a large number of users and an open application scope. For the purpose of business communication and data sharing, users of the identity-based encryption system sometimes need to share encrypted data in cloud storage with users of the ordinary public key encryption system; however, since the data is encrypted by the identity-based encryption system and the ordinary public key encryption system user does not have the private key of the identity-based encryption system, the ordinary public key encryption system user cannot decrypt the encrypted data of the identity-based encryption system user. The direct decryption method is that the identity-based encryption system user first decrypts the data, and then uses the ordinary public key encryption algorithm to encrypt the data and send it to the ordinary public key encryption system user. This method has complex steps and will result in high computing and communication overhead. Summary of the invention

[0004] The purpose of the embodiments of the present invention is to provide a method and system for secure data sharing from identity-based encryption to ordinary public key encryption, which can directly convert identity-based ciphertext into ordinary public key ciphertext, so that users of ordinary public key encryption systems can access data using their own private keys; and, users of identity-based encryption systems can specify which identity-based ciphertexts can be converted through labels, thereby achieving more flexible data sharing, thereby solving at least one technical problem involved in the background technology.

[0005] In order to solve the above-mentioned technical problems, the present invention is achieved as follows:

[0006] The embodiment of the present invention provides a data security sharing method from identity-based encryption to common public key encryption, comprising the following steps:

[0007] Step S1: System initialization: A trusted third party runs an initialization algorithm to generate system public parameters and a master private key.

[0008] Step S2, identity-based private key generation: the identity-based encryption user applies to generate a private key for his / her identity ID, and a trusted third party runs the identity-based private key generation algorithm and secretly sends the generated identity-based private key to the user;

[0009] Step S3, generating common public and private keys. After obtaining the system public parameters, the common public key encryption user generates common public and private keys by himself, wherein the public key is released to all users in the system, and the private key is kept secret by himself;

[0010] Step S4, data encryption, identity-based encryption. Before uploading data, the user uses the identity identifier and label to encrypt the data, and then uploads the generated identity-based encrypted ciphertext to the cloud server;

[0011] Step S5, conversion key generation, the identity-based encryption user uses his own identity-based private key and the public key of the ordinary public key system user, and specifies the label to generate the conversion key;

[0012] Step S6, ciphertext conversion, converting the identity-based encrypted ciphertext into common public key encrypted ciphertext through the cloud server;

[0013] Step S7, ciphertext decryption, ordinary public key encryption After the user downloads the ordinary public key encrypted ciphertext from the cloud server, he uses his own private key to decrypt the ciphertext.

[0014] The present invention also provides a data security sharing system from identity-based encryption to common public key encryption, which is used to implement the method described, including:

[0015] System initialization module, which is used by a trusted third party to run the initialization algorithm to generate system public parameters and master private key;

[0016] An identity-based private key generation module is used for identity-based encryption users to apply for the generation of a private key for their identity ID. A trusted third party runs the identity-based private key generation algorithm and secretly sends the generated identity-based private key to the user.

[0017] The ordinary public and private key generation module is used for ordinary public key encryption. After the user obtains the system public parameters, he generates ordinary public and private keys by himself. The public key is released to all users in the system, and the private key is kept secret by himself;

[0018] Data encryption module, which is used for identity-based encryption. Before uploading data, users use identity identifiers and tags to encrypt data, and then upload the generated identity-based encrypted ciphertext to the cloud server;

[0019] The conversion key generation module is used for the identity-based encryption user to use his own identity-based private key and the public key of the ordinary public key system user, and specify the label to generate the conversion key;

[0020] A ciphertext conversion module, which is used to convert the identity-based encrypted ciphertext into a common public key encrypted ciphertext through a cloud server; and

[0021] The ciphertext decryption module is used for ordinary public key encryption. After the user downloads the ordinary public key encrypted ciphertext from the cloud server, he uses his own private key to decrypt the ciphertext.

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

[0023] 1. This application aims at the problem of data security sharing between users of an identity-based encryption system and users of an ordinary public key encryption system in a cloud environment, and proposes a data security sharing method from identity-based encryption to ordinary public key encryption. Compared with the ordinary method of first decrypting the identity-based encrypted ciphertext and then encrypting it using a public key encryption system, the efficiency of ciphertext conversion is improved, and the identity-based encrypted ciphertext can be converted into ordinary public key encrypted ciphertext without decrypting it, so that users of the ordinary public key encryption system can directly decrypt and obtain plaintext data.

[0024] 2. Compared with the traditional ciphertext conversion method that only supports a single encryption system, the present application bridges the identity-based encryption system and the ordinary public key encryption system, allowing two different encryption systems to run independently. Ciphertext conversion is initiated only by the identity-based encryption system user when data sharing is required, thereby improving the flexibility and adaptability of the solution and making it easier to implement between the two different encryption systems.

[0025] 3. Compared with traditional identity-based encryption, the identity-based encryption system in this application allows users to use labels to encrypt data, that is, to identify different identity-based encrypted ciphertexts through labels, so that when the identity-based encryption system user generates a conversion key, he can limit the authority of the conversion key by specifying a label, so that the conversion key can only be used to convert ciphertexts with consistent labels. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work, among which:

[0027] Figure 1 A flow chart of a data security sharing method from identity-based encryption to common public key encryption provided by the present invention;

[0028] Figure 2 This is a structural block diagram of the data security sharing system from identity-based encryption to common public key encryption provided by the present invention. DETAILED DESCRIPTION

[0029] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0030] The terms "first", "second", etc. in the specification and claims of the present invention are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0031] See also Figure 1 As shown, an embodiment of the present invention provides a data security sharing method from identity-based encryption to common public key encryption, including the following steps:

[0032] Step S1: System initialization: A trusted third party runs an initialization algorithm to generate system public parameters and a master private key.

[0033] Step S2, identity-based private key generation: the identity-based encryption user applies to generate a private key for his / her identity ID, and a trusted third party runs the identity-based private key generation algorithm and secretly sends the generated identity-based private key to the user;

[0034] Step S3, generating common public and private keys. After obtaining the system public parameters, the common public key encryption user generates common public and private keys by himself, wherein the public key is released to all users in the system, and the private key is kept secret by himself;

[0035] Step S4, data encryption, identity-based encryption. Before uploading data, the user uses the identity identifier and label to encrypt the data, and then uploads the generated identity-based encrypted ciphertext to the cloud server;

[0036] Step S5, conversion key generation, the identity-based encryption user uses his own identity-based private key and the public key of the ordinary public key system user, and specifies the label to generate the conversion key;

[0037] Step S6, ciphertext conversion, converting the identity-based encrypted ciphertext into common public key encrypted ciphertext through the cloud server;

[0038] Step S7, ciphertext decryption, ordinary public key encryption After the user downloads the ordinary public key encrypted ciphertext from the cloud server, he uses his own private key to decrypt the ciphertext.

[0039] In step S1, the system is initialized, which specifically includes:

[0040] Input the security parameter κ, and the initialization algorithm selects a bilinear map e:G×G→G with an order of a large prime number p. T ;

[0041] Choose any element g,h,u,w∈G,α∈Z p , and the hash function H:{0,1} * →G;

[0042] The output system public parameters are PP = (G, G T ,e,p,g,h,u,w,H,e(g α ,h)), master private key MSK = g α .

[0043] In step S2, it should be noted that the identity-based encryption user is the data owner.

[0044] Identity-based private key generation, including:

[0045] Input (PP, MSK), output user identity base private key SK IBE ;

[0046] The identity-based private key generation algorithm selects a random element r∈Z p , for the user ID, calculate: K0 = g α (H(ID)) r ,K1=h r ;

[0047] Output SK IBE =(K0,K1).

[0048] In step S3, it should be noted that the ordinary public key encryption user is the data user.

[0049] Generate common public and private keys, including:

[0050] Input PP, output user's common public key PK and private key SK;

[0051] The ordinary public-private key generation algorithm selects a random element β∈Z p , calculate PK = g β , SK=β.

[0052] In step S4, it should be noted that the identity identifier may be an identification string publicly disclosed by the user, such as an email address, and the tag may be a keyword used to describe the data.

[0053] Data encryption, including:

[0054] Input system public parameters PP, plaintext M, label γ∈Z p , and identity ID;

[0055] The data encryption algorithm selects a random element s∈Z p , calculate C0 = Me (g α ,h) s , C1=(H(ID)) s , C2=h s ,C3=(u γ w) s ;

[0056] Output ciphertext CT = (C0, C1, C2, C3).

[0057] In step S5, the conversion key generation specifically includes:

[0058] Input system public parameters PP, common public key PK, label γ, identity base private key SK IBE =(K0,K1);

[0059] The conversion key generation algorithm selects a random element t,k∈Z p , calculate d1 = g t , d2=h k PK t , d3=K0(u γ w) k ,d4=K1;

[0060] Output RK = (d1, d2, d3, d4).

[0061] In step S6, it should be noted that the cloud server can and can only convert the identity-based encrypted ciphertext whose ciphertext label is the same as the label in the conversion key.

[0062] Ciphertext conversion, including:

[0063] Input system public parameters PP, identity-based encrypted ciphertext CT = (C0, C1, C2, C3), conversion key RK = (d1, d2, d3, d4);

[0064] The ciphertext conversion algorithm performs the following calculations:

[0065] c1=d1=g t ,c2=d2=j k PKt ,

[0066]

[0067] c3=C0 / c'3=Me(g α ,h s ) / e(g α ,h s )e((u γ w) k ,h s )=M / e((u γ w) k ,h s )

[0068] c4=C3=(u γ w) s ;

[0069] Output the converted ciphertext CT'=(c1,c2,c3,c4).

[0070] In step S7, ciphertext decryption includes identity-based ciphertext decryption and common public key ciphertext decryption, where:

[0071] Identity-based ciphertext decryption, including:

[0072] Input system public parameters PP, identity base ciphertext CT = (C0, C1, C2, C3), identity base key SK IBE =(K0,K1);

[0073] The identity-based ciphertext decryption algorithm is calculated in sequence:

[0074]

[0075] Output plaintext M;

[0076] Ordinary public key ciphertext decryption, including:

[0077] Input system public parameter PP, common public key ciphertext CT'=(c1,c2,c3,c4), user secret SK=β;

[0078] The common public key ciphertext decryption algorithm first calculates c2 / (c1) β =h k (g β ) t / g tβ =h k ; Then, calculate:

[0079] M=c3e(h k ,c4)=(M / e((u γ w) k,h s ))e(h k ,(u γ w) s );

[0080] Output plaintext M.

[0081] Recombination Figure 2 As shown, the present invention also provides a data security sharing system from identity-based encryption to ordinary public key encryption, which is used to implement the method described, including a system initialization module 1, an identity-based private key generation module 2, an ordinary public and private key generation module 3, a data encryption module 4, a conversion key generation module 5, a ciphertext conversion module 6 and a ciphertext decryption module 7.

[0082] The system initialization module 1 is used for a trusted third party to run an initialization algorithm to generate system public parameters and a master private key.

[0083] The identity-based private key generation module 2 is used for an identity-based encryption user to apply for generating a private key for his or her identity ID. A trusted third party runs an identity-based private key generation algorithm and secretly sends the generated identity-based private key to the user.

[0084] The common public and private key generation module 3 is used for common public key encryption. After the user obtains the system public parameters, he generates common public and private keys by himself, wherein the public key is issued to all users in the system, and the private key is kept secretly by himself.

[0085] The data encryption module 4 is used for identity-based encryption. Before uploading data, the user uses the identity identifier and the label to encrypt the data, and then uploads the formed identity-based encrypted ciphertext to the cloud server.

[0086] The conversion key generation module 5 is used for the identity-based encryption user to use his own identity-based private key and the public key of the common public key system user, and specify the label to generate the conversion key.

[0087] The ciphertext conversion module 6 is used to convert the identity-based encrypted ciphertext into ordinary public key encrypted ciphertext through the cloud server.

[0088] The ciphertext decryption module 7 is used for ordinary public key encryption. After the user downloads the ordinary public key encrypted ciphertext from the cloud server, he uses his own private key to decrypt the ciphertext.

[0089] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0090] In addition, it should be noted that the scope of the methods and systems in the embodiments of the present invention is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. For example, the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.

[0091] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

Claims

1. A data security sharing method from identity-based encryption to common public key encryption, characterized in that: The steps include: Step S1: System initialization: A trusted third party runs an initialization algorithm to generate system public parameters and a master private key. Step S2, identity-based private key generation: the identity-based encryption user applies to generate a private key for his / her identity ID, and a trusted third party runs the identity-based private key generation algorithm and secretly sends the generated identity-based private key to the user; Step S3, generating common public and private keys. After obtaining the system public parameters, the common public key encryption user generates common public and private keys by himself, wherein the public key is released to all users in the system, and the private key is kept secret by himself; Step S4, data encryption, identity-based encryption. Before uploading data, the user uses the identity identifier and label to encrypt the data, and then uploads the generated identity-based encrypted ciphertext to the cloud server; Step S5, conversion key generation, the identity-based encryption user uses his own identity-based private key and the public key of the ordinary public key system user, and specifies the label to generate the conversion key; Step S6, ciphertext conversion, converting the identity-based encrypted ciphertext into common public key encrypted ciphertext through the cloud server; Step S7, ciphertext decryption, ordinary public key encryption After the user downloads the ordinary public key encrypted ciphertext from the cloud server, he uses his own private key to decrypt the ciphertext.

2. The method according to claim 1, characterized in that In step S1, the system is initialized, which specifically includes: Input security parameter K, and the initialization algorithm selects a bilinear map e with order p: G×G→G T ; Choose any element g,h,u,w∈G,α∈Z p , and the hash function H: {0, 1} * →G; The output system public parameters are PP = (G, G T ,e,p,g,h,u,w,H,e(g α ,h)), master private key MSK = g α .

3. The method according to claim 2, characterized in that In step S2, the identity-based private key is generated, which specifically includes: Input (PP, MSK), output user identity base private key SK IBE ; The identity-based private key generation algorithm selects a random element r∈Z p , for the user ID, calculate: K0 = g α (H(ID)) r , K1=h r ; Output SK IBE =(K0, K1).

4. The method according to claim 3, characterized in that In step S3, ordinary public and private keys are generated, specifically including: Input PP, output user's common public key PK and private key SK; The ordinary public-private key generation algorithm selects a random element β∈Z p , calculate PK = g β , SK=β.

5. The method according to claim 4, characterized in that In step S4, data encryption specifically includes: Input system public parameters PP, plaintext M, label γ∈Z p , and identity ID; The data encryption algorithm selects a random element s∈Z p , calculate C0 = Me(gα, h)s, C1 = (H(ID)) s , C2=h s , C3=(u γ w) s ; Output ciphertext CT = (C0, C1, C2, C3).

6. The method according to claim 5, characterized in that In step S5, the conversion key generation specifically includes: Input system public parameters PP, common public key PK, label γ, identity base private key SK IBE =(K0, K1); The conversion key generation algorithm selects a random element t, k∈Z p , calculate d1 = g t , d2=h k PK t , d3=K0(u γ w) k , d4=K1; Output RK = (d1, d2, d3, d4).

7. The method according to claim 6, characterized in that In step S6, ciphertext conversion specifically includes: Input system public parameters PP, identity-based encrypted ciphertext CT = (C0, C1, C2, C3), conversion key RK = (d1, d2, d3, d4); The ciphertext conversion algorithm performs the following calculations: c1=d1=g t ,c2=d2=h k PK t c3=C0 / c’3=Me(g α ,h s ) / e(g α ,h s )e((u γ w) k ,h s )=M / e((u γ w) k ,h s ) c4=C3=(u γ In) s ; Output the converted ciphertext CT'=(c1, c2, c3, c4).

8. The method according to claim 7, characterized in that In step S7, ciphertext decryption includes identity-based ciphertext decryption and common public key ciphertext decryption, where: Identity-based ciphertext decryption, including: Input system public parameters PP, identity base ciphertext CT = (C0, C1, C2, C3), identity base key SK IBE =(K0, K1); The identity-based ciphertext decryption algorithm is calculated in sequence: Output plaintext M; Ordinary public key ciphertext decryption, including: Input system public parameter PP, common public key ciphertext CT'=(c1, c2, c3, c4), user secret SK=β; The common public key ciphertext decryption algorithm first calculates c2 / (c1) β =h k (g β ) t / g tβ =h k ; Then, calculate: M=c3e(h k ,c4)=(M / e((u γ w) k ,h s ))e(h k ,(u γ w) s ); Output plaintext M.

9. A data security sharing system from identity-based encryption to common public key encryption, used to implement the method according to any one of claims 1 to 8, characterized in that: include: System initialization module, which is used by a trusted third party to run the initialization algorithm to generate system public parameters and master private key; An identity-based private key generation module is used for identity-based encryption users to apply for the generation of a private key for their identity ID. A trusted third party runs the identity-based private key generation algorithm and secretly sends the generated identity-based private key to the user. The ordinary public and private key generation module is used for ordinary public key encryption. After the user obtains the system public parameters, he generates ordinary public and private keys by himself. The public key is released to all users in the system, and the private key is kept secret by himself; Data encryption module, which is used for identity-based encryption. Before uploading data, users use identity identifiers and tags to encrypt data, and then upload the generated identity-based encrypted ciphertext to the cloud server; The conversion key generation module is used for the identity-based encryption user to use his own identity-based private key and the public key of the ordinary public key system user, and specify the label to generate the conversion key; A ciphertext conversion module, which is used to convert the identity-based encrypted ciphertext into a common public key encrypted ciphertext through a cloud server; as well as The ciphertext decryption module is used for ordinary public key encryption. After the user downloads the ordinary public key encrypted ciphertext from the cloud server, he uses his own private key to decrypt the ciphertext.

Citation Information

Patent Citations

  • Ciphertext conversion method in heterogeneous storage system, decryption method and decryption system

    CN107086912A

  • Identity-based cloud storage encrypted data conversion method and system

    CN115499229A

  • Data sharing method based on key strategy

    CN117478324A

  • Ciphertext conversion method and system

    CN118740524A