SECRET AUTHENTICATION CODE ADDING DEVICE, SECRET AUTHENTICATION CODE ADDING METHOD, AND PROGRAM

Abstract
A secure text having an authentication code is efficiently created. A key generation part 12 generates secure texts ([x], [α], [β]) of “x”, “α” and “β” that are values satisfying xα=β. A secure text generation part 13 generates secure texts [ai] of random values “ai” for i=1, . . . , N. An authentication code generation part 14 generates authentication codes [γ(ai)] by multiplying the secure texts [ai] by the secure text [α] for i=1, . . . , N. A verification value generation part 15 generates a secure text [w] of a verification value “w” using the secure texts ([x], [α], [β]), the secure text [ai] and the authentication code [γ(ai)]. A verification value determination part 16 determines whether the verification value “w” is equal to zero or not.
Description
TECHNICAL FIELD

The present invention relates to an applied cryptography technique and, in particular, to a technique of adding an authentication code without disclosing input data.


BACKGROUND ART

Methods of obtaining specific operation results without decrypting encrypted numerical values include a method called secret calculation (e.g., Non-patent literature 1). The method of Non-patent literature 1 performs encryption that allows three secret calculation devices to share the fragments of the numerical value, and the three secret calculation devices perform cooperative operation, which can allow the three secret calculation devices to hold the results of addition and subtraction, constant addition, multiplication, constant multiplication, logical operation (negation, logical conjunction, logical disjunction, and exclusive OR), and data format conversion (integer, and binary numeral) without decrypting the numerical value, in a state of being shared among these devices, i.e., being left encrypted.


Methods of providing resistance to falsification by adding an authentication code when secret calculation is performed include a method in Non-patent literature 2.


PRIOR ART LITERATURE
Non-Patent Literature



  • Non-patent literature 1: Koji Chida, Koki Hamada, Dai Ikarashi, and Katsumi Takahashi, “A Three-Party Secure Function Evaluation with Lightweight Verifiability Revisited”, CSS, 2010.

  • Non-patent literature 2: Ivan Damgard, Marcel Keller, Enrique Larraia, Valerio Pastro, Peter Scholl, and Nigel P. Smart, “Practical covertly secure MPC for dishonest majority—or: Breaking the SPDZ limits”, Computer Security—ESORICS 2013, vol. 8134 of Lecture Notes in Computer Science, pp. 1-18, 2013.



SUMMARY OF THE INVENTION
Problems to be Solved by the Invention

Unfortunately, the conventional art described in Non-patent literature 2 uses somewhat homomorphic encryption that has significantly high calculation cost, for the sake of creating a secure text having a random authentication code. Consequently, the efficiency is low.


In view of such a point, the present invention has an object to provide a technique for efficiently creating a secure text having a random authentication code.


Means to Solve the Problems

To achieve the above object, a secret authentication code adding device according to the present invention, comprises: a key generation part that generates secure texts ([x], [α], [β]) of “x”, “α” and “β” that are values satisfying xα=β; a secure text generation part that generates secure texts [ai] of random values “ai” for i=1, . . . , N, where N is an integer of one or more; an authentication code generation part that generates authentication codes [γ(ai)] by multiplying the secure texts [ai] by the secure text [α] for i=1, . . . , N; a verification value generation part that generates the secure text [w] of a verification value “w” by calculating a following formula; and





Mul((Σi[ai])+[x],[α])−((Σi[γ(ai)])+[β])


a verification value determination part that determines whether the verification value “w” is equal to zero or not.


Effects of the Invention

The secret authentication code adding technique according to the present invention can efficiently create a secure text having a random authentication code.





BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 is a diagram exemplifying a functional configuration of a secret authentication code adding system;



FIG. 2 is a diagram exemplifying a functional configuration of a secret authentication code adding device according to a first embodiment;



FIG. 3 is a diagram exemplifying a processing flow of a secret authentication code adding method according to the first embodiment;



FIG. 4 is a diagram exemplifying a functional configuration of a secret authentication code adding device according to a second embodiment; and



FIG. 5 is a diagram exemplifying a processing flow of a secret authentication code adding method according to the second embodiment.





DETAILED DESCRIPTION OF THE EMBODIMENTS

Prior to the description of embodiments, the representation method and definition of terms in this Description are described.


<Representation Method>


