The present disclosure relates to a computation technique of final exponentiation in pairing computation.
Pairing computation is a computation that uses elliptic curves processed in a cryptographic method such as functional encryption and searchable encryption. An elliptic curve appropriate for efficient computation of pairing computation is called a pairing-friendly curve. Conventionally, a Barret-Naehrig (BN) curve has been known as a pairing-friendly curve corresponding to 128-bit security. However, since around 2016, the security has been reviewed, and there is an increasing interest for pairing computation that uses various pairing-friendly curves such as a Barreto-Lynn-Scott (BLS) curve and a Kachisa-Schaefer-Scott (KSS) curve.
The pairing computation can be roughly classified into computation of a Miller function and computation of final exponentiation. Both the computation of the Miller function and the computation of the final exponentiation require a complicated computation process, which largely influences a computation amount of an entire cryptographic method such as functional encryption and searchable encryption.
Non-Patent Literatures 1 and 2 describe the BLS curve which is regarded to have a high efficiency in the entire pairing computation among many pairing-friendly curves. Non-Patent Literatures 1 and 2 describe pairing computation in BLS curves with an embedding degree k of k=24, 27, 42, and 48. Patent Literature 1 and Non-Patent Literature 2 describe the KSS curves. Any of these literatures shows a result that a computation amount of final exponentiation is larger than a computation amount of the Miller function.
A pairing-friendly curve is an elliptic curve determined by a polynomial r(x), a polynomial p(x), a polynomial t(x), an embedding degree k, an integer D, and an integer u. The polynomial r(x), the polynomial p(x), and the polynomial t(x) have different forms depending on the embedding degree k.
A pairing-friendly curve E with an embedding degree k is an elliptic curve defined over a finite field Fp consisting of p=p(x) elements. Note that r=r(x) is a maximum prime that divides an order of a subgroup E(Fp) of the elliptic curve E. Note that t=t(x) is a trace of the elliptic curve E.
Pairing computation on the elliptic curve E is performed by taking as input two certain points P and Q on the elliptic curve E, computing a rational function f called the Miller function, and after that raising the computation result to a power of (p(x)k−1)/r(x). Namely, the pairing computation on the elliptic curve E is performed by Formula 11.
In description of Non-Patent Literature 3, in order to efficiently compute the final exponentiation, an exponent portion (p(x)k−1)/r(x) is decomposed into an easy part and a hard part with using a polynomial Φk(p(x)).
Exponentiation computation of the easy part can be efficiently performed using a fast power of p(x)i. In exponentiation computation of the hard part, as indicated by Formula 12, an exponent portion of the hard part is transformed into a linear sum of p(x)i, and exponentiation by each coefficient λi(x) is computed.
Each λi(x) of the hard part necessary to compute the final exponentiation depends largely on a polynomial parameter of an elliptic curve. Accordingly, there is no general method of efficiently computing the hard part. Depending on the elliptic curve, an efficient method of computing the hard part is unknown. Further, even when an efficient computation method of the hard part is known, it is necessary to prepare a means of computing the hard part in advance for each elliptic curve.
An objective of the present disclosure is to make it possible to efficiently compute final exponentiation in pairing computation.
A final exponentiation computation device according to the present disclosure includes:
a decomposition unit to decompose an exponent portion of a final exponentiation computation portion of pairing computation in an elliptic curve into an easy part and a hard part with using a polynomial Φk(p(x)), the elliptic curve being expressed by: a polynomial r(x)=Φk(T(x))/h2(x), a polynomial p(x)=h1(x)r(x)+T(x), and a polynomial t(x)=T(x)+1 which are expressed with using a cyclotomic polynomial Φk(x) having a degree d and indicated by Formula 1, a polynomial T(x), a polynomial h1(x), and a polynomial h2(x); and an embedding degree k; and an exponentiation computation unit to compute the hard part obtained by decomposition with the decomposition unit, with using a power of a polynomial p(x)i for each integer i of i=0, . . . , d−1, a power of λd−i(x) where λd−i(x)=cd, a power of λi where λi=T(x)λi+1(x)+ci−1 for each integer i of i=1, . . . , d−2, a power of h1(x), a power of h2(x), and at least one of multiplication and inverse element computation.
The present disclosure enables efficient final exponentiation computation that applies to many elliptic curves.
*** Description of Notation ***
In the specification and drawings, sometimes exponentiation is expressed using “{circumflex over ( )}”. In a specific example, a{circumflex over ( )}b expresses ab.
*** Description of Configuration ***
A configuration of a final exponentiation computation device 10 according to Embodiment 1 will be described with referring to
The final exponentiation computation device 10 is a computer.
The final exponentiation computation device 10 is provided with hardware devices which are a processor 11, a memory 12, a storage 13, and a communication interface 14. The processor 11 is connected to the other hardware devices via a signal line and controls the other hardware devices.
The processor 11 is an Integrated Circuit (IC) to perform processing. Specific examples of the processor 11 are a Central Processing Unit (CPU), a Digital Signal Processor (DSP), and a Graphics Processing Unit (GPU).
The memory 12 is a storage device to store data temporarily. Specific examples of the memory 12 are a Static Random-Access Memory (SRAM) and a Dynamic Random-Access Memory (DRAM).
The storage 13 is a storage device to keep data. A specific example of the storage 13 is a Hard Disk Drive (HDD). The storage 13 may be a portable recording medium such as a Secure Digital (SD, registered trademark) memory card, a CompactFlash (registered trademark, CF), a NAND flash, a flexible disk, an optical disk, a compact disk, a Blu-ray (registered trademark) Disc, and a Digital Versatile Disk (DVD).
The e communication interface 14 is an interface to communicate with an external device. Specific examples of the communication interface 14 are an Ethernet (registered trademark) port, a Universal Serial Bus (USB) port, and a High-Definition Multimedia Interface (HDMI) Port.
The final exponentiation computation device 10 is provided with an exponentiation simplification unit 21 and an exponentiation computation unit 22 as feature constituent elements. The exponentiation simplification unit 21 is provided with a decomposition unit 211 and a generation unit 212. Features of the feature constituent elements of the final exponentiation computation device 10 are implemented by software.
A program that implements the features of the feature constituent elements of the final exponentiation computation device 10 is stored in the storage 13. This program is read into the memory 12 by the processor 11 and run by the processor 11. The features of the feature constituent elements of the final exponentiation computation device 10 are thus implemented.
*** Description of Operations ***
Operations of the final exponentiation computation device 10 according to Embodiment 1 will be described with referring to
An operation procedure of the final exponentiation computation device 10 according to Embodiment 1 corresponds to a final exponentiation computation method according to Embodiment 1. A program that implements the operations of the final exponentiation computation device 10 according to Embodiment 1 corresponds to a final exponentiation computation program according to Embodiment 1.
Embodiment 1 uses a curve to be parameterized by a family of elliptic curves defined in a literature “[FST10] D. Freeman, M. Scott and E. Teske, “A Taxonomy of Pairing-Friendly Elliptic Curves”, J. Cryptol. (2010) 23:224-280.”
The curve to be parameterized by the family of elliptic curves defined in the above literature is an elliptic curve determined by a polynomial r(x), a polynomial p(x), a polynomial t(x), an embedding degree k, and an integer u to be assigned to a variable x. This elliptic curve E is an elliptic curve defined over a finite field Fp consisting of elements which are p=p(x) primes. Note that r=r(x) is a maximum prime that divides an order of a subgroup E(Fp) of the elliptic curve E. Also, t=t(x) is a trace of the elliptic curve E. In Embodiment 1, the polynomial t(x) being the trace of the elliptic curve is first-order linear. In a specific example, in Embodiment 1, the polynomial t(x)=x+1 which is the trace of the elliptic curve E.
Pairing computation on the elliptic curve E is performed by taking as input two certain points P and Q on the elliptic curve E, computing f obtained by evaluation of a rational function called the Miller function with P, and after that raising f to a power of (p(x)k−1)/r(x). First-half f computation is called Miller loop computation. Second-half exponentiation computation is called computation of final exponentiation.
In the computation of final exponentiation, as illustrated in
As indicated by Formula 13, the polynomial p(x), the polynomial r(x), and the polynomial t(x) which are parameters of the curve to be parameterized by the family of elliptic curves can be expressed with using a certain polynomial T(x), a certain polynomial h1(x), and a certain polynomial h2(x).
At this time, as indicated by Formula 14, the hard part can be computed with using a power of T(x), a power of h1(x), a power of h2(x), and at least one of multiplication and inverse element computation.
Since an embedding degree k of a practical elliptic curve is small, each coefficient ci of a cyclotomic polynomial Φk(x) is −1, 0, or 1.
Overall operations of the final exponentiation computation device 10 according to Embodiment 1 will be described with referring to
(Step S11: Exponentiation Simplification Process)
The decomposition unit 211 of the exponentiation simplification unit 21 decomposes (p(x)k−1)/r(x), being an exponent portion in the final exponentiation computation portion, into an easy part and a hard part. The easy part is a portion expressed by exponentiation of p(x). The hard part is a portion expressed by p(x) and exponentiation of x (exponentiation of u).
The generation unit 212 of the exponentiation simplification unit 21 computes the polynomial T(x), the polynomial h1(x), the polynomial h2(x), and an integer a which are necessary for computing the hard part, from the polynomial p(x), the polynomial r(x), the polynomial t(x), and the embedding degree k.
Note that the integer a is a positive, minimum and non-zero integer that renders every coefficient of ah1(x) and ah2(x) an integer. Since a fraction may appear in at least one coefficient of the polynomial h1(x) and polynomial h2(x), in processing to be described below, multiplication by the integer a is performed to cancel a denominator of the coefficient from the polynomial h1(x) and the polynomial h2(x).
(Step S12: Exponentiation Computation Process)
The exponentiation computation unit 22 performs, for the rational function f computed by the Miller loop, exponentiation computation of the easy part obtained in step S11, and exponential computation of the hard part, with using the polynomial T(x), the polynomial h1(x), the polynomial h2(x), and the integer a which are obtained in step S11. Thus, the final exponentiation indicated by Formula 15 is performed.
A result of raising pairing computation to the power of the integer a is computed because the polynomial h1(x) and the polynomial h2(x) are multiplied by the integer a in processing to be described later.
The exponentiation simplification process according to Embodiment 1 will be described with referring to
In step S21, the exponentiation simplification unit 21 acquires the embedding coefficient k, the polynomial r(x), the polynomial p(x), and the polynomial t(x) about the elliptic curve E.
In step S22, the decomposition unit 211 computes a factor A1(x) of (p(x)k−1)/r(x). The factor A1(x) is an entire portion of the easy part illustrated in
In step S23 through step S26, the generation unit 212 generates the polynomial T(x), the polynomial h1(x), the polynomial h2(x), and the integer a which are necessary for the exponentiation of the hard part, with using a condition of Formula 13.
In step S23, the generation unit 212 generates the polynomial T(x) by T(x)=t(x)−1, and writes it to the memory 12.
In step S24, the generation unit 212 generates the polynomial h1(x) by h1(x)=(p(x)−T(x))/r(x), and writes it to the memory 12.
In step S25, the generation unit 212 generates the polynomial h2(x) by h2(x)=r(x)/Φk(T(x)), and writes it to the memory 12.
In step S26, the generation unit 212 computes the integer a. The integer a is a positive, minimum and non-zero integer that renders every coefficient of ah1(x) and ah2(x) an integer. The generation unit 212 writes the generated integer a to the memory 12.
The exponentiation computation process according to Embodiment 1 will be described with referring to
In step S31, the exponentiation computation unit 22 reads the integer u, the value f computed by the Miller loop, and the factor A1(x), the polynomial T(x), the polynomial h1(x), the polynomial h2(x), and the integer a which are generated by the exponentiation simplification process, from the memory 12. Notation that uses the variable x of a polynomial is employed in the description below. In practice, computation is performed by assigning the integer u to the variable x.
In step S32, the exponentiation computation unit 22 generates a value A=f{circumflex over ( )}{A1(x)} by performing exponentiation where the value f is the base and the factor A1(x) is the exponent. In short, the exponentiation computation unit 22 computes the value A by Formula 16.
A=fA
1(x) [Formula 16]
In step S33, the exponentiation computation unit 22 generates a value C by performing exponentiation where the value A is the base and a linear sum of p(x)i of Formula 14 is the exponent. In short, the exponentiation computation unit 22 computes the value C by Formula 17.
In step S34, the exponentiation computation unit 22 generates a value D by performing exponentiation where the value C is the base and ah1(x) is the exponent. In short, the exponentiation computation unit 22 computes the value D by Formula 18.
D=C
ah
(x) [Formula 16]
In step S35, the exponentiation computation unit 22 generates a value E by performing exponentiation where the value A is the base and ah2(x) is the exponent. In short, the exponentiation computation unit 22 computes the value E by Formula 19.
E=A
ah
(x) [Formula 19]
In step S36, the exponentiation computation unit 22 generates a value F by computing a product of the value D and the value E. The value F is a result of pairing computation indicated by Formula 15. That is, in step S33 through step S36, the exponentiation computation unit 22 performs exponentiation of the hard part by using the power of T(x), the power of h1(x), the power of h2(x), and at least one of multiplication and inverse element computation in accordance with Formula 14.
A computation process of the value C in step S33 will be described.
In step S331, the exponentiation computation unit 22 initializes an index i by i=d−1.
In step S332, the exponentiation computation unit 22 initializes the value C to 1 and the value B to 1.
In step S333, the exponentiation computation unit 22 performs exponentiation where the value B is the base and T(x) is the exponent. Also, the exponentiation computation unit 22 performs exponentiation where the value A is the base and ci+1 is the exponent. Then, the exponentiation computation unit 22 updates the value B by computing a product of the two computed values. In short, the exponentiation computation unit 22 overwrites the value B with a value obtained by Formula 20.
B=B
T(x)
A
c
1 [Formula 20]
Since the embedding degree k of the practical elliptic curve is small, each coefficient ci of the cyclotomic polynomial Φk(x) is −1, 0, or 1. Thus, in practice, exponentiation of the base A in step S333 is not necessary, and multiplication of the value A or multiplication of an inverse element A−1 suffices. The inverse element A−1 may be computed in step S333, or may be computed in advance and used repeatedly.
In step S334, the exponentiation computation unit 22 performs exponentiation where the value B is the base and p(x)i is the exponent, and further computes a product with the value C, thereby updating the value C. In short, the exponentiation computation unit 22 overwrites the value C with a value obtained by Formula 21.
C=CBP(x)i [Formula 21]
In step S335, the exponentiation computation unit 22 decrements the index i by 1.
In step S336, the exponentiation computation unit 22 determines if the index i is not less than 0 or not. If the index i is not less than 0, the exponentiation computation unit 22 returns to the process of step S333. If the index i is less than 0, the exponentiation computation unit 22 moves forward to the process of step S34. That is, the exponentiation computation unit 22 updates the value C and the value B by executing the processes of step S333 and step S334 sequentially for the index i=d−1, d−2, . . . , 1, 0.
The value C updated by step S33 is a result of exponentiation indicated by Formula 17.
Examples of specific curves will be described.
An example in which the curve is a BLS-9 curve will be described.
In this case, the polynomial t(x)=x+1, the polynomial r(x)=⅓Φp(x)=⅓(x6+x3+1), and the polynomial p(x)=(x−1)2r(x)+x. Accordingly, the polynomial T(x)=x, the polynomial h1(x)=(x−1)2, and the polynomial h2(x)=3. Hence, the exponent portion is decomposed as in Formula 22.
Note that λ5(x)=1, λ4(x)=xλ5(x), λ3(x)=xλ4(x), λ2(x)=xλ3(x), +1, λ1(x)=xλ2(x), and λ0(x)=xλ1(x).
An example in which the curve is a BLS-12 curve will be described.
In this case, the polynomial t(x)=x+1, the polynomial r(x)=Φ12(x)=x4−x2+1, and the polynomial p(x)=⅓(x−1)2r(x)+x. Accordingly, the polynomial T(x)=x, the polynomial h1(x)=⅓(x−1)2, and the polynomial h2(x)=1. Hence, the exponent portion is decomposed as in Formula 23.
Note that λ3(x)=1, λ2(x)=xλ3(x), λ1(x)=xλ2(x)−1, and λ0(x)=xλ1(x).
An example of a curve with an embedding degree k=12 (not a BLS curve) will be described.
In this case, the polynomial t(x)=x+1, the polynomial r(x)=Φ12(x)=x4−x2+1, and the polynomial p(x)=¼(x−1)2(x2+1)r(x)+x. Accordingly, the polynomial T(x)=x, the polynomial h1(x)=¼(x−1)2(x2+1), and the polynomial h2(x)=1. Hence, the exponent portion is decomposed as in Formula 24.
Note that λ3(x)=1, λ2(x)=xλ3(x), λ1(x)=xλ2(x)−1, and λ0(x)=xλ1(x).
An example in which the curve is a BLS-15 curve will be described.
In this case, the polynomial t(x)=x+1, the polynomial r(x)=Φ15(x)=x8−x7+x5−x4+x3−x+1, and the polynomial p(x)=⅓(x−1)2(x2+x+1)r(x)+x. Accordingly, the polynomial T(x)=x, the polynomial h1(x)=⅓(x−1)2(x2+x+1), and the polynomial h2(x)=1. Hence, the exponent portion is decomposed as in Formula 25.
Note that λ7(x)=1, λ6(x)=xλ7(x)−1, λ5(x)=xλ6(x), λ4(x)=xλ5(x)+1, λ3(x)=xλ4(x)−1, λ2(x)=xλ3(x)+1, λ1(x)=xλ2(x), and λ0(x)=xλ1(x)−1.
An example in which the curve is a BLS-24 curve will be described.
In this case, the polynomial t(x)=x+1, the polynomial r(x)=Φ24(x)=x8−x4+1, and the polynomial p(x)=⅓(x−1)2r(x)+x. Accordingly, the polynomial T(x)=x, the polynomial h1(x)=⅓(x−1)2, and the polynomial h2(x)=1. Hence, the exponent portion is decomposed as in Formula 26.
Note that λ7(x)=1, λ6(x)=xλ7(x), λ5(x)=xλ6(x), λ4(x)=xλ5(x), λ3(x)=xλ4(x)−1, λ2(x)=xλ3(x), λ1(x)=xλ2(x), and λ0(x)=xλ1(x).
An example in which the curve is a BLS-27 curve will be described.
In this case, the polynomial t(x)=x+1, the polynomial r(x)=⅓Φ27(x)=⅓(x18+x9+1), and the polynomial p(x)=(x−1)2r(x)+x. Accordingly, the polynomial T(x)=x, the polynomial h1(x)=(x−1)2, and the polynomial h2(x)=3. Hence, the exponent portion is decomposed as in Formula 27.
Note that λ17(x)=1, λ16(x)=xλ17(x), λ15(x)=xλ16(x), λ14(x)=xλ15(x), λ13(x)=xλ14(x), λ12(x)=xλ13(x), λ11(x)=xλ12(x), λ10(x)=xλ11(x), λ9(x)=xλ10(x), λ8(x)=xλ9(x)+1, λ7(x)=λ8(x), λ6(x)=xλ7(x), λ5(x)=xλ6(x), λ4(x)=xλ5(x), λ3(x)=xλ4(x), λ2(x)=xλ3(x), λ1(x)=xλ2(x), and λ0(x)=xλ1(x).
An example in which the curve is a BLS-28 curve will be described.
In this case, the polynomial t(x)=x+1, the polynomial r(x)=Φ28(X)=x12−λ10+x8−x6+x4−x2+1), and the polynomial p(x)=⅓(x−1)2(x2+1)r(x)+x. Accordingly, the polynomial T(x)=x, the polynomial h1(x)=⅓(x−1)2(x2+1), and the polynomial h2(x)=1. Hence, the exponent portion is decomposed as in Formula 28.
Note that λ11(x)=1, λ10(x)=xλ11(x), λ9(x)=xλ10(x)−1, λ8(x)=xλ9(x), λ7(x)=λ8(x)+1, λ6(x)=xλ7(x), λ5(x)=xλ6(x)−1, λ4(x)=xλ5(x), λ3(x)=xλ4(x)+1, λ2(x)=xλ3(x), λ1(x)=xλ2(x)−1, and λ0(x)=xλ1(x).
An example of a curve with an embedding degree k=28 (not a BLS curve) will be described.
In this case, the polynomial t(x)=x+1, the polynomial r(x)=Φ28(x)=x12−x10+x8−x6+x4−x2+1, and the polynomial p(x)=¼(x−1)2(x2+1)r(x)+x. Accordingly, the polynomial T(x)=x, the polynomial h1(x)=¼(x−1)2(x2+1), and the polynomial h2(x)=1. Hence, the exponent portion is decomposed as in Formula 29.
Note that λ11(x)=1, λ10(x)=xλ11(x), λ9(x)=xλ10(x)−1, λ8(x)=xλ9(x), λ7(x)=λ8(x)+1, λ6(x)=xλ7(x), λ5(x)=xλ6(x)−1, λ4(x)=xλ5(x), λ3(x)=λ4(x)+1, λ2(x)=xλ3(x), λ1(x)=xλ2(x)−1, and λ0(x)=xλ1(x).
An example in which the curve is a BLS-42 curve will be described.
In this case, the polynomial t(x)=x+1, the polynomial r(x)=Φ42(X)=x12 x11−x9−x8+x6−x4−x3+x+1, and the polynomial p(x)=⅓(x−1)2(x2−x+1)r(x)+x. Accordingly, the polynomial T(x)=x, the polynomial h1(x)=⅓(x−1)2(x2−x+1), and the polynomial h2(x)=1. Hence, the exponent portion is decomposed as in Formula 30.
Note that λ11(x)=1, λ10(x)=xλ11(x)+1, λ9(x)=xλ10(x), λ8(x)=xλ9(x)−1, λ7(x)=λ8(x)−1, λ6(x)=xλ7(x), λ5(x)=xλ6(x)+1, λ4(x)=xλ5(x), λ3(x)=xλ4(x)−1, λ2(x)=xλ3(x)−1, λ1(x)=xλ2(x), and λ0(x)=xλ1(x)+1.
An example in which the curve is a BLS-48 curve will be described.
In this case, the polynomial t(x)=x+1, the polynomial r(x)=Φ48(x)=x16−x8+1, and the polynomial p(x)=⅓(x−1)2r(x)+x. Accordingly, the polynomial T(x)=x, the polynomial h1(x)=⅓(x−1)2, and the polynomial h2(x)=1. Hence, the exponent portion is decomposed as in Formula 31.
Note that λ15(x)=1, λ14(x)=xλ15(x), λ13(x)=xλ14(x), λ12(x)=xλ13(x), λ11(x)=xλ12(x), λ10(x)=xλ11(x), λ9(x)=xλ10(x), λ8(x)=xλ9(x), λ7(x)=λ8(x)−1, λ6(x)=xλ7(x), λ5(x)=xλ6(x), λ4(x)=xλ5(x), λ3(x)=xλ4(x), λ2(x)=xλ3(x), λ1(x)=xλ2(x), and λ0(x)=xλ1(x).
As described above, the final exponentiation computation device 10 according to Embodiment 1 decomposes the exponent portion into an easy part and a hard part with using the polynomial Φk(p(x)), and computes the hard part with using the power of T(x), the power of h1(x), the power of h2(x), and at least one of multiplication and inverse element computation. This enables efficient computation of pairing computation.
In particular, the final exponentiation computation device 10 according to Embodiment 1 transforms the hard part into a linear sum of the polynomial p(x)i on the basis of Formula 14. This enables efficient computation of pairing computation concerning many elliptic curves.
Specifically, as the hard part is transformed into a linear sum of the polynomial p(x)i on the basis of Formula 14, a number of exponentiation computations of p(x) increases a little, but a number of exponentiation computations of x decreases greatly. It is known that a computation amount of exponentiation computation of x is very large compared to a computation amount of exponentiation computation of p(x). Therefore, the final exponentiation computation device 10 according to Embodiment 1 can perform pairing computation efficiently by transforming the hard part into a linear sum of the polynomial p(x)i on the basis of Formula 14.
More specifically, particularly, a computation efficiency of the final exponentiation computation can be improved for a family of typical elliptic curves such as BLS-9, BLS-12, BLS-15, BLS-24, BLS-27, and BLS-48 curves having a trace t(x)=x+1 which that have been studied conventionally.
*** Other Configurations ***
<Modification 1>
In Embodiment 1, the feature constituent elements are implemented by software. However, Modification 1 may be possible in which the feature constituent elements are implemented by hardware. A difference of Modification 1 from Embodiment 1 will be described.
A configuration of a final exponentiation computation device 10 according to Modification 1 will be described with referring to
When the feature constituent elements are implemented by hardware, the final exponentiation computation device 10 is provided with an electronic circuit 15 in place of a processor 11, a memory 12, and a storage 13. The electronic circuit 15 is a dedicated circuit that implements the features of the feature constituent elements, a feature of the memory 12, and a feature of the storage 13.
The electronic circuit 15 is assumed to be a single circuit, a composite circuit, a programmed processor, a parallel-programmed processor, a logic IC, a Gate Array (GA), an Application Specific Integrated Circuit (ASIC), or a Field-Programmable Gate Array (FPGA).
The feature constituent elements may be implemented by one electronic circuit 15. The feature constituent elements may be decentralized into a plurality of electronic circuits and implemented by the plurality of electronic circuits 15.
<Modification 2>
Modification 2 may be possible in which some of the feature constituent elements are implemented by hardware and the remaining feature constituent elements are implemented by software.
The processor 11, the memory 12, the storage 13, and the electronic circuit 15 are referred to as processing circuitry. That is, the features of the feature constituent elements are implemented by processing circuitry.
<Modification 3>
In Embodiment 1, the final exponentiation computation device 10 which computes only the final exponentiation by acquiring the value f computed by the Miller loop is described. A pairing computation device 30 which performs pairing computation may be formed by adding a feature of performing computation of the Miller loop to the final exponentiation computation device 10 described in Embodiment 1.
A configuration of a pairing computation device 30 according to Modification 3 will be described with referring to
The pairing computation device 30 is provided with a Miller function computation unit 31 in addition to the feature constituent elements provided to the final exponentiation computation device 10. The Miller function computation unit 31 is implemented by software or hardware just as the feature constituent elements provided to the final exponentiation computation device 10 are. The Miller function computation unit 31 performs Miller loop computation.
In this case, in step S31 of
<Modification 4>
In Embodiment 1, the integer a is computed to cancel the denominator of the coefficient from the polynomial h1(x) and the polynomial h2(x). In Embodiment 1, if any coefficient of the polynomial h1(x) and the polynomial h2(x) does not include a fraction, 1 will be computed as the integer a. However, if any coefficient of the polynomial h1(x) and the polynomial h2(x) does not include a fraction, the integer a need not be computed. In this case, multiplication by the integer a need not be performed in an exponentiation simplification process and an exponentiation computation process.
In Embodiment 1, a computation method of the final exponentiation of the paring computation has been described. In Embodiment 2, a process that uses a result of pairing computation performed in Embodiment 1 will be described. In Embodiment 2, a difference from Embodiment 1 will be described, and a description of the same point as in Embodiment 1 will be omitted.
*** Description of Configuration ***
A configuration of a cryptographic processing device 40 according to Embodiment 2 will be described with referring to
The cryptographic processing device 40 is provided with a cryptographic processing unit 41 in addition to the feature constituent elements provided to the final exponentiation computation device 10 according to Embodiment 1. The cryptographic processing unit 41 is implemented by software or hardware just as the feature constituent elements provided to the final exponentiation computation device 10 are.
*** Description of Operations ***
Operations of the cryptographic processing device 40 according to Embodiment 2 will be described with reference to
An operation procedure of the cryptographic processing device 40 according to Embodiment 2 corresponds to a cryptographic processing method according to Embodiment 2. A program that implements the operations of the cryptographic processing device 40 according to Embodiment 2 corresponds to a cryptographic processing program according to Embodiment 2.
(Step S41: Pairing Computation Process)
A result of pairing computation is computed by the feature constituent elements provided to the final exponentiation computation device 10 according to Embodiment 1. The result of pairing computation is written to a memory 12.
(Step S42: Cryptographic Process)
The cryptographic processing unit 41 performs a cryptographic process with using the result of pairing computation obtained in step S41. The cryptographic process is a process of cryptographic primitive such as an encryption process, a decryption process, a signature process, and a verification process.
The encryption process is a process of converting plaintext-state data into a ciphertext so that the data is kept secret from the third party. The decryption process is a process of converting the ciphertext converted by the encryption process, into the plaintext-state data. The signature process is a process of generating a signature for at least either one of data manipulation detection and data origin confirmation. The verification process is a process of performing at least either one of data manipulation detection and data origin confirmation by the signature generated by the signature process.
For example, the cryptographic processing unit 41 may generate a message decrypted from a ciphertext with using a result of pairing computation that takes as input elements of the ciphertext and elements of a decryption key.
As described above, the cryptographic processing device 40 according to Embodiment 2 implements the cryptographic process with using the feature constituent elements of the final exponentiation computation device 10 according to Embodiment 1.
The final exponentiation computation device 10 according to Embodiment 1 can perform pairing computation efficiently. Therefore, the cryptographic processing device 40 according to Embodiment 2 can perform the cryptographic process efficiently.
*** Other Configurations ***<
<Modification 5>
In Embodiment 2, the cryptographic processing device 40 is provided with the cryptographic processing unit 41 in addition to the feature constituent elements provided to the final exponentiation computation device 10 according to Embodiment 1. However, the cryptographic processing device 40 may be provided with the cryptographic processing unit 41 in addition to the feature constituent elements provided to the pairing computation device 30 described in Modification 3.
So far, the embodiments and modifications of the present disclosure have been described. Several ones of these embodiments and modifications may be practiced by combination. Also, one or several ones of these embodiments and modifications may be practiced partially. The present disclosure is not limited to the above embodiments and modifications, and various changes can be made to the present disclosure as necessary.
10: final exponentiation computation device; 11: processor; 12: memory; 13: storage; 14: communication interface; 15: electronic circuit; 21: exponentiation simplification unit; 211: decomposition unit; 212: generation unit; 22: exponentiation computation unit; 30: pairing computation device; 31: Miller function computation unit; 40: cryptographic processing device; 41: cryptographic processing unit.
This application is a continuation application of International Application PCT/JP2020/026843, filed on Jul. 9, 2020, all of which is hereby expressly incorporated by reference into the present application.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/JP2020/026843 | Jul 2020 | US |
Child | 17989780 | US |