Re-encryption device, re-encryption method, computer-readable storage medium and encryption system
The master re-encryption key generation unit generates a re-encryption key that cannot be decrypted, which solves the problem in the prior art that the re-encryption key generation requires a user secret key or a master public key, improves security, and avoids key Leaks and Improper Decryption.
Patent Information
- Application Number
- CN201980096560.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-05-24
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2039-05-24
AI Technical Summary
Existing proxy re-encryption technology requires the user's secret key or master public key to generate the re-encryption key, resulting in security issues.
The master re-encryption key generation unit is used to generate a re-encryption key that cannot decrypt the ciphertext, and is used for re-encryption to change the access scope, thereby reducing the risk of leakage of the user key and the master public key.
The security is improved, the improper decryption behavior of the master encryption key is avoided, and the security of the system is enhanced.
Smart Images

Figure CN113853764B
Abstract
Description
Technical Field
[0001] The present invention relates to a re-encryption technology for changing the access range of ciphertext while the ciphertext is encrypted. Background Art
[0002] Proxy Re-Encryption (PRE) is a technology that does not decrypt ciphertext but transfers the decryption authority of ciphertext to others.
[0003] Non-patent document 1 contains a description about the Attribute-Based PRE (ABPRE) method in attribute-based encryption.
[0004] Prior art literature
[0005] Non-patent literature
[0006] Non-patent document 1: Song Luo, Jianbin Hu, and Zhong Chen "Ciphertext PolicyAttribute-Based Proxy Re-encryption" Summary of the invention
[0007] Problems to be solved by the invention
[0008] In the proxy re-encryption method described in Non-Patent Document 1, the user's secret key or master public key is required to generate a re-encryption key for changing the access range of the ciphertext. In addition, regarding the re-encryption key, it is necessary to generate a different re-encryption key for each access range that is desired to be changed. The user's secret key or master public key needs to be managed in secret, but there is a security issue when a different re-encryption key is used each time it is generated.
[0009] The object of the present invention is to enable re-encryption with improved security.
[0010] Means for solving problems
[0011] The re-encryption device of the present invention comprises: a re-encryption key generation unit, which uses a master re-encryption key to generate a re-encryption key for re-encrypting an object ciphertext generated by the encryption device, wherein the master re-encryption key cannot decrypt the ciphertext generated by the encryption device, but can generate a re-encryption key for changing the access range of the ciphertext generated by the encryption device; and a re-encryption unit, which re-encrypts the object ciphertext using the re-encryption key generated by the re-encryption key generation unit to generate a re-encrypted ciphertext.
[0012] Effects of the Invention
[0013] In the present invention, re-encryption is performed using a master re-encryption key, which cannot decrypt the ciphertext generated by the encryption device, but can generate a re-encryption key for changing the access range for the ciphertext generated by the encryption device.
[0014] The master re-encryption key can generate a re-encryption key for changing the access range of the ciphertext, so the user's secret key and master public key are not required to generate the re-encryption key. Therefore, the possibility of leakage of the user's secret key and master public key can be reduced, and security is high. Furthermore, the master re-encryption key cannot be used to decrypt the ciphertext, so the master re-encryption key will not be used for improper decryption, and security is high. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 This is a configuration diagram of the encryption system 10 according to the first embodiment.
[0016] Figure 2 This is a configuration diagram of the common parameter generating device 20 according to the first embodiment.
[0017] Figure 3 1 is a diagram showing the configuration of the user secret key generation device 30 according to the first embodiment.
[0018] Figure 4 This is a structural diagram of the master re-encryption key generation device 40 according to Embodiment 1.
[0019] Figure 5 This is a diagram showing the structure of encryption device 50 according to Embodiment 1.
[0020] Figure 6 This is a structural diagram of the re-encryption device 60 according to the first embodiment.
[0021] Figure 7 This is a diagram showing the structure of the decryption device 70 according to the first embodiment.
[0022] Figure 8 This is a flowchart showing the operation of the common parameter generating device 20 according to the first embodiment.
[0023] Fig. 9 This is a flowchart showing the operation of the user secret key generation device 30 according to the first embodiment.
[0024] Fig.10 This is a flowchart showing the operation of the master re-encryption key generation device 40 according to the first embodiment.
[0025] Fig.11 This is a flowchart showing the operation of encryption device 50 according to the first embodiment.
[0026] Fig.12This is a flowchart showing the operation of the re-encryption device 60 according to the first embodiment.
[0027] Fig.13 This is a flowchart showing the operation of the decryption device 70 according to the first embodiment. DETAILED DESCRIPTION
[0028] Implementation Method 1
[0029] ***Description of the structure***
[0030] Reference Figure 1 The configuration of the encryption system 10 according to the first embodiment will be described.
[0031] The encryption system 10 has a public parameter generation device 20 , a user secret key generation device 30 , a master re-encryption key generation device 40 , an encryption device 50 , a re-encryption device 60 , and a decryption device 70 .
[0032] The public parameter generating device 20, multiple user secret key generating devices 30, the master re-encryption key generating device 40, multiple encryption devices 50, the re-encryption device 60 and the decryption device 70 are connected via a transmission path 80 such as the Internet and a LAN (Local Area Network).
[0033] Reference Figure 2 The configuration of the common parameter generating device 20 according to the first embodiment will be described.
[0034] The common parameter generating device 20 is a computer such as a server.
[0035] The common parameter generating device 20 includes hardware such as a processor 21, a memory 22, a storage 23, and a communication interface 24. The processor 21 is connected to other hardware via a signal line, and controls the other hardware.
[0036] The common parameter generating device 20 includes, as functional components, an acquisition unit 211, a common parameter generating unit 212, a base generating unit 213, a master key generating unit 214, and a transmitting unit 215. The functions of the functional components of the common parameter generating device 20 are realized by software.
[0037] The memory 23 stores a program for realizing the functions of each functional component of the common parameter generating device 20. The program is read into the memory 22 by the processor 21 and executed by the processor 21. Thus, the functions of each functional component of the common parameter generating device 20 are realized.
[0038] Reference Figure 3 The configuration of the user secret key generation device 30 according to the first embodiment will be described.
[0039] The user secret key generation device 30 is a computer such as a PC (Personal Computer).
[0040] The user secret key generation device 30 includes hardware such as a processor 31, a memory 32, a storage 33, and a communication interface 34. The processor 31 is connected to other hardware via a signal line and controls the other hardware.
[0041] The user secret key generation device 30 includes, as functional components, an acquisition unit 311, a user secret key generation unit 312, and a transmission unit 313. The functions of each functional component of the user secret key generation device 30 are realized by software.
[0042] The memory 33 stores a program for realizing the functions of each functional component of the user secret key generation device 30. The program is read into the memory 32 by the processor 31 and executed by the processor 31. Thus, the functions of each functional component of the user secret key generation device 30 are realized.
[0043] Reference Figure 4 The structure of the master re-encryption key generation device 40 according to Embodiment 1 is described.
[0044] The master re-encryption key generating device 40 is a computer such as a server.
[0045] The master re-encryption key generation device 40 includes hardware such as a processor 41, a memory 42, a storage 43, and a communication interface 44. The processor 41 is connected to other hardware via a signal line and controls the other hardware.
[0046] The master re-encryption key generation device 40 includes, as functional components, an acquisition unit 411, a master re-encryption key generation unit 412, and a transmission unit 413. The functions of each functional component of the master re-encryption key generation device 40 are realized by software.
[0047] The memory 43 stores a program for realizing the functions of each functional component of the master re-encryption key generation device 40. The program is read into the memory 42 by the processor 41 and executed by the processor 41. Thus, the functions of each functional component of the master re-encryption key generation device 40 are realized.
[0048] Reference Figure 5 The configuration of the encryption device 50 according to the first embodiment will be described.
[0049] The encryption device 50 is a computer such as a PC.
[0050] The encryption device 50 includes hardware such as a processor 51, a memory 52, a storage 53, and a communication interface 54. The processor 51 is connected to other hardware via a signal line and controls the other hardware.
[0051] The encryption device 50 includes, as functional components, an acquisition unit 511, an encryption unit 512, and a transmission unit 513. The functions of the functional components of the encryption device 50 are realized by software.
[0052] The memory 53 stores a program for realizing the functions of each functional component of the encryption device 50. The program is read into the memory 52 by the processor 51 and executed by the processor 51. Thus, the functions of each functional component of the encryption device 50 are realized.
[0053] Reference Figure 6 The structure of the re-encryption device 60 according to Embodiment 1 is described.
[0054] The re-encryption device 60 is a computer such as a server.
[0055] The re-encryption device 60 includes hardware such as a processor 61, a memory 62, a storage 63, and a communication interface 64. The processor 61 is connected to other hardware via a signal line and controls the other hardware.
[0056] The re-encryption device 60 includes, as functional components, an acquisition unit 611, a re-encryption key generation unit 612, a re-encryption unit 613, and a transmission unit 614. The functions of the functional components of the re-encryption device 60 are implemented by software.
[0057] The memory 63 stores a program for realizing the functions of each functional component of the re-encryption device 60. The program is read into the memory 62 by the processor 61 and executed by the processor 61. Thus, the functions of each functional component of the re-encryption device 60 are realized.
[0058] Reference Figure 7 The structure of the decryption device 70 according to the first embodiment will be described.
[0059] The decryption device 70 is a computer such as a server.
[0060] The decryption device 70 includes hardware such as a processor 71, a memory 72, a storage 73, and a communication interface 74. The processor 71 is connected to other hardware via a signal line and controls the other hardware.
[0061] The decryption device 70 includes, as functional components, an acquisition unit 711, a determination unit 712, and a decryption unit 713. The functions of the functional components of the decryption device 70 are realized by software.
[0062] The memory 73 stores a program for realizing the functions of each functional component of the decryption device 70. The program is read into the memory 72 by the processor 71 and executed by the processor 71. Thus, the functions of each functional component of the decryption device 70 are realized.
[0063] The processors 21, 31, 41, 51, 61, and 71 are integrated circuits (ICs) that perform calculations. Specifically, the processors 21, 31, 41, 51, 61, and 71 are CPUs (Central Processing Units), DSPs (Digital Signal Processors), and GPUs (Graphics Processing Units).
[0064] The memories 22, 32, 42, 52, 62, and 72 are storage devices for temporarily storing data. As specific examples, the memories 22, 32, 42, 52, 62, and 72 are SRAM (Static Random Access Memory) and DRAM (Dynamic Random Access Memory).
[0065] The memory 23, 33, 43, 53, 63, 73 is a storage device for storing data. As a specific example, the memory 23, 33, 43, 53, 63, 73 is a HDD (Hard Disk Drive). In addition, the memory 23, 33, 43, 53, 63, 73 may also be a mobile storage medium such as an SD (registered trademark, Secure Digital) memory card, CF (CompactFlash: Compact Flash, registered trademark), NAND flash memory, floppy disk, optical disk, high-density disk, Blu-ray (registered trademark) disk, DVD (Digital Versatile Disk: Digital Versatile Disk).
[0066] The communication interfaces 24, 34, 44, 54, 64, and 74 are interfaces for communicating with external devices. As specific examples, the communication interfaces 24, 34, 44, 54, 64, and 74 are ports of Ethernet (registered trademark), USB (Universal Serial Bus), and HDMI (registered trademark, High-Definition Multimedia Interface).
[0067] exist Figure 2, only one processor 21 is shown. However, the public parameter generating device 20 may also have multiple processors instead of the processor 21. Similarly, the user secret key generating device 30 may also have multiple processors instead of the processor 31. The master re-encryption key generating device 40 may also have multiple processors instead of the processor 41. The encryption device 50 may also have multiple processors instead of the processor 51. The re-encryption device 60 may also have multiple processors instead of the processor 61. The decryption device 70 may also have multiple processors instead of the processor 71.
[0068] These multiple processors share the responsibility of executing programs that realize the functions of each functional component. Each processor is an IC that performs calculation processing similarly to the processors 21, 31, 41, 51, 61, and 71.
[0069] ***Description of the action***
[0070] Reference Figure 8 to Figure 13 The operation of the encryption system 10 according to the first embodiment will be described.
[0071] **NOTE**
[0072] The following describes notations used in the description of the operation of the encryption system 10 .
[0073] When A is a random variable or distribution, mathematical formula 101 indicates that y is randomly selected from A according to the distribution of A. That is, in mathematical formula 101, y is a random number.
[0074]
Mathematical Formula 101
[0075]
[0076] When A is a set, mathematical formula 102 indicates that y is uniformly selected from A. That is, in mathematical formula 102, y is a uniform random number.
[0077]
Mathematical formula 102
[0078]
[0079] Mathematical formula 103 indicates that y is a set defined by z or y is a set obtained by substituting z.
[0080]
Mathematical formula 103
[0081] y:=z
[0082] When a is a constant, mathematical formula 104 represents that machine (algorithm) A outputs a for input x.
[0083]
Mathematical formula 104
[0084] A(x)→a
[0085] For example,
[0086] A(x)→1
[0087] Math 105 F q represents a finite body of number q.
[0088]
Mathematical formula 105
[0089] F q
[0090] Vector notation represents a finite body F q The vector in is shown in Equation 106. In addition, in the finite body F q The n in the above notation represents the number of elements in the vector.
[0091]
Mathematical formula 106
[0092] express
[0093] Mathematical formula 107 represents the two vectors x shown in mathematical formula 108 → With vector v → The inner product shown in mathematical formula 109.
[0094]
Mathematical formula 107
[0095]
[0096]
Mathematical formula 108
[0097]
[0098]
[0099]
Mathematical formula 109
[0100]
[0101] X T Represents the transposed matrix of matrix X.
[0102] For the basis B and basis B shown in mathematical formula 110 * , is the mathematical formula 111.
[0103]
Mathematical Formula 110
[0104] B:=(b1,...,b N ),
[0105]
[0106]
Mathematical Formula 111
[0107]
[0108]
[0109] **Dual pairing vector space**
[0110] The encryption system 10 uses a dual pairing vector space to implement a proxy re-encryption method.
[0111] First, the symmetric bilinear pairing group is explained.
[0112] Symmetric bilinear pairing group (q,G,G T ,g,e) is the prime number q, the cyclic addition group G of the digit q, and the cyclic multiplication group G of the digit q T , g≠0∈G, Nondegenerate Bilinear Pairing e: G×G→G that can be computed in polynomial time T A non-degenerate bilinear pairing is e(sg,tg)=e(g,g) st , e(g,g)≠1.
[0113] In the following description, it is assumed that G bpg The algorithm is as follows: λ As input, output the parameters param of the bilinear pairing group with the confidentiality parameter λ G :=(q,G,G T ,g,e) values.
[0114] Next, the dual pairing vector space will be described.
[0115] Dual pairing vector space (q, V, G T ,A,e) can be obtained through the symmetric bilinear pairing group (param G :=(q,G,G T ,g,e)). The dual pairing vector space (q,V,G T ,A,e) is a prime number q, and F shown in mathematical formula 112 q N-dimensional vector space V, cyclic group G of digit q T 、The standard basis A of space V: =(a1,...,a N ) has the following operations (1) and (2). Here, a i As shown in mathematical formula 113.
[0116]
Mathematical formula 112
[0117]
[0118]
Mathematical formula 113
[0119]
[0120] Operation (1): Non-degenerate bilinear pairing
[0121] The pairing in space V is defined by mathematical formula 114.
[0122]
Mathematical formula 114
[0123]
[0124] in,
[0125] (G1,...,G N ):=x∈V,
[0126] (H1,...,H N ):=y∈V
[0127] This is non-degenerate bilinear. That is, e(sx,ty) = e(x,y) st , for all y∈V, when e(x,y)=1, x=0. In addition, for all i and j, e(a i ,a j )=e(g,g) δi,j Here, if i = j, then δ i,j =1, if i≠j, then δ i,j = 0. In addition, e(g,g)≠1∈G T .
[0128] Operation (2): Distortion Mapping
[0129] Regarding the linear transformation in the space V shown in mathematical formula 115 Able to perform mathematical formula 116.
[0130]
Mathematical formula 115
[0131] φ i,j (a j )=a i
[0132] If k≠j, then φ i,j (a k )=0.
[0133]
Mathematical formula 116
[0134]
[0135] in,
[0136] (g1,...g N ):=x
[0137] Here, the linear transformation It is called distortion mapping.
[0138] In the following description, it is assumed that G dpvs The algorithm is as follows: λ (λ∈natural number), N∈natural number, parameter param of bilinear pairing group G :=(q,G,G T ,g,e) as input, and the output confidentiality parameter is λ and is set to the parameter param of the dual pairing vector space of the N-dimensional space V V :=(q,V,G T ,A,e)’s value.
[0139] Here, the case where the dual pairing vector space is formed by the above-mentioned symmetric bilinear pairing group is described. In addition, the dual pairing vector space can also be formed by an asymmetric bilinear pairing group. The following description is easily applied to the case where the dual pairing vector space is formed by an asymmetric bilinear pairing group.
[0140] **Operation of the common parameter generating device 20**
[0141] Reference Figure 8 The operation of the common parameter generating device 20 according to the first embodiment will be described.
[0142] The operation sequence of the common parameter generating device 20 in the first embodiment corresponds to the common parameter generating method in the first embodiment. In addition, the program for realizing the operation of the common parameter generating device 20 in the first embodiment corresponds to the common parameter generating program in the first embodiment.
[0143] The public parameter generation device 20 generates a public key pk and a master secret key msk used in the encryption system 10. The public parameter generation device 20 sends the public key pk to the user secret key generation device 30, the master re-encryption key generation device 40, and each encryption device 50 via the transmission path 80. In addition, the public parameter generation device 20 secretly sends the master secret key msk to the user secret key generation device 30 and the master re-encryption key generation device 40 via the transmission path 80. Secretly sending means encrypting by an existing encryption method, etc., thereby sending in a state hidden from a third party.
[0144] In addition, the public key pk and the master secret key msk may be sent not via the transmission path 80 but by a method such as mailing.
[0145] (Step S11: Acquisition Process)
[0146] The acquisition unit 211 acquires a confidentiality parameter λ indicating a key length.
[0147] Specifically, the acquisition unit 211 receives the security parameter λ input by the administrator of the encryption system 10 , and writes the security parameter λ into the memory 22 .
[0148] (Step S12: Common Parameter Generation Process)
[0149] The public parameter generation unit 212 takes the confidentiality parameter λ obtained in step S11 as input and generates the confidentiality parameter λ through the algorithm G dpvs Generate the parameters param of the dual pairing vector space V :=(q,V,G T ,A,e). Specifically, the common parameter generation unit 212 generates the parameter param as shown in mathematical formula 117. V .
[0150]
Mathematical formula 117
[0151]
[0152] In addition, the common parameter generation unit 212 generates the element g as shown in mathematical formula 118: T .
[0153]
Mathematical formula 118
[0154]
[0155] Then, the common parameter generation unit 212 generates a parameter param V and element g T The public parameter generation unit 212 writes the public parameter param into the memory 22.
[0156] (Step S13: Base generation processing)
[0157] The base generation unit 213 uses the parameter param generated in step S12 V , generate a basis B^ related to each integer u where u=0,1 u and base B^ * u Specifically, the basis generation unit 213 generates a basis B^ related to each integer u of u=0,1 as shown in mathematical formula 119. u and base B^ * u .
[0158]
Mathematical formula 119
[0159] for u=0,1
[0160]
[0161]
[0162]
[0163]
[0164]
[0165] In addition, the basis generation unit 213 uses the basis B^ as shown in mathematical formula 120. u Generates the parameter y → :=(y1,...,y n ) element c.
[0166]
Mathematical formula 120
[0167]
[0168]
[0169] In addition, the basis generation unit 213 generates the parameter w as shown in the mathematical formula 121. → :=(w1,...,w n ).
[0170]
Mathematical formula 121
[0171]
[0172] In addition, the basis generation unit 213 generates the encoding function G shown in mathematical formula 122.
[0173]
Mathematical formula 122
[0174] G:G T →F q
[0175] The basis generation unit 213 converts the basis B^ u and base B^ * u , element c, parameter w → , the encoding function G is written into memory 22.
[0176] (Step S14: Public Key Generation Process)
[0177] The master key generation unit 214 generates a key by setting the confidentiality parameter λ, the public parameter param, the basis B^0 and the basis B^ * 0. Basis vector b 1.0 and basis vector b 1.3n+2, element c, public key pk of encoding function G. That is, pk: = (λ, param, B^0, B^ * 0,b 1.0 ,b 1.3n+2 ,c,G).
[0178] (Step S15: Master Secret Key Generation Process)
[0179] The master key generation unit 214 generates a * 0.0 and basis vector b * 0.1 , base B^ * 1. Parameter w → The master secret key msk. That is, msk: = (b * 0.0 ,b * 0.1 ,B^ * 1,w → ).
[0180] (Step S16: Sending Process)
[0181] The sending unit 215 sends the public key pk to the user secret key generation device 30, the master re-encryption key generation device 40 and each encryption device 50 via the transmission path 80. In addition, the sending unit 215 secretly sends the master secret key msk to the user secret key generation device 30 and the master re-encryption key generation device 40 via the transmission path 80.
[0182] **Operation of the user secret key generation device 30**
[0183] Reference Fig. 9 The operation of the user secret key generation device 30 according to the first embodiment will be described.
[0184] The operation sequence of the user secret key generation device 30 of Embodiment 1 corresponds to the user secret key generation method of Embodiment 1. In addition, the program that realizes the operation of the user secret key generation device 30 of Embodiment 1 corresponds to the user secret key generation program of Embodiment 1.
[0185] The user secret key generation device 30 generates a user secret key dk based on the public key pk and the master secret key msk. v The user secret key generation device 30 secretly sends the user secret key dk to the re-encryption device 60 and the decryption device 70 via the transmission path 80. v .
[0186] In addition, the user secret key dk vInstead of sending via the transmission path 80, the document may be sent by post or the like.
[0187] (Step S21: Acquisition Process)
[0188] The acquisition unit 311 acquires the public key pk and the master secret key msk transmitted by the common parameter generation device 20 . The acquisition unit 311 writes the public key pk and the master secret key msk into the memory 32 .
[0189] In addition, the acquisition unit 311 acquires the parameter v → :=(v1,...,v n Specifically, the acquisition unit 311 receives the parameter v input by the administrator of the user secret key generation device 30. → The acquisition unit 311 takes the parameter v → Write to memory 32. Parameter v → Indicates the use of user secret key dk v The user's attributes, etc.
[0190] (Step S22: User secret key generation process)
[0191] The user secret key generation unit 312 generates a random number as shown in mathematical formula 123.
[0192]
Mathematical formula 123
[0193]
[0194] The user secret key generation unit 312 generates a key element k as shown in equation 124. * .
[0195]
Mathematical formula 124
[0196]
[0197] The user secret key generation unit 312 generates the key element k * Write to memory 32.
[0198] (Step S23: Sending Process)
[0199] The sending unit 313 sets the parameter v → and the key element k * User secret key dk v It is secretly sent to the decryption device 70 via the transmission path 80.
[0200] **Operation of the master re-encryption key generation device 40**
[0201] Reference Fig.10The operation of the master re-encryption key generation device 40 according to Embodiment 1 will be described.
[0202] The operation sequence of the master re-encryption key generation device 40 of Embodiment 1 is equivalent to the master re-encryption key generation method of Embodiment 1. In addition, the program that realizes the operation of the master re-encryption key generation device 40 of Embodiment 1 is equivalent to the master re-encryption key generation program of Embodiment 1.
[0203] The master re-encryption key generation device 40 generates a master re-encryption key mrk based on the public key pk and the master secret key msk. The master re-encryption key generation device 40 secretly sends the master re-encryption key mrk to the re-encryption device 60 via the transmission path 80.
[0204] In addition, the master re-encryption key mrk may be sent by mail instead of via the transmission path 80.
[0205] (Step S31: Acquisition Process)
[0206] The acquisition unit 411 acquires the public key pk and the master secret key msk transmitted by the common parameter generation device 20. The acquisition unit 311 writes the public key pk and the master secret key msk into the memory 32.
[0207] (Step S32: Master re-encryption key generation process)
[0208] The master re-encryption key generation unit 412 generates a random number as shown in mathematical formula 125.
[0209]
Mathematical formula 125
[0210]
[0211] The master re-encryption key generation unit 412 generates the key element k as shown in equation 126: * r , encryption element c r and element D. As shown in mathematical formula 126, in the key element k * r The parameter y set in the encryption element c1 included in the ciphertext generated by the encryption device 50 described later is set in → The corresponding parameter w → .
[0212]
Mathematical formula 126
[0213]
[0214]
[0215]
[0216] The master re-encryption key generation unit 412 converts the key element k * r , encryption element c r The sum element D is written to memory 42.
[0217] (Step S33: Sending Process)
[0218] The sending unit 413 sets the key element k * r , encryption element c r , element D and basis B^ * The master re-encryption key mrk of 1 is secretly sent to the re-encryption device 60 via the transmission path 80.
[0219] **Operation of the encryption device 50**
[0220] Reference Fig.11 The operation of the encryption device 50 according to the first embodiment will be described.
[0221] The operation sequence of the encryption device 50 of the first embodiment corresponds to the encryption method of the first embodiment. In addition, the program for realizing the operation of the encryption device 50 of the first embodiment corresponds to the encryption program of the first embodiment.
[0222] The encryption device 50 sets the access range x according to the public key pk and generates the ciphertext oct obtained by encrypting the message m. x The encryption device 50 transmits the ciphertext oct via the transmission path 80. x Sent to the re-encryption device 60 and the decryption device 70.
[0223] In addition, the ciphertext oct x Instead of sending via the transmission path 80, the ciphertext may be sent by mail. x It may also be sent to only one of the re-encryption device 60 and the decryption device 70 as needed.
[0224] (Step S41: Acquisition Process)
[0225] The acquisition unit 511 acquires the public key pk transmitted from the common parameter generation device 20 . The acquisition unit 511 writes the public key pk into the memory 52 .
[0226] In addition, the acquisition unit 511 acquires the parameter x → :=(x1,...,x n ) and message m. Specifically, the acquisition unit 511 receives the parameter x input by the administrator of the encryption device 50. → and message m. The acquisition unit 511 takes the parameter x →and message m is written to memory 52. Parameter x → Indicates the ciphertext oct x The access scope of the property, etc.
[0227] (Step S42: Encryption Process)
[0228] The encryption unit 512 generates a random number as shown in mathematical formula 127.
[0229]
Mathematical formula 127
[0230]
[0231] The encryption unit 512 generates encrypted element c0, encrypted element c1, and encrypted element C as shown in Math. 128.
[0232]
Mathematical formula 128
[0233]
[0234]
[0235]
[0236] (Step S43: Sending Process)
[0237] The sending unit 513 sets the parameter x → , encrypted element c0, encrypted element c1 and the ciphertext of encrypted element C oct x Sent to the re-encryption device 60 and the decryption device 70.
[0238] **Actions of the re-encryption device 60**
[0239] Reference Fig.12 The operation of the re-encryption device 60 according to the first embodiment will be described.
[0240] The operation sequence of the re-encryption device 60 of the first embodiment corresponds to the re-encryption method of the first embodiment. In addition, the program for realizing the operation of the re-encryption device 60 of the first embodiment corresponds to the re-encryption program of the first embodiment.
[0241] The re-encryption device 60 generates a re-encrypted ciphertext rct according to the public key pk and the master re-encryption key mrk x’ The re-encryption device 60 transmits the re-encrypted ciphertext rct via the transmission path 80. x’ Sent to the decryption device 70.
[0242] In addition, re-encrypt the ciphertext rct x’ Instead of sending via the transmission path 80, the document may be sent by post or the like.
[0243] (Step S51: Acquisition Process)
[0244] The acquisition unit 611 acquires the public key pk transmitted by the common parameter generation device 20 and the master re-encryption key mrk transmitted by the master re-encryption key generation device 40. The acquisition unit 611 writes the public key pk and the master re-encryption key mrk into the memory 62.
[0245] In addition, the acquisition unit 611 acquires the re-encrypted target ciphertext oct sent by the encryption device 50. x The acquisition unit 611 obtains the target ciphertext oct x Write memory 62.
[0246] In addition, the acquisition unit 611 acquires the parameter x → ':=(x'1,...,x' n Specifically, the acquisition unit 611 receives the parameter x input by the administrator of the re-encryption device 60. → '. The acquisition unit 611 takes the parameter x → 'Write to memory 62. Parameter x → 'Indicates the re-encrypted ciphertext rct x’ The access scope of the property, etc. That is, the parameter x → 'Indicates the access scope after the change.
[0247] (Step S52: Re-encryption key generation process)
[0248] The re-encryption key generation unit 612 generates a random number as shown in Math Formula 129.
[0249]
Mathematical formula 129
[0250]
[0251] The re-encryption key generation unit 612 generates the key element k as shown in equation 130: ~* r , encryption element c ~ r (c ~ r.0 and c ~ r.1 ) and element D ~ .
[0252]
Mathematical formula 130
[0253]
[0254]
[0255]
[0256]
[0257] As shown in mathematical formula 130, the key element k ~* r is the key element k * r Embed a random number r in ~ Encryption element c ~ r The parameter x indicating the access range after the change is set → ', embedded with random number ζ ~ r Element D ~ Embedded random number ζ ~ r For the random number r ~ Encryption is performed.
[0258] The re-encryption key generation unit 612 converts the key element k ~* r , encryption element c ~ r (c ~ r.0 and c ~ r.1 ) and element D ~ Write memory 62.
[0259] (Step S53: Re-encryption processing)
[0260] The re-encryption unit 613 generates element K and element E as shown in mathematical formula 131.
[0261]
Mathematical formula 131
[0262]
[0263] As shown in Mathematical Formula 131, the element K is calculated by calculating the encryption element c1 and the decryption key k ~* r pairing operation, through the decryption key k ~* r Generated by decrypting the encrypted element c1. In addition, the element K is embedded with a random number r'. The element E is generated by decrypting the encrypted element c1. ~ It is formed by embedding a random number r'.
[0264] (Step S54: Sending Process)
[0265] The sending unit 614 sets the parameter x → ', encryption element c ~ r (c ~ r.0 and c~ r.1 ), element E, element K and the re-encrypted ciphertext of encrypted element C rct x’ It is sent to the decryption device 70 via the transmission path 80 .
[0266] **Action of the decryption device 70**
[0267] Reference Fig.13 The operation of the decryption device 70 according to the first embodiment will be described.
[0268] The operation sequence of the decryption device 70 of the first embodiment corresponds to the decryption method of the first embodiment. In addition, the program for realizing the operation of the decryption device 70 of the first embodiment corresponds to the decryption program of the first embodiment.
[0269] The decryption device 70 performs a decryption on the ciphertext oct generated by the encryption device 50. x and the re-encrypted ciphertext rct generated by the re-encryption device 60 x’ Decrypt.
[0270] (Step S61: Acquisition Process)
[0271] The acquisition unit 711 acquires the user secret key dk sent by the user secret key generation device 30. v The acquisition unit 711 obtains the user secret key dk v Write memory 72.
[0272] The acquisition unit 711 acquires the ciphertext oct sent by the encryption device 50. x and the re-encrypted ciphertext rct sent by the re-encryption device 60 x’ The acquisition unit 711 writes the ciphertext ct into the memory 72.
[0273] (Step S62: Determination Process)
[0274] The determination unit 712 determines that the ciphertext ct obtained in step S61 is the ciphertext oct x Or re-encrypt the ciphertext rct x’ Specifically, the determination unit 712 determines whether the ciphertext ct is the ciphertext oct according to the number of elements of the ciphertext ct. x Or re-encrypt the ciphertext rct x’ .
[0275] The determination unit 712 determines whether the ciphertext ct is the ciphertext oct x If the ciphertext ct is the re-encrypted ciphertext rct, the process proceeds to step S63. x’ In this case, the processing proceeds to step S64.
[0276] (Step S63: First Decryption Process)
[0277] The decryption unit 713 performs a decryption on the ciphertext ct (= ciphertext oct) as shown in equation 132. x ) is decrypted to generate message m'.
[0278]
Mathematical formula 132
[0279] m':=C / e(c0,k * )
[0280] Here, the parameter x set in the ciphertext ct → and user secret key dk v The parameter v set in → In the corresponding case, the ciphertext ct is correctly decrypted to become message m' = message m. → and parameter v → Corresponding means x → ·v → =0.
[0281] (Step S64: Second Decryption Process)
[0282] The decryption unit 713 decrypts the ciphertext ct (= re-encrypted ciphertext rct as shown in equation 133 x’ ) is decrypted to generate message m'.
[0283]
Mathematical formula 133
[0284]
[0285] m':=C / K 1 / R
[0286] Here, the parameter x set in the ciphertext ct →’ and user secret key dk v The parameter v set in → In the corresponding case, the ciphertext ct is correctly decrypted to become message m' = message m. →’ and parameter v → Corresponding means x →’ ·v → =0.
[0287] (Step S65: Output processing)
[0288] The decryption unit 713 outputs the message m′ generated in step S63 or step S64 via the communication interface 64 .
[0289] Here, the element E shown in mathematical formula 131 is as shown in mathematical formula 134.
[0290]
Mathematical formula 134
[0291]
[0292] In x → '·v → When =0, the two pairing operations shown in mathematical formula 133 are as shown in mathematical formula 135.
[0293]
Mathematical formula 135
[0294]
[0295]
[0296] where
[0297]
[0298]
[0299]
[0300] Therefore, the element R shown in mathematical formula 133 is as shown in mathematical formula 136.
[0301]
Mathematical formula 136
[0302]
[0303] In addition, the element K shown in mathematical formula 131 is as shown in mathematical formula 137.
[0304]
Mathematical formula 137
[0305]
[0306] where
[0307]
[0308]
[0309] Therefore, the message m' shown in mathematical formula 133 is as shown in mathematical formula 138.
[0310]
Mathematical formula 138
[0311]
[0312] Here, in the ciphertext oct generated by the encryption device 50 x The encryption element c0 has the parameter x set → The master re-encryption key mrk does not contain the setting with parameter x → The corresponding parameter v→ Therefore, the master re-encryption key mrk cannot be used to encrypt any ciphertext oct generated by the encryption device 50. x Decrypt.
[0313] In addition, the ciphertext oct generated by the encryption device 50 x The encrypted element c1 is embedded with the parameter y → The master re-encryption key mrk contains the element c set with the parameter y → The corresponding parameter w → The key element k * r Therefore, the master re-encryption key mrk can be used to encrypt any ciphertext oct generated by the encryption device 50. x Generates a re-encryption key for making changes to access scopes.
[0314] ***Effects of Implementation Method 1***
[0315] As described above, in the encryption system 10 of implementation mode 1, re-encryption is performed using a master re-encryption key, which cannot decrypt any ciphertext generated by the encryption device, but can generate a re-encryption key for changing the access range for any ciphertext generated by the encryption device.
[0316] The master re-encryption key can generate a re-encryption key for changing the access range for any ciphertext, so the user's secret key and master public key are not required to generate the re-encryption key. Therefore, the possibility of leakage of the user's secret key and master public key can be reduced, and security is high. Furthermore, the master re-encryption key cannot decrypt any ciphertext, so the master re-encryption key will not be used for improper decryption, and security is high.
[0317] ***Other structures***
[0318] <Modification 1>
[0319] In the first embodiment, each functional component is implemented by software. However, as a modification example 1, each functional component may be implemented by hardware. Regarding this modification example 1, the differences from the first embodiment will be described.
[0320] When the functions are realized by hardware, the common parameter generating device 20 has an electronic circuit instead of the processor 21, the memory 22 and the storage 23. The electronic circuit is a dedicated circuit that realizes the functions of the functional structural elements of the common parameter generating device 20, the memory 22 and the storage 23.
[0321] When the functions are realized by hardware, the user secret key generation device 30 has an electronic circuit instead of the processor 31, the memory 32 and the storage 33. The electronic circuit is a dedicated circuit that realizes the functions of the functional structural elements of the user secret key generation device 30, the memory 32 and the storage 33.
[0322] When the functions are implemented by hardware, the master re-encryption key generation device 40 has an electronic circuit instead of the processor 41, the memory 42 and the storage 43. The electronic circuit is a dedicated circuit that implements the functions of the functional structural elements of the master re-encryption key generation device 40, the memory 42 and the storage 43.
[0323] When the functions are realized by hardware, the encryption device 50 has an electronic circuit instead of the processor 51, the memory 52, and the storage 53. The electronic circuit is a dedicated circuit that realizes the functions of the functional structural elements of the encryption device 50, the memory 52, and the storage 53.
[0324] When the functions are implemented by hardware, the re-encryption device 60 has an electronic circuit instead of the processor 61, the memory 62, and the storage 63. The electronic circuit is a dedicated circuit that implements the functions of the functional structural elements of the re-encryption device 60, the memory 62, and the storage 63.
[0325] When the functions are realized by hardware, the decryption device 70 has an electronic circuit instead of the processor 71, the memory 72, and the storage 73. The electronic circuit is a dedicated circuit that realizes the functions of the functional structural elements of the decryption device 70, the memory 72, and the storage 73.
[0326] It is assumed that the electronic circuit is a single circuit, a composite circuit, a programmed processor, a parallel programmed processor, a logic IC, a GA (Gate Array), an ASIC (Application Specific Integrated Circuit), or an FPGA (Field-Programmable Gate Array).
[0327] The functions of each functional structural element of the public parameter generating device 20 may be implemented by one electronic circuit, or may be implemented by distributing the functions of each functional structural element of the public parameter generating device 20 in multiple electronic circuits. Similarly, the functions of each functional structural element of the user secret key generating device 30, the master re-encryption key generating device 40, the encryption device 50, the re-encryption device 60, and the decryption device 70 may be implemented by one electronic circuit, or may be implemented by distributing the functions of each functional structural element in multiple electronic circuits.
[0328] <Modification 2>
[0329] As a second modification, some functions may be implemented by hardware, and other functions may be implemented by software. In other words, some functions of each functional component may be implemented by hardware, and other functions may be implemented by software.
[0330] The processors 21, 31, 41, 51, 61, 71, the memories 22, 32, 42, 52, 62, 72, the storages 23, 33, 43, 53, 63, 73, and the electronic circuits are referred to as processing circuits. That is, the functions of the functional structural elements are realized by the processing circuits.
[0331] Description of symbols
[0332] 10: encryption system; 20: public parameter generation device; 21: processor; 22: memory; 23: storage; 24: communication interface; 211: acquisition unit; 212: public parameter generation unit; 213: base generation unit; 214: master key generation unit; 215: transmission unit; 30: user secret key generation device; 31: processor; 32: memory; 33: storage; 34: communication interface; 311: acquisition unit; 312: user secret key generation unit; 313: transmission unit; 40: master re-encryption key generation device; 41: processor; 42: memory; 43: storage; 44: communication interface; 411: acquisition unit; 412 : Master re-encryption key generation unit; 413: Sending unit; 50: Encryption device; 51: Processor; 52: Memory; 53: Storage; 54: Communication interface; 511: Acquisition unit; 512: Encryption unit; 513: Sending unit; 60: Re-encryption device; 61: Processor; 62: Memory; 63: Storage; 64: Communication interface; 611: Acquisition unit; 612: Re-encryption key generation unit; 613: Re-encryption unit; 614: Sending unit; 70: Decryption device; 71: Processor; 72: Memory; 73: Storage; 74: Communication interface; 711: Acquisition unit; 712: Judgment unit; 713: Decryption unit; 80: Transmission path.
Claims
1. A re-encryption device, the re-encryption device comprising: a re-encryption key generating unit, which generates a re-encryption key for re-encrypting the target ciphertext generated by the encryption device using a master re-encryption key, wherein the master re-encryption key cannot decrypt the ciphertext generated by the encryption device, but can generate a re-encryption key for changing the access range for the ciphertext generated by the encryption device, wherein the master re-encryption key includes a key element k * r , the key element k * r The parameter y set in the encryption element c1 included in the ciphertext generated by the encryption device is set → The corresponding parameter w → , the re-encryption key is contained in the key element k * r The random number r is embedded in ~ The key element k ~* r , set the parameter x indicating the access range after the change → 'The encrypted element c ~ r , and the random number r ~ The encrypted element D ~ ;as well as The re-encryption unit re-encrypts the target ciphertext using the re-encryption key generated by the re-encryption key generation unit to generate a ciphertext containing the key element k ~* r The element K obtained by decrypting the encrypted element c1, the encrypted element c ~ r , and the element D is set ~ The re-encrypted ciphertext including element E.
2. The re-encryption device according to claim 1, wherein: The re-encryption unit uses the key element k ~* r Decrypt the encrypted element c1, embed the random number r' to generate the element K, and ~ The element E is generated by embedding the random number r'.
3. The re-encryption device according to claim 2, wherein: The re-encryption key generation unit embeds a random number z ~ r The encryption element c is generated ~ r , embedding the random number ζ ~ r The generated element D ~ .
4. The re-encryption device according to claim 3, wherein: The re-encryption key generation unit uses the master re-encryption key shown in Mathematical Formula 1 to generate the key element k shown in Mathematical Formula 2 ~* r And the encryption element c ~ r and element D ~ The re-encryption key, The re-encryption unit generates a signal including the element K and the element E shown in Mathematical Formula 3 and the encrypted element c ~ r The re-encrypted ciphertext, 【Mathematical formula 1】 in G: encoding function G T →F q , g T ∈G T , B0, base Among them, F q represents a finite body of q digits, Represents the finite body F q Uniformly select a vector with n elements in Represents the finite body F q Uniform random numbers r, δ are uniformly selected from r , c r is the encryption element, D is the element, 【Mathematical formula 2】 in in, Represents the finite body F q Uniformly select a vector with n elements in From the finite body F q A uniform random number uniformly chosen from For encryption elements, 【Mathematical formula 3】 K:=e(c1,k~ * r )r′,E:=D~·r′ in b 1.0 , b 1.3n+2 : Basis vector in, ω, ω1, From the finite body F q A uniform random number uniformly selected from the base B1, c represents a random number generated using the parameters set elements.
5. A re-encryption method, wherein: The re-encryption key generation unit of the re-encryption device generates a re-encryption key for re-encrypting the target ciphertext generated by the encryption device using the master re-encryption key, wherein the master re-encryption key cannot decrypt the ciphertext generated by the encryption device, but can generate a re-encryption key for changing the access range for the ciphertext generated by the encryption device, and the master re-encryption key includes a key element k * r , the key element k * r The parameter y set in the encryption element c1 included in the ciphertext generated by the encryption device is set → The corresponding parameter w → , the re-encryption key is contained in the key element k * r The random number r is embedded in ~ The key element k ~* r , set the parameter x indicating the access range after the change → 'The encrypted element c ~ r , and the random number r ~ The encrypted element D ~ , The re-encryption unit of the re-encryption device re-encrypts the object ciphertext using the re-encryption key to generate a ciphertext containing the key element k ~* r The element K obtained by decrypting the encrypted element c1, the encrypted element c ~ r , and the element D is set ~ The re-encrypted ciphertext including element E.
6. A computer-readable storage medium storing a re-encryption program, the re-encryption program causing the computer to function as a re-encryption device, the re-encryption device performing the following processing: The re-encryption key generation process is as follows: the re-encryption key generation unit generates a re-encryption key for re-encrypting the target ciphertext generated by the encryption device using a master re-encryption key, wherein the master re-encryption key cannot decrypt the ciphertext generated by the encryption device, but can generate a re-encryption key for changing the access range for the ciphertext generated by the encryption device, and the master re-encryption key includes a key element k * r , the key element k * r The parameter y set in the encryption element c1 included in the ciphertext generated by the encryption device is set → The corresponding parameter w → , the re-encryption key is contained in the key element k * r The random number r is embedded in ~ The key element k ~* r , set the parameter x indicating the access range after the change → 'The encrypted element c ~ r , and the random number r ~ The encrypted element D ~ ;as well as The re-encryption unit re-encrypts the target ciphertext using the re-encryption key generated by the re-encryption key generation process to generate a ciphertext containing the key element k. ~* r The element K obtained by decrypting the encrypted element c1, the encrypted element c ~ r , and the element D is set ~ The re-encrypted ciphertext including element E.
7. An encryption system, the encryption system comprising: an encryption device that generates ciphertext; A master re-encryption key generating device, which generates a master re-encryption key, wherein the master re-encryption key cannot decrypt the ciphertext generated by the encryption device, but can generate a re-encryption key for changing the access range for the ciphertext generated by the encryption device, wherein the master re-encryption key includes a key element k * r , the key element k * r The parameter y set in the encryption element c1 included in the ciphertext generated by the encryption device is set → The corresponding parameter w → ; A re-encryption device, which uses the master re-encryption key generated by the master re-encryption key generation device to generate a re-encryption key for re-encrypting the target ciphertext generated by the encryption device, wherein the re-encryption key is included in the key element k * r The random number r is embedded in ~ The key element k ~* r , set the parameter x indicating the access range after the change → 'The encrypted element c ~ r , and the random number r ~ The encrypted element D ~ The re-encryption device re-encrypts the object ciphertext using the generated re-encryption key to generate a ciphertext containing the key element k ~* r The element K obtained by decrypting the encrypted element c1, the encrypted element c ~ r , and the element D is set ~ The re-encrypted ciphertext including the element E; as well as A decryption device decrypts at least one of the ciphertext generated by the encryption device and the re-encrypted ciphertext generated by the re-encryption device.