A value secreted by applying encryption or secret sharing to a certain value “a” is called a secure text of the “a” and is represented as [a]. The “a” is called the plain text of [a]. In a case where the secreting is secret sharing, a set of the secret sharing fragments held by each party is referred to [a]. A share held by an i-th party Pi in the secure text [a] is referred to using [a]i. The share is a fragment obtained by secret sharing. The party is each participant who cooperatively performs secret calculation.


<Decryption>


A process of calculation the plain text “a” from the secure text [a] is called decryption, and is described as in the following formula.






a←Reveal([a])


<Addition, Subtraction, Multiplication, and Constant Multiplication>


Addition, subtraction and multiplication that are each applied to the secure text adopt secure texts [a] and [b] of two values “a” and “b” as inputs, and calculate the secure texts [d1], [d2] and [d3] of the calculation results “d1”, “d2” and “d3” of “a+b”, “a−b” and “ab”. The constant multiplication operation to the secure text adopts the secure text [a] of the value “a”, and the plain text “c” as inputs, and calculates the secure text [d4] of the calculation result “d4” of “ca”. Execution of such operation is described as in the following formula.





[d1]Add([a],[b]),





[d2]←Sub([a],[b]),





[d3]←Mul([a],[b]),





[d4]←CMul(c,[a])


Note that in a case without any fear of causing misunderstanding, Add([a], [b]), Sub([a], [b]), Mul([a], [b]), and CMul(c, [a]) are abbreviated as [a]+[b], [a]−[b], [a][b], and c[a], respectively.


<Generation of Random Secure Text>


A process of generating a secure text [r] of a random value “r” unknown to anybody is described as in the following formula.





[r]←Rand( )


<Commitment>


The commitment comprises two processes, which are committing and opening processes. The committing is a process of allowing a certain party serving as a transmitter to submit secretly a certain value to another party. The opening is a process of disclosing the committed value to all the parties. The parties other than the transmitter cannot know the committed value until the value is opened. The value committed by the transmitter cannot be falsified by any of the parties including the transmitter.


A process by a certain party Pi to commit a certain value “v” is described as in the following formula.





τv←Commit(v)


τv is a tag associated with the committed value “v”, and is transmitted to all the parties.


A process by the party Pi to open the committed value “v” associated with the tag τv is described as in the following formula.






v←Open(τv)


This process allows all the parties to obtain the committed value “v” associated with the tag τv.


Embodiments of the present invention are hereinafter described in detail. In the diagrams, configuration parts having the same functions are assigned the same numerals, and redundant description is omitted.


First Embodiment

A secret authentication code adding system of a first embodiment comprises n (≥2) secret authentication code adding devices 11, . . . , 1n, as exemplified in FIG. 1. In this embodiment, the secret authentication code adding devices 11, . . . , 1n are connected to a communication network 2. The communication network 2 is a communication network that is of a circuit switching scheme or a packet switching scheme and is configured to be capable of communicating with each of the secret authentication code adding devices 11, . . . , 1n. For example, the Internet, LAN (Local Area Network), WAN (Wide Area Network) or the like may be used. Each device is not necessarily capable of communicating online via the communication network 2. For example, it may be configured such that information to be input into the secret authentication code adding devices 1i (i∈{1, . . . , n}) is stored in a portable recording medium, such as magnetic tape or a USB memory, and input is made offline from the portable recording medium.


As shown in FIG. 2, the secret authentication code adding device 1 comprises, for example, an input part 11, a key generation part 12, a secure text generation part 13, an authentication code generation part 14, a verification value generation part 15, a verification value determination part 16, and an output part 17. The verification value determination part 16 comprises, for example, a decryption part 161, and a determination part 162. The secret authentication code adding device 1 performs the process of each step exemplified in FIG. 3, thereby achieving a secret authentication code adding method according to the first embodiment.


The secret authentication code adding device 1 is a specific device configured to comprise a publicly known or dedicated computer which comprises a central processing unit (CPU) and a main memory (RAM: Random Access Memory) and in which a special program is installed. The secret authentication code adding device 1 executes each process under control by the central processing unit, for example. Data items input into the secret authentication code adding device 1 and data items obtained by each process are stored in the main memory, for example. The data items stored in the main memory are read by the central processing unit as required, and are used for another process. At least a part or some of the processing parts of the secret authentication code adding device 1 may comprise hardware, such as an integrated circuit.


Referring to FIG. 3, the processing procedures of the secret authentication code adding method according to the first embodiment are described.


