The present technology relates to an information processing apparatus and information processing method, and a program
With the rapid development of information processing technologies and communication technologies, documents have been digitized rapidly regardless of whether the documents are public or private. With the digitization of such documents, many individuals and companies have a considerable interest in security management of electronic documents. Countermeasures against tampering acts such as wiretapping or forgery of electronic documents have been actively studied in various fields in response to an increase in this interest. Regarding the wiretapping of electronic documents, security is ensured, for example, by encrypting the electronic documents. Further, regarding the forgery of electronic documents, security is ensured, for example, by using digital signatures. However, when the encryption or the digital signature to be used does not have high tampering resistance, sufficient security is not ensured.
The digital signature is used for specifying the author of an electronic document. Accordingly, the digital signature should be able to be generated only by the author of the electronic document. If a malicious third party is able to generate the same digital signature, the third party can impersonate the author of the electronic document. That is, an electronic document is forged by the malicious third party. Various opinions have been expressed regarding the security of the digital signature to prevent such forgery. As digital signature schemes that are currently widely used, a RSA signature scheme and a DSA signature scheme are known, for example.
The RSA signature scheme takes “difficulty of prime factorisation of a large composite number (hereinafter, prime factorisation problem)” as a basis for security. Also, the DSA signature scheme takes “difficulty of solving discrete logarithm problem” as a basis for security. These bases are based on that algorithms that efficiently solve the prime factorisation problem and the discrete logarithm problem by using a classical computer do not exist. That is, the difficulties mentioned above suggest the computational difficulty of a classical computer. However, it is said that solutions to the prime factorisation problem and the discrete logarithm problem can be efficiently calculated when a quantum computer is used.
Similarly to the RSA signature scheme and the DSA signature scheme, many of the digital signature schemes and public-key authentication schemes that are currently used also take difficulty of the prime factorisation problem or the discrete logarithm problem as a basis for security. Thus, if the quantum computer is put to practical use, security of such digital signature schemes and public-key authentication schemes will not be ensured. Accordingly, realizing new digital signature schemes and public-key authentication schemes is desired that take as a basis for security a problem different from problems such as the prime factorisation problem and the discrete logarithm problem that can be easily solved by the quantum computer. As a problem which is not easily solved by the quantum computer, there is a problem related to a multivariate polynomial, for example.
For example, as digital signature schemes that take the multivariate polynomial problem as a basis for security, those based on MI (Matsumoto-Imai cryptography), HFE (Hidden Field Equation cryptography), OV (Oil-Vinegar signature scheme), and TTM (Tamed Transformation Method cryptography) are known. For example, a digital signature scheme based on the HFE is disclosed in the following Non-Patent Literatures 1 and 2.
As described above, the multivariate polynomial problem is an example of a problem called NP-hard problem which is difficult to solve even when using the quantum computer. Normally, a public-key authentication scheme that uses the multivariate polynomial problem typified by the HFE or the like uses a multi-order multivariate simultaneous equation with a special trapdoor. For example, a multi-order multivariate simultaneous equation F(x1, . . . , xn)=y related to x1, . . . , xn, and linear transformations A and B are provided, and the linear transformations A and B are secretly managed. In this case, the multi-order multivariate simultaneous equation F and the linear transformations A and B are the trapdoors.
An entity that knows the trapdoors F, A, and B can solve an equation B(F(A(x1, . . . , xn)))=y′ related to x1, . . . , xn. On the other hand, the equation B(F(A(x1, . . . , xn)))=y′ related to x1, . . . , xn is not solved by an entity that does not know the trapdoors F, A, and B. By using this mechanism, a public-key authentication scheme and a digital signature scheme that take the difficulty of solving a multi-order multivariate simultaneous equation as a basis for security can be realized.
As mentioned above, in order to realize the public-key authentication scheme or the digital signature scheme, it is necessary to prepare a special multi-order multivariate simultaneous equation satisfying B(F(A(x1, . . . , xn)))=y. Further, at the time of the signature generation, it is necessary to solve the multi-order multivariate simultaneous equation F. For this reason, the available multi-order multivariate simultaneous equation F has been limited to relatively easily soluble equations. That is, in the past schemes, only a multi-order multivariate simultaneous equation B(F(A(x1, . . . , xn)))=y of a combined form of three functions (trapdoors) B, F, and A that can be relatively easily solved has been used, and thus it is difficult to ensure sufficient security.
Thus, the inventors of the present case took the above circumstances into consideration, and have invented an efficient public-key authentication scheme and a digital signature scheme with high security using a multi-order multivariate simultaneous equation to which an efficient solution (trapdoor) has not been known (Koichi Sakumoto, Taizo Shirai and Harunaga Hiwatari, ‘Public-Key Identification Schemes Based on Multivariate Quadratic Polynomials’, CRYPTO 2011, LNCS 6841, pp. 706-723, 2011).
However, as a multivariate polynomial used for the public-key authentication scheme and the digital signature scheme has many coefficients, it is necessary to decide a method for efficiently allocating the coefficients between a prover and a verifier when they are used as public keys. The present technology has been invented with the intention of providing a novel and improved information processing apparatus, information processing method, and program that can more efficiently calculate a multivariate polynomial.
According to an aspect of the present technology, there is provided an information processing apparatus including a number acquisition unit configured to acquire a number used for a coefficient of each term constituting a set of a multi-order multivariate polynomial F=(f1, . . . , fm), the number generated using a predetermined function from information shared between entities that execute an algorithm of a public-key authentication scheme or a digital signature scheme that uses a public key including the set of the multi-order multivariate polynomial F, and a polynomial calculation unit configured to calculate a multi-order multivariate polynomial for an input value of a variable by grouping coefficients of terms in which types of combinations of variables are the same among coefficients of the multi-order multivariate polynomial that includes the set of the multi-order multivariate polynomial F as a structural element, allocating the number acquired by the number acquisition unit to the coefficients of the multi-order multivariate in units of groups, and executing a process in units of the groups. The polynomial calculation unit expands the input value of the variable to the same number as a number of a coefficient corresponding to one group so that the process in units of the groups is enabled before the calculation is executed.
According to another aspect of the present technology, there is provided an information processing method including acquiring a number used for a coefficient of each term constituting a set of a multi-order multivariate polynomial F=(f1, . . . , fm), the number generated using a predetermined function from information shared between entities that execute an algorithm of a public-key authentication scheme or a digital signature scheme that uses a public key including the set of the multi-order multivariate polynomial F, and calculating a multi-order multivariate polynomial for an input value of a variable by grouping coefficients of terms in which types of combinations of variables are the same among coefficients of the multi-order multivariate polynomial that includes the set of the multi-order multivariate polynomial F as a structural element, allocating the acquired number to the coefficients of the multi-order multivariate in units of groups, and executing a process in units of the groups. In the calculation, the input value of the variable is expanded to the same number as a number of a coefficient corresponding to one group so that the process in units of the groups is enabled before the calculation is executed.
According to another aspect of the present technology, there is provided a program causing a computer to realize a number acquisition function of acquiring a number used for a coefficient of each term constituting a set of a multi-order multivariate polynomial F=(f1, . . . , fm), the number generated using a predetermined function from information shared between entities that execute an algorithm of a public-key authentication scheme or a digital signature scheme that uses a public key including the set of the multi-order multivariate polynomial F, and a polynomial calculation function of calculating a multi-order multivariate polynomial for an input value of a variable by grouping coefficients of terms in which types of combinations of variables are the same among coefficients of the multi-order multivariate polynomial that includes the set of the multi-order multivariate polynomial F as a structural element, allocating the number acquired through the number acquisition function to the coefficients of the multi-order multivariate in units of groups, and executing a process in units of the groups. The polynomial calculation function causes the input value of the variable to expand to the same number as a number of a coefficient corresponding to one group so that the process in units of the groups is enabled before the calculation is executed.
In addition, according to another point of view of the present technology, a computer-readable recording medium on which the program is recorded is provided.
According to the present technology described above, a multivariate polynomial can be more efficiently calculated.
Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the appended drawings. Note that, in this specification and the drawings, elements that have substantially the same function and structure are denoted with the same reference signs, and repeated explanation is omitted.
Here, a flow of the description of embodiments of the present technology to be made below will be briefly described. First, an algorithm structure of a public-key authentication scheme will be described with reference to
Next, a configuration example of an algorithm based on a 3-pass public-key authentication scheme will be described with reference to
Next, a method for efficiently substituting coefficients of a multivariate polynomial will be described with reference to
1: Introduction
2: Configuration of an algorithm based on a 3-pass public-key authentication scheme
3: Configuration of an algorithm based on a 5-pass public-key authentication scheme
4: Modification to a digital signature scheme
5: Regarding a method for efficiently substituting a coefficient of a multivariate polynomial
6: Hardware configuration example
7: Conclusion
The present embodiment relates to a public-key authentication scheme and a digital signature scheme that take the difficulty of solving a multi-order multivariate simultaneous equation as a basis for security. However, the present embodiment relates to a public-key authentication scheme and a digital signature scheme that uses a multi-order multivariate simultaneous equation that does not have an efficient solution (trapdoor), unlike a past method such as an HFE digital signature scheme. First, overviews of an algorithm of a public-key authentication scheme, an algorithm of a digital signature scheme, and the public-key authentication scheme of n-pass will be briefly described.
First, an overview of algorithms of a public-key authentication scheme will be described with reference to
A public-key authentication is used when a person (prover) convinces another person (verifier) of his or her identity by using a public key pk and a secret key sk. For example, a public key pkA of a prover A is made known to the verifier B. On the other hand, a secret key skA of the prover A is secretly managed by the prover A. According to the public-key authentication mechanism, a person who knows the secret key skA corresponding to the public key pkA is regarded as the prover A herself.
When the prover A proves identity as being the prover A to the verifier B using the public-key authentication mechanism, the prover A should present evidence that the prover A knows the secret key skA corresponding to the public key pkA to the verifier B via an interactive protocol. When the evidence that the prover A knows the secret key skA is presented to the verifier B and then the verifier B finishes confirmation of the evidence, legitimacy (identity) of the prover A is proven.
However, a public-key authentication mechanism requires the following conditions for ensuring security.
The first condition is “to lower as much as possible the probability of falsification being established, at the time the interactive protocol is performed, by a falsifier not having the secret key sk”. That this first condition is satisfied is called “soundness.” In other words, the soundness means that “falsification is not established during the execution of an interactive protocol by a falsifier not having the secret key sk with a non-negligible probability”. The second condition is that, “even if the interactive protocol is performed, information on the secret key skA of the prover A is not at all leaked to the verifier B”. That this second condition is satisfied is called “zero knowledge.”
It is necessary to use an interactive protocol having soundness and zero knowledge to perform public-key authentication in security. When an authentication process is conducted using the interactive protocol that does not have soundness and zero knowledge, there would be a definite chance of false verification and a definite chance of the divulgence of secret key information, and thus the validity of the prover would not be proven even if the process itself is completed successfully. Consequently, the question of how to ensure the soundness and zero knowledge of an interactive protocol is important.
In a model of the public-key authentication scheme, two entities, namely a prover and a verifier, are present, as shown in
On the other hand, the verifier performs the interactive protocol by using a verifier algorithm V, and verifies whether or not the prover possesses the secret key corresponding to the public key that the prover has published. That is, the verifier is an entity that verifies whether or not a prover possesses a secret key corresponding to a public key. As described, a model of the public-key authentication scheme is configured from two entities, namely the prover and the verifier, and three algorithms, namely the key generation algorithm Gen, the prover algorithm P and the verifier algorithm V.
Note that, expressions “prover” and “verifier” are used in the following description, but these expressions strictly mean entities. Therefore, the subject that performs the key generation algorithm Gen and the prover algorithm P is an information processing apparatus corresponding to the entity “prover”. Similarly, the subject that performs the verifier algorithm V is an information processing apparatus. The hardware configuration of these information processing apparatuses is as shown in
The key generation algorithm Gen is used by a prover. The key generation algorithm Gen is an algorithm for generating a pair of a public key pk and a secret key sk unique to the prover. The public key pk generated by the key generation algorithm Gen is published. Furthermore, the published public key pk is used by the verifier. On the other hand, the secret key sk generated by the key generation algorithm Gen is secretly managed by the prover. The secret key sk that is secretly managed by the prover is used to prove to the verifier of possession of the secret key sk corresponding to the public key pk by the prover. Formally, the key generation algorithm Gen is represented as formula (1) below as an algorithm that takes security parameter 1λ (λ is an integer of 0 or more) as an input and outputs the secret key sk and the public key pk.
[Math 1]
(sk,pk)←Gen(1λ) (1)
The prover algorithm P is used by a prover. The prover algorithm P is an algorithm for proving to the verifier that the prover possesses the secret key sk corresponding to the public key pk. In other words, the prover algorithm P is an algorithm that takes the public key pk and the secret key sk as inputs and performs the interactive protocol.
The verifier algorithm V is used by the verifier. The verifier algorithm V is an algorithm that verifies whether or not the prover possesses the secret key sk corresponding to the public key pk during the interactive protocol. The verifier algorithm V is an algorithm that takes the public key pk as input, and outputs 0 or 1 (1 bit) according to the execution results of the interactive protocol. Note that, the verifier decides that the prover is illegitimate in the case where the verifier algorithm V outputs 0, and decides that the prover is legitimate in the case where the verifier algorithm V outputs 1. Formally, the verifier algorithm V is expressed as in the following formula (2).
[Math 2]
0/1←V(pk) (2)
As above, realizing meaningful public-key authentication involves having the interactive protocol satisfy the two conditions of soundness and zero knowledge. However, proving that the prover possesses the secret key sk involves the prover executing a procedure dependent on the secret key sk, and after notifying the verifier of the result, causing the verifier to execute verification based on the content of the notification. The procedure dependent on the secret key sk is executed to ensure soundness. At the same time, no information about the secret key sk should be leaked to the verifier. For this reason, the above key generation algorithm Gen, the prover algorithm P, and the verifier algorithm V should be skillfully designed to satisfy these requirements.
The foregoing thus summarizes the algorithms in a public-key authentication scheme.
Next, algorithms for a digital signature scheme will be summarized with reference to
Unlike paper documents, it is not possible to physically sign or affix a seal to digitized data. For this reason, proving the creator of digitized data involves an electronic setup yielding effects similarly to physically signing or affixing a seal to a paper document. This setup is digital signatures. A digital signature refers to a setup that associates given data with signature data known only to the creator of the data, provides the signature data to a recipient, and verifies that signature data on the recipient's end.
As illustrated in
The signer uses the key generation algorithm Gen to generate a paired signature key sk and verification key pk unique to the signer. The signer also uses the signature generation algorithm Sig to generate a digital signature σ to attach to a message M. In other words, the signer is an entity that attaches a digital signature to the message M. Meanwhile, the verifier uses the signature verifying algorithm Ver to verify the digital signature a attached to the message M. In other words, the verifier is an entity that verifies the digital signature a in order to confirm whether or not the creator of the message M is the signer.
Note that although the terms “signer” and “verifier” are used in the description hereinafter, these terms ultimately mean entities. Consequently, the agent that executes the key generation algorithm Gen and the signature generation algorithm Sig is an information processing apparatus corresponding to the “signer” entity. Similarly, the agent that executes the signature verifying algorithm Ver is an information processing apparatus. The hardware configuration of these information processing apparatus is as illustrated in
The key generation algorithm Gen is used by the signer. The key generation algorithm Gen is an algorithm that generates a paired signature key sk and verification key pk unique to the signer. The verification key pk generated by the key generation algorithm Gen is revealed. Meanwhile, the signer keeps the signature key sk generated by the key generation algorithm Gen in secret. The signature key sk is then used to generate a digital signature σ to attach to a message M. For example, the key generation algorithm Gen accepts a security parameter 1λ (where λ is an integer equal to or greater than 0) as input, and outputs a signature key sk and a verification key pk. In this case, the key generation algorithm Gen may be expressed formally as in the following formula (3).
[Math 3]
(sk,pk)←Gen(1λ) (3)
The signature generation algorithm Sig is used by the signer. The signature generation algorithm Sig is an algorithm that generates the digital signature a to be attached to the message M. The signature generation algorithm Sig is an algorithm that accepts the signature key sk and the message M as input, and outputs the digital signature λ. The signature generation algorithm Sig may be expressed formally as in the following formula (4).
[Math 4]
σ←Sig(sk,M) (4)
The signature verifying algorithm Ver is used by the verifier. The signature verifying algorithm Ver is an algorithm that verifies whether or not the digital signature a is a valid digital signature for the message M. The signature verifying algorithm Ver is an algorithm that accepts a signer's verification key pk, a message M, and a digital signature q as input, and outputs 0 or 1 (1 bit). The signature verifying algorithm Ver can be expressed formally as in the following formula (5). At this point, the verifier decides that the digital signature a is invalid in the case where the signature verifying algorithm Ver outputs 0 (the case where the public key pk rejects the message M and the digital signature q), and decides that the digital signature a is valid in the case where the signature verifying algorithm Ver outputs 1 (the case where the public key pk accepts the message M and the digital signature a).
[Math 5]
0/1←Ver(pk,M,σ) (5)
The foregoing thus summarizes the algorithms in the digital signature scheme.
Next, an n-pass public-key authentication scheme will be described with reference to
As above, a public-key authentication scheme is an authentication scheme that proves to a verifier that a prover possesses a secret key sk corresponding to a public key pk during an interactive protocol. Further, the interactive protocol has to satisfy the two conditions of soundness and zero knowledge. For this reason, in the interactive protocol, both the prover and the verifier exchange information n times while executing respective processes, as illustrated in
In the case of the n-pass public-key authentication scheme, the prover executes a process using the prover algorithm P (Operation #1), and transmits information T1 to the verifier. Subsequently, the verifier executes a process using the verifier algorithm V (Operation #2), and transmits information T2 to the prover. This execution of processes and transmission of information Tk is successively conducted for k=3 to n and lastly, a process (Operation #n+1) is executed. Transmitting and receiving information n times in this way is thus called an “n-pass” public-key authentication scheme.
The foregoing thus describes the n-pass public-key authentication scheme.
Hereinafter, an algorithm based on a 3-pass public-key authentication scheme will be described. Note that, in description provided below, there are cases in which the 3-pass public-key authentication scheme is referred to as a “3-pass scheme.”
First, with reference to
In addition, the set of quadratic polynomials (f1(x), . . . , fm(x)) can be expressed by formula (7) described below. In addition, A1, . . . , Am are n×n matrixes. Furthermore, b1, . . . , bm each are n×1 vectors.
When these expressions are used, the multivariate polynomial F can be expressed as formula (8) and formula (9) described below. Establishment of the expressions can be easily checked from formula (10) described below.
As above, when F(x+y) is divided into a first portion that relates to x, a second portion that relates to y, and a third portion that relates to both x and y, the term G(x, y) corresponding to the third portion is bilinear with regard to x and y. Hereinbelow, there are cases in which the term G(x, y) is referred to as a bilinear term. When this feature is used, an efficient algorithm can be constructed.
For example, using vectors of t0εKn and e0εKm, a multivariate polynomial F1(x) used for masking a multivariate polynomial F(x+r) is expressed as F1(x)=G(x, t0)+e0. In this case, the sum of the multivariate polynomial F(x+r0) and G(x) is expressed as formula (11) described below. Here, if t1=r0+t0 and e1=F(r0)+e0 are set, a multivariate polynomial F2(x)=F(x+r0)+F1(x) can be expressed by vectors t1εKn and e1εKm. For this reason, if F1(x)=G(x, t0)+e0 is set, F1 and F2 can be expressed using the vector of Kn and the vector of Km, and thereby an efficient algorithm with a small data size necessary for communication can be realized.
Note that leakage of information relating to r0 from F2 (or F1) does not occur at all. For example, even if e1 and t1 (or e0 and t0) are given, it is not possible to know the information relating to r0 as long as e0 and t0 (or e1 and t1) are unknown. Thus, zero knowledge is ensured. Hereinbelow, an algorithm of the 3-pass scheme constructed based on the logic will be described. The algorithm of the 3-pass scheme that will be described herein is constituted by a key generation algorithm Gen, a prover algorithm P, and a verifier algorithm V as below.
The key generation algorithm Gen generates m multivariate polynomials f1(x1, . . . , xn), . . . , fm(x1, . . . , xn) defined on a ring K and a vector s=(s1, . . . , sn)εKn. Next, the key generation algorithm Gen calculates y=(y1, . . . , ym)←(f1(s), . . . , fm(s)). Also, the key generation algorithm Gen sets (f1(x1, . . . , xn), . . . , fm(x1, . . . , xn), y) as the public key pk and sets s as a secret key.
Hereinafter, a process performed by the prover algorithm P and a process performed by the verifier algorithm V during the interactive protocol will be described with reference to
As shown in
Next, the prover algorithm P calculates c0←H(r1, G(t0, r1)+e0). Next, the prover algorithm P calculates c1←H(t0, e0). Next, the prover algorithm P calculates c2←H(t1, e1). A message (c0, c1, c2) generated in Operation #1 is transmitted to the verifier algorithm V.
The verifier algorithm V that has received the message (c0, c1, c2) selects which verification pattern will be used among three verification patterns. For example, the verifier algorithm V selects one numerical value from three numerical values of {0, 1, 2} indicating types of verification patterns, and sets the selected numerical value to be a challenge Ch. The challenge Ch is transmitted to the prover algorithm P.
The prover algorithm P that has received the challenge Ch generates responses Rsp to be transmitted to the verifier algorithm V according to the received challenge Ch. In the case of Ch=0, the prover algorithm P generates a response Rsp=(r0, t1, e1). In the case of Ch=1, the prover algorithm P generates a response Rsp=(r1, t0, e0). In the case of Ch=2, the prover algorithm P generates a response Rsp=(r1, t1, e1). The responses Rsp generated in Operation #3 are transmitted to the verifier algorithm V.
The verifier algorithm V that has received the responses Rsp executes the following verification process using the received responses Rsp.
In the case of Ch=0, the verifier algorithm V verifies whether or not the equation of c1=H(r0−t1, F(r0)−e1) is valid. Furthermore, the verifier algorithm V verifies whether or not the equation of c2=H(t1, e1) is valid. When the verification for all of the equations succeeds, the verifier algorithm V outputs a value of 1 indicating success of authentication, and when the verification fails, the verifier algorithm outputs a value of 0 indicating failure of authentication.
In the case of Ch=1, the verifier algorithm V verifies whether or not the equation of c0=H(r1, G(t0, r1)+e0) is valid. Furthermore, the verifier algorithm V verifies whether or not the equation of c1=H(t0, e0) is valid. When the verification for all of the equations succeeds, the verifier algorithm V outputs the value of 1 indicating success of authentication, and when the verification fails, the verifier algorithm outputs the value of 0 indicating failure of authentication.
In the case of Ch=2, the verifier algorithm V verifies whether or not the equation of c0=H(r1, y−F(r1)−G(t1, r1)−e1) is valid. Furthermore, the verifier algorithm V verifies whether or not the equation of c2=H(t1, e1) is valid. When the verification for all of the equations succeeds, the verifier algorithm V outputs the value of 1 indicating success of authentication, and when the verification fails, the verifier algorithm outputs the value of 0 indicating failure of authentication.
Hereinabove, the configuration example of the efficient algorithm of 3-pass has been described.
Next, a method of parallelizing the algorithm of the 3-pass scheme shown in
Applying the interactive protocol makes it possible to keep the probability of successful false proof to ⅔ or less. Consequently, executing the interactive protocol twice makes it possible to keep the probability of successful false proof to (⅔)2 or less. Furthermore, if the interactive protocol is executed N times, the probability of successful false proof becomes (⅔)N, and if N is set to a sufficiently large number (N=140, for example), the probability of successful false proof becomes negligibly small.
As methods of executing the interactive protocol a plurality of times, for example, a serial method of sequentially repeating exchange of a message, a challenge, and a response a plurality of times, and a parallel method of exchanging a plurality of messages, challenges, and responses at once are considered. Furthermore, a hybrid-type method obtained by combining the serial method and the parallel method is also considered. Here, an algorithm for executing the interactive protocol based on the 3-pass scheme in a parallel manner (hereinafter referred to as a parallelized algorithm) will be described with reference to
As shown in
Process (1): The prover algorithm P generates vectors of r0i, t0iεKn and e0iεKm at random.
Process (2): The prover algorithm P calculates r1i←s−r0i. This calculation corresponds to manipulation of masking the secret key s with the vector r0i. Furthermore, the prover algorithm P calculates t1i←r0i+t0i.
Process (3): The prover algorithm P calculates e1i←F(r0i)−e0i.
Process (4): The prover algorithm P calculates c0i←H(r1i, G(r1i, t0i)+e0i).
Process (5): The prover algorithm P calculates c1i←H(t0i, e0i).
Process (6): The prover algorithm P calculates c2i←H(t1i, e1i).
After the processes (1) to (6) described above are executed for i=1 to N, the prover algorithm P calculates Cmt←H(c01, c11, c21, . . . , c0N, c1N, c2N). The hash value Cmt generated in Operation #1 is transmitted to the verifier algorithm V. In this manner, by converting the message (c01, c11, c21, . . . , c0N, c1N, c2N) into hash values and then transmitting the value to the verifier algorithm V, a communication amount can be reduced.
The verifier algorithm V that has received the hash value Cmt selects which verification pattern will be used among three verification patterns for each of i=1 to N. For example, the verifier algorithm V selects one numerical value from three numerical values {0, 1, 2} indicating types of the verification patterns for each of i=1 to N, and sets a selected numerical value as a challenge Chi. Challenges Ch1, . . . , ChN are transmitted to the prover algorithm P.
The prover algorithm P that has received the challenges Ch1, . . . , ChN generates responses Rsp1, . . . , RspN to be transmitted to the verifier algorithm V according to each of the received challenges Ch1, . . . , ChN. In the case of Chi=0, the prover algorithm P generates Rspi=(r0i, t1i, e1i, c0i). In the case of Chi=1, the prover algorithm P generates Rspi=(r1i, t0i, e0i, c2i). In the case of Chi=2, the prover algorithm P generates Rspi=(r1i, t1i, e1i, c1i).
The responses Rsp1, . . . , RspN generated in Operation #3 are transmitted to the verifier algorithm V.
The verifier algorithm V that has received the responses Rsp1, . . . , RspN executes the processes (1) to (3) described below using the received responses Rsp1, . . . , RspN for i=1 to N. However, the verifier algorithm V executes the process (1) when Chi=0, executes the process (2) when Chi=1, and executes the process (3) when Chi=2.
Process (1): When Chi=0, the verifier algorithm V extracts (r0i, t1i, e1i, c0i) from Rspi. Next, the verifier algorithm V calculates c1i=H(r0i−t1i, F(r0i)−e1i). Furthermore, the verifier algorithm V calculates c2i=H(t1i, e1i). Then, the verifier algorithm V retains (c0i, c1i, c2i).
Process (2): When Chi=1, the verifier algorithm V extracts (r1i, t0i, e0i, c2i) from Rspi. Next, the verifier algorithm V calculates c0i=H(r1i, G(t0i, r1i)+e0i). Furthermore, the verifier algorithm V calculates c1i=H(t0i, e0i). Then, the verifier algorithm V retains (c0i, c1i, c2i).
Process (3): When Chi=2, the verifier algorithm V extracts (r1i, t1i, e1i, c1i) from Rspi. Next, the verifier algorithm V calculates c0i=H(r1i, y−F(r1i)−G(t1i, r1i)−e1i). Furthermore, the verifier algorithm V calculates c2i=H(t1i, e1i). Then, the verifier algorithm V retains (c0i, c1i, c2i).
After the processes (1) to (3) are executed for i=1 to N, the verifier algorithm V verifies whether or not the equation of Cmt=H(c01, c11, c21, . . . , c0N, c1N, c2N) is valid. When the verification succeeds, the verifier algorithm V outputs the value of 1 indicating success of the verification, and when the verification fails, the verifier algorithm outputs the value of 0 indicating failure of verification.
Hereinabove, the configuration example of the efficient parallelized algorithm based on the 3-pass scheme has been described.
Next, an algorithm based on a 5-pass public-key authentication scheme will be described. Note that, in description below, there are cases in which the 5-pass public-key authentication scheme is referred to as a “5-pass scheme.”
While the probability of false proof per execution of the interactive protocol in the case of the 3-pass scheme is ⅔, the probability of false proof per execution of interactive protocol in the case of the 5-pass scheme is ½+1/q. However, q is the order of a ring to be used. Thus, when the order of a ring is sufficiently large, the 5-pass scheme can lower the probability of false proof per execution of interactive protocol, and accordingly, the probability of false proof can be sufficiently lowered with a small number of execution times of the interactive protocol.
When it is desired to set the probability of false proof to be 1/2n or lower in the 3-pass scheme, for example, it is necessary to execute the interactive protocol n/(log 3−1)=1.70 ln times or more. On the other hand, when it is desired to set the probability of false proof to be ½n or lower in the 5-pass scheme, it is necessary to execute the interactive protocol n/(1−log(l+1/q)) times or more. Thus, if q=24, a communication amount necessary for realizing a same security level is smaller in the 5-pass scheme than in the 3-pass scheme.
First, a detailed configuration example of the algorithm based on the 5-pass scheme will be introduced with reference to
In the same manner as the algorithm based on the 3-pass scheme, using two vectors of t0εKn and e0εKm, a multivariate polynomial F1(x) used for masking a multivariate polynomial F(x+r0) is expressed as F1(x)=G(x, t0)+e0. When the expression is used, for the multivariate polynomial F(x+r0), the relationship expressed by the following formula (12) is obtained.
For this reason, if t1=ChA·r0+t0 and e1=ChA·F(r0)+e0 are set, a multivariate polynomial F2(x)=ChA·F(x+r0)+F1(x) after masking can also be expressed by two vectors of t1εKn and e1εKm. For this reason, if F1(x)=G(x, t0)+e0 is set, F1 and F2 can be expressed using the vector of Kn and the vector of Km, and accordingly, an efficient algorithm having a small data size necessary for communication can be realized.
Note that leakage of information relating to r0 from F2 (or F1) does not occur at all. For example, even if e1 and t1 (or e0 and t0) are given, it is not possible to know the information relating to r0 as long as e0 and t0 (or e1 and t1) are unknown. Thus, zero knowledge is ensured. Hereinbelow, the algorithm of the 5-pass scheme constructed based on the logic will be described. The algorithm of the 5-pass scheme that will be described herein is constituted by a key generation algorithm Gen, a prover algorithm P, and a verifier algorithm V as below.
The key generation algorithm Gen generates multivariate polynomials f1(x1, . . . , xn), . . . , fm(x1, . . . , xn) defined on a ring K and a vector s=(s1, . . . , sn)εKn. Next, the key generation algorithm Gen calculates y=(y1, . . . , ym)←(f1(s), . . . , fm(s)). Also, the key generation algorithm Gen sets (f1, . . . , fm, y) as the public key pk and sets s as a secret key. Hereinafter, a vector (x1, . . . , xn) is represented as x and the set of multivariate polynomial (f1(x), . . . , fm(x)) is represented as F(x).
(Prover Algorithm P, Verifier Algorithm V) Hereinbelow, a process executed using the prover algorithm P and the verifier algorithm V in an interactive protocol will be described with reference to
As shown in
The verifier algorithm V that has received the message (c0, c1) selects one number ChA at random from the about q elements of the ring K, and transmits the selected number ChA to the prover algorithm P.
The prover algorithm P that has received the number ChA calculates t1←ChA·r0−t0. Furthermore, the prover algorithm P calculates e1←ChA·F(r0)−e0. Then, the prover algorithm P transmits t1 and e1 to the verifier algorithm V.
The verifier algorithm V that has received t1 and e1 selects a verification pattern that will be used among two verification patterns. For example, the verifier algorithm V selects one numerical value from two numerical values {0, 1} indicating types of the verification patterns, and sets the selected numerical value to be a challenge ChB. The challenge ChB is transmitted to the prover algorithm P.
The prover algorithm P that has received the challenge ChB generates a response Rsp to be sent to the verifier algorithm V according to the received challenge ChB. When ChB=0, the prover algorithm P generates a response Rsp=r0. When ChB=1, the prover algorithm P generates a response Rsp=r1. The responses Rsp generated in Operation #5 are transmitted to the verifier algorithm V.
The verifier algorithm V that has received the responses Rsp executes the following verification process using the received responses Rsp.
When ChB=0, the verifier algorithm V executes r0←Rsp. Then, the verifier algorithm V verifies whether or not the equation of c0=H(r0, ChA·r0−t1, ChA·F(r0)−e1) is valid. When the verification succeeds, the verifier algorithm V outputs the value of 1 indicating success of authentication, and when the verification fails, the verifier algorithm outputs the value of 0 indicating failure of authentication.
When ChB=1, the verifier algorithm V executes r1←Rsp. Then, the verifier algorithm V verifies whether or not the equation of c1=H1(r1, ChA·(y−F(r1))−G(t1, r1)−e1) is valid. When the verification succeeds, the verifier algorithm V outputs the value of 1 indicating success of authentication, and when the verification fails, the verifier algorithm outputs the value of 0 indicating failure of authentication.
Hereinabove, the configuration example of the efficient algorithm based on the 5-pass scheme has been described.
Next, a method for parallelizing the algorithm of the 5-pass scheme shown in
As described above, if the interactive protocol based on the 5-pass scheme is applied, the probability of successful false proof can be suppressed to (½+1/q) or lower. Thus, if the interactive protocol is executed two times, the probability of successful false proof can be suppressed to (½+1/q)2 or lower. Furthermore, when the interactive protocol is executed N times, the probability of successful false proof is (½+1/q)N, and if N is set to be a number that is sufficiently large (for example, N=80), the probability of successful false proof becomes low enough to be negligible.
As methods of executing the interactive protocol a plurality of times, for example, a serial method of sequentially repeating exchange of a message, a challenge, and a response a plurality of times, and a parallel method of exchanging a plurality of messages, challenges, and responses at once are considered. Furthermore, a hybrid-type method obtained by combining the serial method and the parallel method is also considered. Here, an algorithm for executing the interactive protocol based on the 5-pass scheme in a parallel manner (hereinafter referred to as a parallelized algorithm) will be described.
As shown in
Process (1): The prover algorithm P generates vectors of r0i, t0iεKn and e0iεKm at random.
Process (2): The prover algorithm P calculates r1i←s−r0i. This calculation corresponds to manipulation of masking the secret key s with the vector r0i.
Process (3): The prover algorithm P calculates c0i←H(r0i, t0i, e0i).
Process (4): The prover algorithm P calculates c1i←H(r1i, G(t0i, r1i)+e0i).
After the processes (1) to (4) are performed for i=1 to N, the prover algorithm P executes a hash value Cmt←H(c01, c11, . . . , c0N, c1N). Then, the hash value Cmt generated in Operation #1 is transmitted to the verifier algorithm V.
The verifier algorithm V that has received the hash value Cmt selects one number ChAi at random from the about q elements of the ring K for each of i=1 to N, and transmits the selected number ChAi(i=1 to N) to the prover algorithm P.
The prover algorithm P that has received the number ChAi(i=1 to N) calculates t1i←ChAi·r0i−t0i for each of i=1 to N. Furthermore, the prover algorithm P calculates e1i←ChAi·F(r0i)−e0i for each of i=1 to N. Next, the prover algorithm P calculates a hash value d←H(t11, e11, . . . , t1N, e1N). Then, the prover algorithm P transmits the hash value d to the verifier algorithm V.
The verifier algorithm V that has received the hash value d selects a verification pattern that will be used among two verification patterns for each of i=1 to N. For example, the verifier algorithm V selects one numerical value from two numerical values {0, 1} indicating types of the verification patterns, and sets a selected numerical value as a challenge ChBi. Challenges ChBi(i=1 to N) are transmitted to the prover algorithm P.
The prover algorithm P that has received the challenges ChBi (i=1 to N) generates responses Rspi to be sent to the verifier algorithm V according to the received challenge ChBi with regard to i=1 to N. When ChBi=0, the prover algorithm P generates the responses Rspi=(r0i, t0i, e0i, c1i). When ChBi=1, the prover algorithm P generates the responses Rspi=(r1i, t1i, e1i, c0i). The responses Rspi (i=1 to N) generated in Operation #5 are transmitted to the verifier algorithm V.
The verifier algorithm V that has received the responses Rspi (i=1 to N) executes processes (1) and (2) below using the received responses Rspi (i=1 to N)
Process (1): When ChBi=0, the verifier algorithm V executes (r0i, t0i, e0i, c1i)←Rspi. Then, the verifier algorithm V calculates c0i=H(r0i, t0i, e0i). Furthermore, the verifier algorithm V calculates t1i←ChAi·r0i+t0i and e1i←ChAi·F(r0i)−e0i. Then, the verifier algorithm V retains (c0i, c1i, t1i, e1i).
Process (2): When ChBi=1, the verifier algorithm V executes (r1i, t1i, e1i, c0i)←Rspi. Then, the verifier algorithm V calculates c1i=H(r1i, ChAi·(y−F(r1i))−G(t1i, r1i)−e1i. Furthermore, the verifier algorithm V retains (c0i, c1i, t0i, e0i).
After the processes (1) and (2) are executed for i=1 to N, the verifier algorithm V verifies whether or not the equation of Cmt=H(c01, c11, . . . , c0N, c1N) is valid. Furthermore, the verifier algorithm V verifies whether or not the equation of d=H(t11, e11, . . . , t1N, e1N) is valid. Then, when the verification succeeds, the verifier algorithm V outputs the value of 1 indicating success of authentication, and when the verification fails, the verifier algorithm outputs the value of 0 indicating failure of authentication.
Hereinabove, the configuration example of the efficient parallelized algorithm based on the 5-pass scheme has been described.
Next, a method of modifying the public-key authentication scheme described above to a digital signature scheme will be introduced.
When a prover in the model of the public-key authentication scheme is associated with a signer in the digital signature scheme, it is easily understood that the public-key authentication scheme is similar to the model of the digital signature scheme in that only the prover should convince a verifier. Based on this notion, the method of modifying the public-key authentication scheme described above to the digital signature scheme will be described.
[4-1: Modification from the 3-Pass Public-Key Authentication Scheme to the Digital Signature Scheme (
First, modification from the 3-pass public-key authentication scheme to the digital signature scheme will be described.
The efficient algorithm based on the 3-pass scheme (for example, refer to
Operation #1 includes a process (1) of generating ai=(r0i, t0i, e0i, r1i, t1i, e1i, c0i, c1i, c2i) and a process (2) of calculating Cmt←H(c01, c11, c21, . . . , c0N, c1N, c2N) for i=1 to N. Cmt generated by the prover algorithm P in Operation #1 is transmitted to the verifier algorithm V.
Operation #2 includes a process of selecting Ch1, . . . , ChN. Ch1, . . . , ChN selected by the verifier algorithm V in Operation #2 are transmitted to the prover algorithm P.
Operation #3 includes a process of generating Rsp1, . . . , RspN using Ch1, . . . , ChN and a1, . . . , aN. This process is expressed by Rspi←Select (Chi, ai). Rsp1, . . . , RspN generated by the prover algorithm P in Operation #3 are transmitted to the verifier algorithm V.
Operation #4 includes a process (1) of reproducing c01, c11, c21, . . . , c0N, c1N, c2N using Ch1, . . . , ChN and Rsp1, . . . , RspN and a process (2) of verifying Cmt=H(c01, c11, c21, . . . , c0N, c1N, c2N) using the reproduced c01, c11, c21, . . . , c0N, c1N, c2N.
The algorithm of the public-key authentication scheme expressed in Operations #1 to #4 described above is modified to a signature generation algorithm Sig and a signature verifying algorithm Ver as shown in
First, a configuration of the signature generation algorithm Sig will be described. The signature generation algorithm Sig is constituted by processes (1) to (5) described below.
Process (1): The signature generation algorithm Sig generates ai=(r0i, t0i, e0i, r1i, t1i, e1i, c0i, c1i, c2i).
Process (2): The signature generation algorithm Sig calculates Cmt←c11, c21, . . . , c0N, c1N, c2N).
Process (3): The signature generation algorithm Sig calculates (Ch1, . . . , ChN)←H(M, Cmt). The M is a message in which a signature is given.
Process (4): The signature generation algorithm Sig calculates Rspi←Select (Chi, ai).
Process (5): The signature generation algorithm Sig sets (Cmt, Rsp1, . . . , RspN) as a signature.
Next, a configuration of the signature verifying algorithm Ver will be described. The signature verifying algorithm Ver is constituted by processes (1) to (3) below.
Process (1): The signature verifying algorithm Ver calculates (Ch1, . . . , ChN)←H(M, Cmt).
Process (2): The signature verifying algorithm Ver generates c01, c11, c21, . . . , c0N, c1N, c2N using Ch1, . . . , ChN and Rsp1, . . . , RspN.
Process (3): The signature verifying algorithm Ver verifies Cmt=H(c01, c11, c21, . . . , c0N, c1N, c2N) using the reproduced c01, c11, c21, . . . , c0N, c1N, c2N.
As described above, by associating the prover in the model of the public-key authentication scheme with the signer in the digital signature scheme, the algorithm of the public-key authentication scheme can be modified to the algorithm of the digital signature scheme.
[4-2: Modification from the 5-Pass Public-Key Authentication Scheme to the Digital Signature Scheme (
Next, modification from the 5-pass public-key authentication scheme to the digital signature scheme will be described.
As shown in
Operation #1 includes a process (1) of generating ai=(r0i, t0i, e0i, r1i, t1i, e1i, c0i, c1i) and a process (2) of calculating Cmt←H(c01, c11, . . . , c0N, c1N) for i=1 to N. Cmt generated from the prover algorithm P in Operation #1 is transmitted to the verifier algorithm V.
Operation #2 includes a process of selecting ChA1, . . . , ChAN. ChA1, . . . , ChAN selected from the verifier algorithm V in Operation #2 are transmitted to the prover algorithm P.
Operation #3 includes a process of generating bi=(t1i, e1i) and a process of generating d=H(t11, e11, . . . , t1N, e1N) for i=1 to N. d generated from the prover algorithm P in Operation #3 is transmitted to the verifier algorithm V.
Operation #4 includes a process of selecting ChB1, . . . , ChBN. ChB1, . . . , ChBN selected from the verifier algorithm V in Operation #4 are transmitted to the prover algorithm P.
Operation #5 includes a process of generating Rsp1, . . . , RspN using ChB1, . . . , ChBN, a1, . . . , aN, and b1, . . . , bN. This process is expressed as Rspi←Select (ChBi, ai, bi). Rsp1, . . . , RspN generated from the prover algorithm P in Operation #5 are transmitted to the verifier algorithm V.
Operation #6 includes a process of reproducing c01, c11, . . . , c0N, c1N, e11, . . . , t1N, e1N using ChA1, . . . , ChAN, ChB1, . . . , ChBN, and Rsp1, . . . , RspN, a process of verifying Cmt=H(c01, c11, . . . , c0N, c1N) using the reproduced c01, c11, . . . , c0N, c1N, and a process of verifying d=H(t11, e11, . . . , t1N, e1N).
The algorithm of the public-key authentication scheme expressed in Operations #1 to #6 described above is modified to the signature generation algorithm Sig and the signature verifying algorithm Ver shown in
First, a configuration of the signature generation algorithm Sig will be described. The signature generation algorithm Sig is constituted by processes (1) to (7) below.
Process (1): The signature generation algorithm Sig generates ai=(r0i, t0i, e0i, r1i, t1i, e1i, c0i, c1i).
Process (2): The signature generation algorithm Sig calculates Cmt←H(c01, c11, . . . , c0N, c1N).
Process (3): The signature generation algorithm Sig calculates (ChA1, . . . , ChAN)←H(M, Cmt). The M represents a message to which a signature is given.
Process (4): The signature generation algorithm Sig generates bi=(t1i, e1i) for i=1 to N. Furthermore, the signature generation algorithm Sig computes d=H(t11, e11, . . . , t1N, e1N).
Process (5): The signature generation algorithm Sig calculates (ChB1, . . . , ChBN)←H(M, Cmt, ChA1, . . . , ChAN, d). Note that it may be modified to (ChB1, . . . , ChBN)←H(ChA1, . . . , ChAN, d).
Process (6): The signature generation algorithm Sig calculates Rspi←Select(ChBi, ai, bi).
Process (7): The signature generation algorithm Sig sets (Cmt, d, Rsp1, . . . , RspN) as a digital signature.
Next, a configuration of the signature verifying algorithm Ver will be described. The signature verifying algorithm Ver is constituted by processes (1) to (4) below.
Process (1): The signature verifying algorithm Ver calculates (ChA1, . . . , ChAN)←H(M, Cmt).
Process (2): The signature verifying algorithm Ver calculates (ChB1, . . . , ChBN)←H(M, Cmt, ChA1, . . . , ChAN, d). Note that, when modification to (ChB1, . . . , ChBN)←H(ChA1, . . . , ChAN, d) occurs in the process (5) executed by the signature verifying algorithm Ver, the signature verifying algorithm Ver calculates (ChB1, . . . , ChBN)←H(ChA1, . . . , ChAN, d).
Process (3): The signature verifying algorithm Ver generates t11, e11, . . . , t1N, e1N, c01, c11, . . . , c0N, c1N) using ChA1, . . . , ChAN, ChB1, . . . , ChBN, and Rsp1, . . . , RspN.
Process (4): The signature verifying algorithm Ver verifies Cmt=H(c01, c11, . . . , c0N, c1N) and d=(t11, e11, . . . , t1N, e1N,) using the reproduced c01, c11, . . . , c0N, c1N.
As described above, by associating the prover in the model of the public-key authentication scheme with the signer in the digital signature scheme, the algorithm of the public-key authentication scheme can be modified to the algorithm of the digital signature scheme.
Hitherto, a detailed method of sharing a multivariate polynomial between a prover (or a signer) and a verifier has not been clarified. As a method of sharing a multivariate polynomial, a method of sharing a seed used when a coefficient (random number) of a multivariate polynomial is generated between both parties is considered. However, it is hard to say that a multivariate polynomial is shared unless both parties share the order of applying the random number generated using the shared seed to the coefficient.
A basic agreement is made with regard to in which order a random number sequence generated using a shared seed between a prover (or a signer) and a verifier is applied to a multivariate polynomial. Then, when the multivariate polynomial is used, the random number sequence is applied to the multivariate polynomial according to the basic agreement. Using this method, the multivariate polynomial can be shared between a prover (or a signer) and a verifier.
However the number of coefficients constituting a multivariate polynomial is enormous. When one coefficient is expressed in units of one bit, scores of a minimum of thousands of bits of data are necessary for expressing a multivariate polynomial. For this reason, a processing load in substituting a coefficient of a multivariate polynomial with a number is very heavy. Thus, the present inventors have invented a technique of structuring coefficients of a multivariate polynomial in predetermined units and streamlining a substitution process of the coefficients (structuration technique #1). Furthermore, the inventors of this case have invented a technique of enhancing processing efficiency when a substitution process is executed on coefficients of a same multivariate polynomial a plurality of times (structuration technique #2). Hereinbelow, the techniques will be described in detail.
First, the structuration technique #1 will be described. The structuration technique #1 is, as shown in
When the structuration technique #1 is not applied, calculation of the multivariate polynomial F constituted by M polynomials with N variables is performed through the algorithm shown in (Example 1). In the case of (Example 1), it is necessary to execute an AND operation (&) of 1 bit 2×N×(N+1)×M/2 times. Furthermore, it is necessary to execute an XOR operation (̂) of 1 bit 1×N×(N+1)×M/2 times. Note that the input x is assumed to be N bits.
On the other hand, when the coefficients are structured as shown in
In addition, when the coefficients are structured as shown in
In the case of (Example 3), the XOR operation (̂) of M bits may only be executed (N/k) (N/k+1)/2 times. However, a necessary memory amount is 22k/k2 times the algorithm of (Example 2).
For example, when k=1, the XOR operation of M bits is 120×119/2=7140 times, a necessary memory amount is 22=4 times (Example 2), and the number of times of the loop is not changed. In addition, when k=2, the XOR operation of M bits is 60×59/2=1770 times, a necessary memory amount is 28/42=4 times, and the number of times of the loop is ¼. When k=4, the XOR operation of M bits is 30×29/2=435 times, a necessary memory amount is 28/42=16 times, and the number of times of the loop is 1/16.4. When k=6, the XOR operation of M bits is 20×19/2=190 times, a necessary memory amount is 212/62=114 times, and the number of times of the loop is 1/37.6. When k=8, the XOR operation of M bits is 15×14/2=135 times, a necessary memory amount is 216/82=1024 times, and the number of times of the loop is 1/52.9.
Note that the technique shown in (Example 3) can be exactly said to be a technique in which the value of FIJ( . . . ) defined by formula (13) below is calculated in advance and retained as an array.
Wherein FIJ(xk(I−1)+1, . . . , xk(I−1)+k, xk(J−1)+1, . . . , xk(J−1)+k) indicates a portion of F(x1, . . . , xN) of which the value is decided by [xk(I−1)+1, . . . , xk(I−1)+k] and [xk(J−1)+1, . . . , xk(J−1)+k].
Hereinabove, the detailed algorithm has been described exemplifying the case in which the structuration technique #1 is applied to the multivariate polynomial F. With this configuration, speed-up in processing for executing the algorithm can be expected.
So far, the algorithm calculating the multivariate polynomial F by applying the structuration technique #1 has been described with reference to
For example, when the structuration technique #1 described above is not applied, an algorithm for calculating the multivariate polynomial G is expressed as in (Example 1′) below. Note that inputs x and y are assumed to be N bits.
When the above-described structuration technique #1 is applied to (Example 1′) described above, an algorithm for calculating the multivariate polynomial G is expressed as in (Example 2′) described below.
In addition, in the case of the technique of retaining the intermediate result when the coefficients of the multivariate polynomial G in a table, an algorithm for calculating the multivariate polynomial G becomes as in (Example 3′) corresponding to (Example 3) described above. Note that, in the arrays of aIJ[0] [0] to aIJ[2k−1] [2k−1], each stores aIJ [x1, . . . , xk] [y1, . . . yk]=(a(k(I−1)+1)(k(J−1)+1) & x1 & y1)̂ . . . ̂(a(k(I−1)+1)(k(J−1)+k) & x1 & yk)̂ . . . ̂(a(k(I−1)+k)(k(J−1)+1) & xk & y1)̂ . . . ̂(a(k(I−1)+k) k(J−1)+k)& xk & yk).
In the case of (Example 3′), the XOR operation (̂) of M bits may only be executed (N/k)2 times. However, a necessary memory amount is 22k/k2 times the algorithm of (Example 2′).
For example, when k=1, the XOR operation of M bits is 1202=14400 times, a necessary memory amount is 22=4 times (Example 2′), and the number of times of the loop is not changed. In addition, when k=2, the XOR operation of M bits is 602=3600 times, a necessary memory amount is 24/4=4 times, and the number of times of the loop is ¼. When k=4, the XOR operation of M bits is 302=900 times, a necessary memory amount is 28/42=16 times, and the number of times of the loop is 1/16. When k=6, the XOR operation of M bits is 202=400 times, a necessary memory amount is 212/62=114 times, and the number of times of the loop is 1/36. When k=8, the XOR operation of M bits is 152=225 times, a necessary memory amount is 216/82=1024 times, and the number of times of the loop is 1/64.
Note that the technique shown in (Example 3′) can be exactly said to be a technique in which the value of GIJ ( . . . ) defined in formula (14) below is calculated in advance and retained as an array.
wherein, GIJ(xk(I−1)+1, . . . , xk(I−1)+k, yk(J−1)+1, . . . , yk(J−1)+k) indicates a portion of G(x1, . . . , xN, y1, . . . yN) of which the value is decided by [xk(I−1)+1, . . . , xk(I−1)+k] and [yk(J−1)+1, . . . , yk(J−1)+k].
Hereinabove, the configuration of the detailed algorithm relating to the structuration technique #1 has been described exemplifying the case in which the multivariate polynomial G is calculated. With this configuration, speed-up in processing for execution of the algorithm can be expected.
Herein, the algorithm of (Example 2) described above will be referred to again. The algorithm of (Example 2) described above includes a dual loop process with regard to indices I and J. Thus, by developing research for the content of processing steps executed in a part of the loop process, a technique of reducing the number of times of arithmetic operations while obtaining the same result is proposed. In addition, a method of applying the same technique to (Example 2′) will also be introduced.
As a first technique, for example, a technique of extracting the term of [Ith bit of x] that does not relate to the index J from the inner loop (loop of J) and modifying the term as shown in (Example 2A) described below is proposed. Note that tmp is a variable for temporarily storing a value. When such modification is made, the AND operation (&) of M bits may be executed 1×N×(N+1)/2 times, and the XOR operation (̂) of M bits may be executed N×(N+1)/2 times in terms of the content of operations.
In addition, as a second technique, a technique of modifying the algorithm as shown in (Example 2B) described below using conditional branching so that, when the term of [Ith bit of x] is 0, output is considered not to be affected, and the inner loop process is executed only when, for example, [Ith bit of x]=1 is proposed. When such modification is made, the AND operation (&) of M bits may be executed 1×N×(N+3)/2×p times, and the XOR operation (̂) of M bits may be executed N×(N+1)/2×p times in terms of the content of operations. Wherein, p represents a rate of setting [Ith bit of x]=0.
output y;
In addition, as a third technique, a technique of modifying the algorithm as shown in (Example 2C) described below using conditional branching so that, when the term of [Jth bit of x] is 0, output is considered not to be affected, and the inner loop process is executed only when, for example, [Jth bit of x]=1 is proposed. When such modification is made, the number of times of operations can be further reduced.
The first to third techniques described above can also be applied to the algorithm of (Example 2′) described above relating to the multivariate polynomial G in the same manner. For example, when the above-described first technique is applied to the algorithm of (Example 2′) described above, the algorithm is modified as in (Example 2′A) below.
In addition, the second technique described above is applied to the algorithm of (Example 2′) described above. The algorithm of (Example 2′) described above does not affect output when the term of [Ith bit of x] is 0 either. Thus, when the algorithm is modified as in (Example 2′B) described below using conditional branching so that the inner loop process is executed only when [Ith bit of x]=1, the number of times of operations can be reduced.
In addition, the second technique described above is applied to the algorithm of (Example 2′) described above. The algorithm of (Example 2′) described above does not affect output when the term of [Jth bit of y] is 0 either. Thus, when the algorithm is modified as in (Example 2′C) described below using conditional branching so that the inner loop process is executed only when [Jth bit of y]=1, the number of times of operations can be reduced.
As described above, by applying the first to the third techniques, the number of times of operations in an algorithm in which coefficients are substituted can be reduced in the multivariate polynomial G.
However, if the algorithm is modified to an algorithm in which a process is skipped as in the second and third techniques described above, there is a difference in processing times when a large number of 0s are included in the input x and when a small number of 0s are included in the input x. For this reason, by measuring processing times, information on the input x is obtained. In other words, when such an algorithm in which a process is skipped is applied, there is a risk of leakage of information on random numbers used in generation of signatures, and the like.
Therefore, in order to prevent such a risk, a technique in which a range of an allowable “ratio of 0 in the input x” (for example, equal to or lower than 10%, equal to higher than 90%, or the like) is set in advance, and when the ratio does not fall in the range, the random numbers are replaced is proposed. When the technique is applied, a process of replacing random numbers is executed when there are more 0s or fewer 0s than the set range. As a result, even if a processing time in which x is substituted in the polynomial F is measured, it is hard to get information on the input x leaked from the processing time.
Furthermore, in addition to the techniques described above, a technique giving a restriction that “the number of bits of 0 is substantially equal (or may be completely equal) to that of 1” to a secret key is considered. When this technique is applied, even using the above-described algorithm in which the process is skipped, the processing times can be uniform to some degree, and it is hard to get the information on the input x leaked from the processing times.
Herein, a specific case in which F(r0) and G(r1, t0) are calculated will be considered. A secret key is set as s, r0 and t0 are set as random vectors, and r1=s+r0 is set (“+” corresponds to XOR). In this case, if the numbers of bits of 0 and 1 are set to be equal in the secret key s, half bits of r1 are reversed bits of r0 regardless of the value of r0. Then, in 2N bits constituted by r0 (N bits) and r1 (N bits), the number of bits of 0 is in the range of 0.5N to 1.5N. Consequently, in both r0 and r1, there is no case in which all bits are 0 or 1.
If the feature described above is used, even when the algorithm in which a process is skipped is applied, a total calculation time of F(r0) and G(t0, r1) can be uniform. As an example, a case in which the algorithms of (Example 2C) and (Example 2′C) described above are applied is considered. In this case, calculation of the multivariate polynomial F is executed based on the algorithm of (Example 2C) and calculation of the multivariate polynomial G is executed based on the algorithm of (Example 2′C). Both algorithms are described again below.
When the multivariate polynomial F(r0) is calculated, the input x=r0. When the multivariate polynomial (r1, t0) is calculated, the input x=r1. As in the above description, among the total of 2N bits of r0 and r1, the number of bits of 0s is the range of 0.5N to 1.5N. For this reason, in the conditional branching described in the 3rd row of the algorithm of (Example 2C) and the conditional branching described in the 3rd row of the algorithm of (Example 2′C) described below, the number of times in which a process is skipped is also in the range of 0.5N to 1.5N. Therefore, it is hard to cause the information on the input to leak from the total processing time of the multivariate polynomials F and G.
Hereinabove, the structuration technique #1 has been described.
Next, the structuration technique #2 will be described. The structuration technique #2 is a technique in which, when a substitution process is performed for the same multivariate polynomial N times (N≧2), sequential processes are performed N times in units of a step of “generating some coefficients and performing the process relating to them N times” in a parallel manner, rather than performing the substitution process by generating the polynomial from random numbers N times. If this technique is applied, a through-put improves in the N times of the entire process when it is difficult to neglect costs for generating the random numbers.
For example, in the algorithm shown in
Hereinabove, the detailed substitution algorithm of the structuration technique #2 has been described. With this configuration, a total through-put in the N times of the process improves.
Here, a technique for performing pre-processing for further efficiency in calculation of the multivariate polynomials F and G will be described. This technique can be applied to, for example, (Example 2) described above to which the structuration technique #1 is applied. Hereinbelow, as an example of pre-processing, a process relating to data expression of an input x, a process relating to an index of disposition, and a process of commonizing calculation of the multivariate polynomials F and G will be described.
First, pre-processing for converting data expression of an input x before calculation of the multivariate polynomials F and G is executed (hereinafter referred to as a data conversion process) will be described.
For example, when inputs x of 128 bits are retained as four pieces of 32-bit integer-type data, a process in which [Ith bit of x] is taken from the four 32-bit integers in the fourth row of the algorithm of (Example 2) and expanded to M bits occurs. If the process is executed each time the loop process is performed, the speed of the loop process decreases. Thus, a technique of generating data obtained by expanding [Ith bit of x] of the inputs x to M bits before the loop process is executed and then preparing an array Q[I] having the data as an element is proposed. By applying this technique, the process of expanding one bit to M bits each time the loop process is performed is not necessary, and accordingly, the speed of the loop process increases.
In addition, in the algorithm of (Example 3) described above, a process of taking [(k(I−1)+1)th to kth bits of x] each time the loop process is performed occurs. Thus, a technique of generating data obtained by expanding [(k(I−1)+1)th to kth bits of x] of the inputs x to M bits before the loop process is executed and then preparing an array Q[I] having the data as an element is proposed. By applying this technique, a process of taking the kth bit each time the loop process is performed is not necessary, and accordingly the speed of the loop process increases. Likewise, by performing the data conversion process for the algorithm relating to the structuration technique #1 described above, the speed of the loop process increases.
In addition, in the algorithm that causes a process to be skipped as in the second technique and the third technique, a list of the position in which [Ith bit of x] is 1 is prepared in advance and the process can be made more efficient using the list in the structuration technique #1 described above. For example, when an array x′[I] indicating the position in which [Ith bit of x] is 1 is prepared, the algorithm of (Example 2C) described above becomes (New example 2C) described below. In the example, w indicates the number of bits that are 1 in the inputs x. With this configuration, conditional division of the loop does not occur, and thus the speed of the loop process increases.
Efficiency of an algorithm achieved by the data conversion process can also be applied to the calculation algorithm of the multivariate polynomial G in the same manner.
For example, when inputs x of 128 bits are retained as four pieces of 32-bit integer-type data, a process in which [Ith bit of x] is taken from the four 32-bit integers in the fourth row of the algorithm of (Example 2′) and expanded to M bits occurs. If the process is executed each time the loop process is performed, the speed of the loop process decreases. Thus, a technique of generating data obtained by expand in g [Ith bit of x] of the inputs x to M bits before the loop process is executed and then preparing an array Q[I] having the data as an element is proposed.
By applying this technique, the process of expanding one bit to M bits each time the loop process is performed not necessary, and accordingly, the speed of the loop process increases.
In addition, in the algorithm of (Example 3′) described above, a process of taking [(k(I−1)+1)th to kth bits of x] each time the loop process is performed occurs. Thus, a technique of generating data obtained by expanding [(k(I−1)+1)th to kth bits of x] of the inputs x to M bits before the loop process is executed and then preparing an array Q[I] having the data as an element is proposed. By applying this technique, a process of taking the kth bit each time the loop process is performed is not necessary, and accordingly the speed of the loop process increases. Likewise, by performing the data conversion process for the algorithm relating to the structuration technique #1 described above, the speed of the loop process increases.
In addition, in the algorithm that causes a process to be skipped as in the second technique and the third technique, a list of the position in which [Ith bit of x] is 1 and the position in which [Jth bit of y] is 1 are prepared in advance and the process can be made more efficient using the list in the structuration technique #1 described above. For example, when an array x′[I] indicating the position in which [Ith bit of x] is 1 and an array y′[J] indicating the position in which [Jth bit of y] is 1 are prepared, the algorithm of (Example 2′C) described above becomes (New example 2′C) described below. In the example, w, indicates the number of bits that are 1 in the inputs x. In the example, wy indicates the number of bits that are 1 in the inputs y. With this configuration, conditional division of the loop does not occur, and thus the speed of the loop process increases.
Hereinabove, the data conversion process has been described.
Next, pre-processing that can be applied to a technique of retaining the intermediate results to which the coefficients of the multivariate polynomials F and G are applied in a table will be described. In the algorithm of (Example 3) described above, for example, it is necessary to retain the intermediate results in a four-dimensional array. In addition, in order to access the four-dimensional array, it is necessary to calculate many indices.
For example, in the case of a four-dimensional array A[a1][a2][a3][a4] (a1=1 to a, a2=1 to b, a3=1 to c, and a4=1 to d), in order to access A[I][J][K][L], it is necessary to calculate the indices of b×c×d×I+c×d×J+d×K+L. Thus, a technique of making the calculation of the index efficient is proposed.
For example, the algorithm of (Example 3) described above can be expressed as follows using a four-dimensional array A[·][·][·][·] in which the intermediate results are retained.
Here, the positions of the indices of the four-dimensional array A described in the fourth row of (Example 3) described above should be focused on. In the algorithm of (Example 3) described above, even if data is retained in an array in which the positions of the indices are switched as follows, there is no problem in calculation of the algorithm.
(after Switching)
A
(1 to M)
[I][x
k(I−1)+1
. . . x
k(I−1)+k
][J][x
k(J−1)+1
. . . x
k(J−1)+k];
Furthermore, even when the four-dimensional array A is expressed in a two-dimensional array as follows, the calculation result of the algorithm is the same. Thus, if the value of 2k×I+xk(I−1)+1 . . . xk(I−1)+k is calculated with respect to I=1, . . . , N/k in advance and used at the time of the loop process, it is not necessary to sequentially calculate the indices in the loop process, and thus the calculation becomes efficient.
A
(1 to M)[2k×I]+[xk(I−1)+1 . . . xk(I−1)+k][2k×J][xk(J−1)+1 . . . xk(J−1)+k];
Hereinabove, the pre-process that devises the expression of indices has been described. As described above, an amount of an arithmetic operation can be reduced by calculating indices to an intermediate degree, commonizing a part of the calculation of the indices, or the like. Note that the pre-processing that devises the expression of indices in the calculation of the multivariate polynomial F has been described herein, and the same can apply to calculation of the multivariate polynomial G.
However, in the signature verifying algorithm previously described, the multivariate polynomials F(x) and G(x, y) may be calculated together for a common input x. In this case, the above-described pre-processing with regard to the calculation of the multivariate polynomials F(x) and G(x, y) can be commonized. For example, in the above-described data conversion process, when the array Q[I] having the data obtained by expanding [Ith bit of x] to M bits as an element is prepared, it can be used in calculation of either of the multivariate polynomials F(x) and G(x, y). With this configuration, the effect of the pre-processing further improves.
In the same manner, when data obtained by expanding [(k(I−1)+1)th to kth bits of x] to M bits is generated and the array Q[I] having the data as an element is prepared, it can be used in calculation of either of the multivariate polynomials F(x) and G(x, y). With this configuration, the effect of the pre-processing further improves. Furthermore, when an array x′[I] indicating the position in which [Ith bit of x] is 1 is prepared, it can also be used in calculation of either of the multivariate polynomials F(x) and G(x, y). With this configuration, the effect of the pre-processing further improves.
Hereinabove, further efficiency achieved by the pre-processing has been described.
Each algorithm described above can be performed by using, for example, the hardware configuration of the information processing apparatus shown in
That is, processing of each algorithm can be realized by controlling the hardware shown in
As shown in
The CPU 902 functions as an arithmetic processing unit or a control unit, for example, and controls entire operation or a part of the operation of each structural element based on various programs recorded on the ROM 904, the RAM 906, the storage unit 920, or the removable recording medium 928. The ROM 904 is means for storing a program to be read by the CPU 902 or data or the like used in an arithmetic operation. The RAM 906 temporarily or perpetually stores, for example, a program to be read by the CPU 902 or various parameters or the like arbitrarily changed in execution of the program.
These structural elements are connected to each other by, for example, the host bus 908 capable of performing high-speed data transmission. For its part, the host bus 908 is connected through the bridge 910 to the external bus 912 whose data transmission speed is relatively low, for example. Furthermore, the input unit 916 is, for example, a mouse, a keyboard, a touch panel, a button, a switch, or a lever. Also, the input unit 916 may be a remote controller (hereinafter, a remote controller) that can transmit a control signal by using an infrared ray or other radio waves.
The output unit 918 is, for example, a display device such as a CRT, an LCD, a PDP or an ELD, an audio output device such as a speaker or headphones, a printer, a mobile phone, or a facsimile, that can visually or auditorily notify a user of acquired information. Moreover, the CRT is the abbreviation for Cathode Ray Tube. The LCD is the abbreviation for Liquid Crystal Display. In addition, the PDP is the abbreviation for Plasma Display Panel. Also, the ELD is the abbreviation for Electro-Luminescence Display.
The storage unit 920 is a device for storing various data. The storage unit 920 is, for example, a magnetic storage device such as a hard disk drive (HDD), a semiconductor storage device, an optical storage device, or a magneto-optical storage device. The HDD is the abbreviation for Hard Disk Drive.
The drive 922 is a device that reads information recorded on the removable recording medium 928, for example, a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory, or writes information in the removable recording medium 928. The removable recording medium 928 is, for example, a DVD medium, a Blu-ray medium, an HD DVD medium, various types of semiconductor storage media, or the like. Of course, the removable recording medium 928 may be, for example, an electronic device or an IC card on which a non-contact IC chip is mounted. The IC is the abbreviation for Integrated Circuit.
The connection port 924 is, for example, a USB port, an IEEE1394 port, a SCSI, an RS-232C port, or a port for connecting an externally connected device 930 such as an optical audio terminal. The externally connected device 930 is, for example, a printer, a mobile music player, a digital camera, a digital video camera, or an IC recorder. The USB is the abbreviation for Universal Serial Bus. Also, the SCSI is the abbreviation for Small Computer System Interface.
The communication unit 926 is a communication device to be connected to a network 932, and is, for example, a communication card for a wired or wireless LAN, Bluetooth (registered trademark), or WUSB, an optical communication router, an ADSL router, or a device for contact or non-contact communication. In addition, the network 932 connected to the communication unit 926 is configured to be a wire-connected or wirelessly connected network, and is the Internet, a home-use LAN, infrared communication, visible light communication, broadcasting, or satellite communication, for example. The LAN is the abbreviation for Local Area Network. Also, the WUSB is the abbreviation for Wireless USB. Furthermore, the ADSL is the abbreviation for Asymmetric Digital Subscriber Line.
Lastly, the technical content according to the embodiment of the present technology will be briefly described. The technical content stated here can be applied to various information processing apparatuses, for example, a PC, a mobile phone, a game machine, an information terminal, an information home appliance, a car navigation system, and the like. Note that the function of the information processing apparatus described below can be realized by using a single information processing apparatus or using a plurality of information processing apparatuses. Furthermore, data storage means and arithmetic operation processing means which are used for performing a process by the information processing apparatus described below may be installed in the information processing apparatus, or may be installed in a device connected via a network.
The functional configuration of the information processing apparatus is expressed as follows. For example, the information processing apparatus described in (1) below has the function of executing the efficient algorithm of the public-key authentication scheme or the digital signature scheme that takes difficulty in solving a multi-order multivariate simultaneous equation as a base of security.
(1)
An information processing apparatus including:
a number acquisition unit configured to acquire a number used for a coefficient of each term constituting a set of a multi-order multivariate polynomial F=(f1, . . . , fm), the number generated using a predetermined function from information shared between entities that execute an algorithm of a public-key authentication scheme or a digital signature scheme that uses a public key including the set of the multi-order multivariate polynomial F; and
a polynomial calculation unit configured to calculate a multi-order multivariate polynomial for an input value of a variable by grouping coefficients of terms in which types of combinations of variables are the same among coefficients of the multi-order multivariate polynomial that includes the set of the multi-order multivariate polynomial F as a structural element, allocating the number acquired by the number acquisition unit to the coefficients of the multi-order multivariate in units of groups, and executing a process in units of the groups,
wherein the polynomial calculation unit expands the input value of the variable to the same number as a number of a coefficient corresponding to one group so that the process in units of the groups is enabled before the calculation is executed.
(2)
The information processing apparatus according to (1), further including:
a table retaining unit configured to retain, in a table, the values obtained by substituting the variables of the terms with arbitrary numbers by allocating the coefficients to terms of types corresponding to each of the groups.
(3)
The information processing apparatus according to (2), wherein the polynomial calculation unit executes a part of or the entire calculation of indices used when a value is acquired from the table before the calculation is executed.
(4)
The information processing apparatus according to any one of (1) to (3), wherein the polynomial calculation unit commonly uses the input value of the variable expanded before the calculation is executed when a plurality of types of multi-order multivariate polynomials are calculated.
(5)
The information processing apparatus according to (3), wherein the polynomial calculation unit commonly uses results of the calculation of the indices executed before the calculation is executed when the plurality of types of multi-order multivariate polynomials are calculated.
(6)
The information processing apparatus according to any one of (1) to (5), wherein the polynomial calculation unit skips a calculation process for a term in which the input value of at least one variable is 0.
(7)
The information processing apparatus according to (6), wherein the input value of the variable is a value generated such that a ratio of an input value of 0 among all input values is within a predetermined range.
(8)
The information processing apparatus according to (7), wherein the input value of the variable is a value generated using a random number generator, and is re-generated using the random number generator when the ratio of the input value of 0 among all input values is not within the predetermined range.
(9)
The information processing apparatus according to (6), wherein the input value of the variable is expressed by a first or a second bit value different from each other, and a number of input values having the first bit value and a number of input values having the second bit value among all input values are substantially equal.
(10)
The information processing apparatus according to any one of (1) to (9), wherein the information is a seed of a random number, and wherein the predetermined function is a random number generator configured to generate a random number using the seed.
(11)
The information processing apparatus according to any one of (1) to (10), including:
a message generation unit configured to generate a message based on the set of the multi-order multivariate polynomial F=(f1, . . . , fm) defined on a ring K and a vector sεKn;
a message provision unit configured to provide the message to a verifier that retains the set of the multi-order multivariate polynomial F and a vector y=(y1, . . . , ym)=(f1(s), . . . , fm(s)); and a reply provision unit configured to provide the verifier with reply information corresponding to a verification pattern selected by the verifier from among k (k≧3) verification patterns,
wherein the vector s is a secret key,
wherein the set of the multi-order multivariate polynomial F and the vector y are public keys,
wherein the reply information is information selected according to the verification pattern from pairs of the random numbers and the message, and
wherein the message is information obtained by executing an arithmetic operation prepared in advance for a verification pattern corresponding to the reply information using the public keys and the reply information.
(12)
The information processing apparatus according to any one of (1) to (10), including:
an information retaining unit configured to retain the set of the multi-order multivariate polynomial F=fm) defined on a ring K and a vector y=(y1, . . . , ym)=(f1(s), . . . , fm(s));
a message acquisition unit configured to acquire a message generated based on the set of the multi-order multivariate polynomial F and a vector sεKn;
a pattern information provision unit configured to provide a prover that has provided the message with information of one verification pattern selected at random from among k (k≧3) verification patterns;
a reply acquisition unit configured to acquire reply information corresponding to the selected verification pattern from the prover; and
a verifying unit configured to verify whether or not the prover retains the vector s based on the message, the set of the multi-order multivariate polynomial F, the vector y, and the reply information,
wherein the vector s is a secret key,
wherein the set of the multi-order multivariate polynomial F and the vector y are public keys, and
wherein the message is information obtained by executing an arithmetic operation prepared in advance for a verification pattern corresponding to the reply information using the public keys and the reply information.
(13)
The information processing apparatus according to any one of (1) to (10), including:
a message generation unit configured to generate a message based on the set of the multi-order multivariate polynomial F=(f1, . . . , fm) defined on a ring K and a vector sεKn;
a message provision unit configured to provide the message to a verifier that retains the set of the multi-order multivariate polynomial F and a vector y=(y1, . . . , ym)=(f1(s), . . . , fm(s));
an intermediate information generation unit configured to generate, using first information selected by the verifier at random and second information obtained when the message is generated, third information;
an intermediate information provision unit configured to provide the third information to the verifier; and
a reply provision unit configured to provide the verifier with reply information corresponding to a verification pattern selected by the verifier from among k (k≧2) verification patterns,
wherein the vector s is a secret key,
wherein the set of the multi-order multivariate polynomial F and the vector y are public keys,
wherein the reply information is information selected according to the verification pattern from the message, and
wherein the message is information obtained by executing an arithmetic operation prepared in advance for a verification pattern corresponding to the reply information using the public keys, the first information, the third information, and the reply information.
(14)
The information processing apparatus according to any one of (1) to (10), including:
an information retaining unit configured to retain the set of the multi-order multivariate polynomial F=(f1, . . . fm) defined on a ring K and a vector y=(y1, . . . , ym)=(f1(s), . . . , fm(s));
a message acquisition unit configured to acquire a message generated based on the set of the multi-order multivariate polynomial F and a vector sεKn;
an information provision unit configured to provide first information selected at random to a prover that provides the message;
an intermediate information acquisition unit configured to acquire, using the first information and second information obtained when the message is generated, third information generated by the prover;
a pattern information provision unit configured to provide the prover with information of one verification pattern selected at random from among k (k≧3) verification patterns;
a reply acquisition unit configured to acquire reply information corresponding to the selected verification pattern from the prover; and
a verifying unit configured to verify whether or not the prover retains the vector s based on the message, the first information, the third information, the set of the multi-order multivariate polynomial F, and the reply information, wherein the vector s is a secret key,
wherein the set of the multi-order multivariate polynomial F and the vector y are public keys, and
wherein the message is information obtained by executing an arithmetic operation prepared in advance for a verification pattern corresponding to the reply information using the public keys, the first information, the third information, and the reply information.
(15)
The information processing apparatus according to any one of (1) to (10), wherein, when the algorithm is repeatedly performed a plurality of times, the number acquisition unit acquires the number generated only once and the polynomial calculation unit performs the allocation process only once, and wherein the algorithm repeatedly uses the coefficients allocated by the allocation unit.
(16)
The information processing apparatus according to any one of (1) to (10), including:
a signature generation unit configured to generate a digital signature for a message M using the set of the multi-order multivariate polynomial F=(f1, . . . , fm) defined on a ring K and a signature key sεKn; and a signature provision unit configured to provide the digital signature to a verifier that retains the set of the multi-order multivariate polynomial F and a vector y=(f1(s), . . . , fm(s)).
(17)
An information processing method including:
acquiring a number used for a coefficient of each term constituting a set of a multi-order multivariate polynomial F=(f1, . . . , fm), the number generated using a predetermined function from information shared between entities that execute an algorithm of a public-key authentication scheme or a digital signature scheme that uses a public key including the set of the multi-order multivariate polynomial F; and
calculating a multi-order multivariate polynomial for an input value of a variable by grouping coefficients of terms in which types of combinations of variables are the same among coefficients of the multi-order multivariate polynomial that includes the set of the multi-order multivariate polynomial F as a structural element, allocating the acquired number to the coefficients of the multi-order multivariate in units of groups, and executing a process in units of the groups,
wherein, in the calculation, the input value of the variable is expanded to the same number as a number of a coefficient corresponding to one group so that the process in units of the groups is enabled before the calculation is executed.
(18)
A program causing a computer to realize:
a number acquisition function of acquiring a number used for a coefficient of each term constituting a set of a multi-order multivariate polynomial F=(f1, . . . , fm), the number generated using a predetermined function from information shared between entities that execute an algorithm of a public-key authentication scheme or a digital signature scheme that uses a public key including the set of the multi-order multivariate polynomial F; and
a polynomial calculation function of calculating a multi-order multivariate polynomial for an input value of a variable by grouping coefficients of terms in which types of combinations of variables are the same among coefficients of the multi-order multivariate polynomial that includes the set of the multi-order multivariate polynomial F as a structural element, allocating the number acquired through the number acquisition function to the coefficients of the multi-order multivariate in units of groups, and executing a process in units of the groups,
wherein the polynomial calculation function causes the input value of the variable to expand to the same number as a number of a coefficient corresponding to one group so that the process in units of the groups is enabled before the calculation is executed.
(19)
A computer-readable recording medium on which the program according to (18) is recorded.
The prover algorithm P, verifier algorithm V, signature generation algorithm Sig, and signature verifying algorithm Ver described above are examples of a number generation unit, a polynomial calculation unit, and a table retaining unit. The prover algorithm P described above is an example of a message generation unit, a message provision unit, a reply provision unit, an intermediate information generation unit, and an intermediate information provision unit. In addition, the verifier algorithm V described above is an example of an information retaining unit, a message acquisition unit, a pattern information provision unit, a replay acquisition unit, a verifying unit, and an intermediate information acquisition unit.
The preferred embodiments of the present invention have been described above with reference to the accompanying drawings, whilst the present invention is not limited to the above examples, of course. A person skilled in the art may find various alterations and modifications within the scope of the appended claims, and it should be understood that they will naturally come under the technical scope of the present invention.
In the above description, the algorithms using the hash function H have been introduced, but a commitment function COM may be used instead of the hash function H. The commitment function COM is a function that takes a character string S and a random number p as arguments. As an example of the commitment function, there is a scheme presented by Shai Halevi and Silvio Micali at the international conference CRYPTO in 1996.
Number | Date | Country | Kind |
---|---|---|---|
2012-046686 | Mar 2012 | JP | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/JP2013/053491 | 2/14/2013 | WO | 00 | 7/7/2014 |