In step S11, a value “N” is input into the input part 11. “N” is an integer of one or more, and is a parameter that designates the number of secure texts that have authentication codes and are to be generated.


In step S12, the key generation part 12 generates authentication code keys ([x], [α], [β]) that are the secure texts of values “x”, “α” and “β”, which satisfy xα=β. A method of generating a combination of the secure texts that satisfy such a relationship is described in Non-patent literature 2, for example. Alternatively, the secure texts [x] and [α] of random values “x” and “α” may be generated, and the combination of ([x], [α], [β]) may be generated by calculating [β]←Mul([x], [α]) according to the secret calculation method described in Non-patent literature 1, for example. The authentication code keys ([x], [α], [β]) are transferred to the authentication code generation part 14.


In step S13, the secure text generation part 13 calculates Formula (1) for i=1, . . . , N, and generates the secure texts [ai] having random values “ai”. The N secure texts [a1], . . . , [aN] are transferred to the authentication code generation part 14.





[ai]←Rand( )Λ  (1)


In step S14, the authentication code generation part 14 calculates Formula (2) for i=1, . . . , N, and generates authentication codes [γ(ai)] each obtained by multiplying the secure text [ai] by the secure text [α]. The N authentication codes [γ(a1)], . . . , [γ(aN)] are transferred to the verification value generation part 15.





[γ(ai)]←Mul([ai],[α])Λ  (2)


In step S15, the verification value generation part 15 calculates Formulae (3) and (4) using the secure texts [a1], . . . , [aN], authentication codes [γ(a1)], . . . , [γ(aN)], and authentication code keys [α] and [β], and generates the secure text [w] of the verification value “w”. The secure text [w] is transferred to the verification value determination part 16. The secure texts [a1], . . . , [aN], and authentication codes [γ(a1)], . . . , [γ(aN)] are output to the output part 17.





[z]←Mul((Σi[ai])+[x],[α])−((Σi[γ(ai)])+[β]),Λ  (3)





[w]←Mul([z],Rand( ))Λ  (4)


In steps S161 to 162, the verification value determination part 16 determines whether the verification value “w” is equal to zero or not. Hereinafter, more specifically, the processes by the verification value determination part 16 are described.


In step S161, the decryption part 161 receives the share of the secure text [w] from the other (n−1) secret authentication code adding devices, calculates Formula (5) to decrypt the secure text [w], and generates the verification value “w”.






w←Reveal([w])Λ  (5)


In step 162, the determination part 162 determines whether the verification value “w” is equal to zero or not. If the verification value “w” is not zero, the processing is finished. If the verification value “w” is zero, the processing proceeds to step S17.


In step S17, the output part 17 outputs N secure texts ([a1], [γ(a1)]), . . . , ([aN], [γ(aN)]) having authentication codes.


In this embodiment, the verification value generation part 15 thus generates the secure text [w] as the verification value obtained by multiplication of the secure text having the random value in Formula (4). Alternatively, the secure text [z] obtained by Formula (3) may be generated as the verification value. Note that, in a case where the secure text [z] is adopted as the verification value and where the secure text [z] has a value other than zero, this value sometimes allows the secure text [ai] and the authentication code keys ([x], [α], [β]) to be estimated. Consequently, in this embodiment, multiplication of the secure text having the random value in Formula (4) further improves the security.


Second Embodiment

A secret authentication code adding method according to a second embodiment authenticates the authentication code using commitment. This verification can prevent the verification value from being falsified, and more securely confirm the validity of the authentication code. This embodiment assumes that each secure text is secreted by n-party secret sharing. Such secret sharing encompasses, for example, a threshold secret sharing described in Non-patent literature 1, and additive secret sharing described in Non-patent literature 2.


As shown in FIG. 4, the verification value determination part 18 according to the second embodiment comprises not only the decryption part 161 and the determination part 162 but also a commitment part 163 and an opening part 164, for example. The secret authentication code adding device, which comprises the verification value determination part 18, performs the process of each step exemplified in FIG. 5, thereby achieving a secret authentication code adding method according to the second embodiment.


Referring to FIG. 5, the processing procedures of the secret authentication code adding method according to the second embodiment are described. Hereinafter, differences from the first embodiment described above are mainly described. Hereinafter, the processes by i (∈{1, . . . , n})-th secret authentication code adding device 1i are mainly described.


In step S163, the commitment part 163 of the secret authentication code adding device 1i calculates Formula (6), commits the share [w]i held by this device in the secure text [w] of the verification value w, and generates the tag τi. Accordingly, the tag τi is transferred to each of the other (n−1) secret authentication code adding devices 1j (j=1, . . . , n, j≠i).





τi←Commit([w]i)Λ  (6)


At the same time, each of the other secret authentication code adding devices 1j (j=1, . . . , n, j≠i) commits the share [w]j of the verification value [w], and generates the tag τj. Accordingly, all the secret authentication code adding devices 11, . . . , 1n hold not only the tag committed by themselves but also the tags τ1, . . . , τn associated with the respective shares [w]1, . . . , [w]n of the verification value [w].


In step S164, the opening part 164 of the secret authentication code adding device 1i calculates Formula (7), and opens the tag τi. Accordingly, all the other (n−1) secret authentication code adding devices 1j (j=1, . . . , n, j≠i) obtain the shares [w]i of the verification values [w].





[w]i←Open(τi)Λ  (7)


At the same time, the other secret authentication code adding devices 1j (j=1, . . . , n, j≠i) each opens the tag τj. Consequently, all the secret authentication code adding devices 11, . . . , 1n can each obtain not only the share held by themselves but also all the shares [w]i, . . . , [w]n of the verification value[w].


In step S161, the decryption part 161 of the secret authentication code adding device calculates Formula (8) to decrypt the share [w]i, . . . , [w]n, and generates the verification value “w”.






w←Reveal([w]1,Λ,[w]n)Λ  (8)


In step 162, the determination part 162 of the secret authentication code adding device determines whether the verification value “w” is equal to zero or not. If the verification value “w” is not zero, the processing is finished. If the verification value “w” is zero, the processing proceeds to step S17.


In the second embodiment, the share is transmitted and received using the commitment when the verification value is determined. Consequently, the share of the verification value can be prevented from being leaked and falsified, thereby allowing the security to be improved.


According to the configuration described above, the secret authentication code adding technique of the present invention can generate the authentication code keys ([x], [α], [β]) and the N secure texts ([ai], [γ(ai)]) having the authentication codes. Use of the generated secure text having the authentication code can generate the triplet of random numbers to which the authentication code required for multiparty calculation described in Non-patent literature 2 is added, for example.


In the present invention, the authentication code is added to the random secure text, using the multiplication having possibility of being falsified. Many of multiplication schemes that do not assume falsification have a possibility of falsification of adding any value to the input of multiplication. The secret authentication code adding technique of the present invention has resistance to falsification of adding any value to the plain text of each input in the multiplication. Accordingly, application of the present invention to a multi-party calculation scheme using multiplication that does not assume many types of falsification can add resistance to falsification.


The present invention is not limited to the embodiments described above. It is a matter of course that modification can be appropriately made in a scope without departing from the spirit of the present invention. The various types of processes described in the aforementioned embodiments can be executed in a time-series manner according to the order of description. Alternatively, such execution may be made in parallel or individually according to the processing capability of the device that executes the processes, as required.


[Program and Recording Medium]


In cases where the various processing functions in each device described in the above embodiments are implemented by a computer, the processing details of the functions to be included in each device are described as a program. The program is executed by the computer, thereby achieving the various processing functions in each device described above on the computer.


The program that describes the processing details can be recorded in a computer-readable recording medium. The computer-readable recording medium may be, for example, any recording medium, such as a magnetic recording device, an optical disk, a magneto-optical recording medium, or a semiconductor memory.


The program is distributed by, for example, selling, transferring, or lending a portable recording medium, such as DVD or CD-ROM, where the program is recorded. Alternatively, the program may be stored in a storing device of a server computer, and the program may be transferred from the server computer to another computer via a network, thereby distributing the program.


For example, the computer for executing such a program, first, stores the program recorded in the portable recording medium or transferred from the server computer, temporarily in its storing device. In execution of the process, the computer reads the program recorded in its recording medium, and executes the process according to the read program. According to another execution mode of this program, the computer may directly read the program from the portable recording medium, and execute the process according to the program. Further alternatively, every time the program is transferred to this computer from the server computer, the computer may successively execute the process according to the received program. Another configuration may be adopted that executes the process described above through a service of what is called an ASP (Application Service Provider) according to which the program is not transferred to this computer from the server computer, and the processing function is achieved only by an execution instruction therefor and acquisition of the result. The program according to this embodiment encompasses information that is provided for the process by the computer and conforms to the program (data and the like that are not direct instructions to the computer but have characteristics that define the process of the computer).


In this mode, this device is configured by executing a predetermined program on the computer. Alternatively, at least some of these processing details may be achieved as hardware.

Claims
  • 1. A secret authentication code adding device, comprising: circuitry configured to:generate secure texts ([x], [α], [β]) of “x”, “α” and “β” that are values satisfying xα=β;generate secure texts [ai] of random values “ai” for i=1, . . . , N, where N is an integer of one or more;generate authentication codes [γ(ai)] by multiplying the secure texts [ai] by the secure text [α] for i=1, . . . , N;generate the secure text [w] of a verification value “w” by calculating a following formula; and Mul((Σi[ai])+[x],[α])−((Σi[γ(ai)])+[β])determine whether the verification value “w” is equal to zero or not.
  • 2. The secret authentication code adding device according to claim 1, wherein the circuitry configured to update the secure text [w] using a product of the secure text [w] and the secure text having the random value.
  • 3. The secret authentication code adding device according to claim 1, wherein the circuitry configured to decrypt the secure text [w] to obtain the verification value “w”, and determine whether the verification value “w” is equal to zero or not.
  • 4. The secret authentication code adding device according to claim 3, wherein “n” is an integer of two or more, the secure text[x], [α], [β] and [ai] is the secure text according to n-party secret sharing, and “i” is any of integers ranging from one to “n”, inclusive, andthe circuitry configured to:generate a tag τi where a share [w]i of the secure text [w] has been committed;open the tag τi;obtain shares [w]j (j=1, . . . , n, i≠j) having been opened by another secret authentication code adding device, and decrypts shares [w]1, . . . , [w]n to obtain the verification value “w”; anddetermine whether the verification value “w” is equal to zero or not.
  • 5. A secret authentication code adding method, comprising: generating secure texts ([x], [α], [β]) of “x”, “α” and “β” that are values satisfying xα=β by circuitry of a secret authentication code adding device;generating secure texts [ai] of random values “ai” for i=1, . . . , N, where N is an integer of one or more by the circuitry of the secret authentication code adding device;generating authentication codes [γ(ai)] by multiplying the secure texts [ai] by the secure text [α] for i=1, . . . , N by the circuitry of the secret authentication code adding device;generating the secure text [w] of a verification value “w” by calculating a following formula by the circuitry of the secret authentication code adding device; and Mul((Σi[ai])+[x],[α])−((Σi[γ(ai)])+[β])determining whether the verification value “w” is equal to zero or not by the circuitry of the secret authentication code adding device.
  • 6. (canceled)
  • 7. A non-transitory computer readable medium including computer executable instructions that make a secret authentication code adding device perform a method comprising: generating secure texts ([x], [α], [β]) of “x”, “α” and “β” that are values satisfying xα=β;generating secure texts [ai] of random values “ai” for i=1, . . . , N, where N is an integer of one or more;generating authentication codes [γ(ai)] by multiplying the secure texts [ai] by the secure text [α] for i=1, . . . , N;generating the secure text [w] of a verification value “w” by calculating a following formula; and Mul((Σi[ai])+[x],[α])−((Σi[γ(ai)])+[β])determining whether the verification value “w” is equal to zero or not.
  • 8. The secret authentication code adding device according to claim 2, wherein the circuitry configured to decrypt the secure text [w] to obtain the verification value “w”, and determine whether the verification value “w” is equal to zero or not.
  • 9. The secret authentication code adding device according to claim 8, wherein “n” is an integer of two or more, the secure text[x], [α], [β] and [ai] is the secure text according to n-party secret sharing, and “i” is any of integers ranging from one to “n”, inclusive, andthe circuitry configured to:generate a tag τi where a share [w]i of the secure text [w] has been committed;open the tag τi;obtain shares [w]j (j=1, . . . , n, i≠j) having been opened by another secret authentication code adding device, and decrypt shares [w]1, . . . , [w]n to obtain the verification value “w”; anddetermine whether the verification value “w” is equal to zero or not.
Priority Claims (1)
Number Date Country Kind
2015-202057 Oct 2015 JP national
PCT Information
Filing Document Filing Date Country Kind
PCT/JP2016/080049 10/11/2016 WO 00