System and method for enforcement of correctness for key derivation
10630471 ยท 2020-04-21
Assignee
Inventors
Cpc classification
H04L9/0861
ELECTRICITY
H04L9/3239
ELECTRICITY
H04L9/085
ELECTRICITY
H04L2209/46
ELECTRICITY
H04L9/0894
ELECTRICITY
H04L9/3255
ELECTRICITY
H04L9/3252
ELECTRICITY
International classification
H04L9/32
ELECTRICITY
H04L9/08
ELECTRICITY
Abstract
The subject matter discloses a system for enforcing correctness of a derivation key, comprising multiple computerized nodes, comprising a storage module configured to store a share of a key used as an input of a function generating the derivation key, a communication module configured to exchange information between the multiple computerized nodes, and a processing module configured to receiving a request to create the derivation key, performing an MPC process between the multiple computerized nodes, said MPC process is performed multiple times, in each time the MPC process comprises receiving the key shares as input, randomly selecting a function, outputting the outputs of the selected function to the multiple computerized nodes, the multiple computerized nodes lack access to the selected function, the multiple computerized nodes perform computations on the received outputs and exchange outputs of the computations to estimate correction of the key shares inputted into the MPC process.
Claims
1. A system for enforcing correctness of a derivation key, comprising: multiple computerized nodes configured to store a share of a key used as an input of a function generating the derivation key, a communication module configured to exchange information between the multiple computerized nodes, said multiple computerized nodes are implemented in computer hardware and configured to perform a set of instructions, comprising: receiving a request to create the derivation key; performing a multiparty computation (MPC) process between the multiple computerized nodes, said MPC process is performed multiple times, in each time the MPC process comprises: (a) receiving the key shares as input, (b) randomly selecting a function from a plurality of optional functions, wherein the multiple computerized nodes are not aware of the randomly-selected function, wherein one optional function of the plurality of optional functions outputs key shares of the derivation key and another optional function of the plurality of optional functions outputs values that are verifiable by the computerized nodes and (c) performing the MPC process using the randomly-selected function, thereby producing outputs of the randomly-selected function; providing the outputs of the randomly-selected function to the multiple computerized nodes, the multiple computerized nodes lack access to the selected function; wherein in case the another optional function is selected, the multiple computerized nodes perform computations on the received outputs and exchange outputs of the computations to estimate correction of the key shares inputted into the MPC process, and wherein the multiple computerized nodes assign the value provided from the MPC process as a key share of the derivation key after checking performance of the optional function that outputs values that are verifiable by the computerized nodes performed by the MPC process, said multiple computerized nodes check performance of the optional function using the commitment message received from another node as input.
2. The system of claim 1, wherein the multiple computerized nodes are further configured to compute and exchange a first commitment message which is a cryptographic function receiving as input the output of the selected function.
3. The system of claim 2, wherein the cryptographic function comprises an ECDSA function computed on the output of the selected function and a hash function performed on the output of the ECDSA function.
4. The system of claim 2, wherein the multiple computerized nodes are further configured to receive a second commitment message from another computerized node of the multiple computerized nodes, said second commitment message comprises a key share sent from the selected function to the other computerized node and to check correctness of the input provided by the other computerized node.
5. The system of claim 1, wherein the multiple computerized nodes are configured to identify that the selected function is the key derivation function, identify that the other computerized node inputted a correct value and to assign the value provided from the MPC process as a key share of the derivation key.
6. The system according to claim 1, wherein the MPC process and estimating correction of the key shares are performed until a predefined condition is met.
7. The system according to claim 1, wherein the multiple computerized nodes are configured to check the commitment from the other nodes and verifying that the selected function is, assigning the output of the selected function as the key shares of the derivation key.
8. The system according to claim 1, wherein the multiple computerized nodes comprise instructions to perform two different optional functions having output values that are verifiable by the computerized nodes, wherein one of the two optional functions outputs two equal random values and another optional function outputs two random values having a predefined additive share.
9. The system according to claim 1, wherein the computerized nodes assign the output of the MPC process as a share of the derivation key in case all potential candidates of derivation key share that fail to match the optional functions that are verifiable by the computerized nodes are equal in all outputs of the MPC process.
10. A system for enforcing correctness of a derivation key, comprising: multiple computerized nodes configured to store a share of a key used as an input of a function generating the derivation key, a communication module configured to exchange information between the multiple computerized nodes, said multiple computerized nodes are implemented in computer hardware and configured to perform a set of instructions, comprising: receiving a request to create the derivation key; performing a multiparty computation (MPC) process between the multiple computerized nodes, said MPC process is performed multiple times, in each time the MPC process comprises: (a) receiving the key shares as input, (b) randomly selecting a function from a plurality of optional functions, wherein the multiple computerized nodes are not aware of the randomly-selected function, wherein one optional function of the plurality of optional functions outputs key shares of the derivation key and another optional function of the plurality of optional functions outputs values that are verifiable by the computerized nodes and (c) performing the MPC process using the randomly-selected function, thereby producing outputs of the randomly-selected function; providing the outputs of the randomly-selected function to the multiple computerized nodes, the multiple computerized nodes lack access to the selected function; wherein in case the another optional function is selected, the multiple computerized nodes perform computations on the received outputs and exchange outputs of the computations to estimate correction of the key shares inputted into the MPC process, and wherein the multiple computerized nodes comprise instructions to perform two different optional functions having output values that are verifiable by the computerized nodes, wherein one of the two optional functions outputs two equal random values and another optional function outputs two random values having a predefined additive share.
11. The system of claim 10, wherein the multiple computerized nodes are further configured to compute and exchange a first commitment message which is a cryptographic function receiving as input the output of the selected function.
12. The system of claim 11, wherein the cryptographic function comprises an ECDSA function computed on the output of the selected function and a hash function performed on the output of the ECDSA function.
13. The system of claim 11, wherein the multiple computerized nodes are further configured to receive a second commitment message from another computerized node of the multiple computerized nodes, said second commitment message comprises a key share sent from the selected function to the other computerized node and to check correctness of the input provided by the other computerized node.
14. The system of claim 10, wherein the multiple computerized nodes are configured to identify that the selected function is the key derivation function, identify that the other computerized node inputted a correct value and to assign the value provided from the MPC process as a key share of the derivation key.
15. The system of claim 10, wherein the multiple computerized nodes assign the value provided from the MPC process as a key share of the derivation key after checking performance of the optional function that outputs values that are verifiable by the computerized nodes performed by the MPC process, said multiple computerized nodes check performance of the optional function using the commitment message received from another node as input.
16. The system according to claim 10, wherein the MPC process and estimating correction of the key shares are performed until a predefined condition is met.
17. The system according to claim 10, wherein the multiple computerized nodes are configured to check the commitment from the other nodes and verifying that the selected function is, assigning the output of the selected function as the key shares of the derivation key.
18. The system according to claim 10, wherein the computerized nodes assign the output of the MPC process as a share of the derivation key in case all potential candidates of derivation key share that fail to match the optional functions that are verifiable by the computerized nodes are equal in all outputs of the MPC process.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) The invention may be more clearly understood upon reading of the following detailed description of non-limiting exemplary embodiments thereof, with reference to the following drawings, in which:
(2)
(3)
(4)
(5) The following detailed description of embodiments of the invention refers to the accompanying drawings referred to above. Dimensions of components and features shown in the figures are chosen for convenience or clarity of presentation and are not necessarily shown to scale. Wherever possible, the same reference numbers will be used throughout the drawings and the following description to refer to the same and like parts.
DETAILED DESCRIPTION OF THE INVENTION
(6) Illustrative embodiments of the invention are described below. In the interest of clarity, not all features/components of an actual implementation are necessarily described.
(7) The present invention discloses a system and method for managing derivation of a cryptographic key, also referred herein as key. The method is performed by multiple computerized nodes used to store shares of the key. The key may be used in the context of money transfer, for example a Blockchain-related transfer, when a cryptographic key is required to transfer the funds. The key may be used for any other purpose selected by a person skilled in the art. The method is configured to verify, with a very high probability, that the key shares inputted by all the nodes are correct and can be used to create a valid derivation key. The method is performed multiple times, for example in the range of 16-128, and each time the inputted shares to the derivation key are considered valid, reduces the probability that the node actual input is false.
(8) Each of the multiple computerized nodes stores a share of the key used to derive a derivation key. The key shares may be generated using a multi-party computation (MPC) process. The nodes also store a set of instructions that are detailed below. Each node comprises a communication module configured to exchange messages with the multiple computerized nodes. The communication module may exchange signals via wireless or wired channels, for example via the internet, on cables, via a cellular network or any communication technique desired by a person skilled in the art. The nodes also comprise a memory unit configured to store a set of instructions to be executed by the nodes and to store the messages received from the multiple computerized nodes. The messages received from the multiple computerized nodes may be associated with an identifier of the specific node of the multiple computerized nodes that sent the message.
(9)
(10) Step 110 discloses the multiple computerized nodes receive a request to generate a derivation key based on a key shared between multiple nodes. The request may be sent before transferring funds associated with the key. The nodes may be computers, servers, mobile electronic devices, cellular phones, and any electronic devices having a memory, communication module and memory for storing the key share and performing the instructions disclosed herein. Each node of the multiple computerized nodes performs the method below multiple times, as the logic output in each time is that there is 50% that the node provides a false value as the key share without being caught. Thus, performing the method 20 times and outputting that the value received from the nodes are correct implies that the likelihood of a false value received from the node is less than 1 to million. The number of times a value is requested from the node may be defined by a person skilled in the art.
(11) Step 120 discloses the multiple nodes compute the derivation key using an MPC process. The MPC process is performed in a manner in which the entire key and the derivation key are never accessible to a single entity. The MPC process receives as input a derivation string which is public to all the nodes, and key shares provided by the nodes. The output of the MPC process is shares of the derivation key and authentication information. Each node receives a share of the derivation key. In typical embodiments of the invention, such a derivation key can be computed by computing the HMAC function with the key and public derivation string via MPC, so that the input and output key shares of a node are not revealed to any other node. The authentication information may be used to finalize the verifying correctness of the key shares. The MPC process is performed multiple times, as desired by the person skilled in the art, for example 20 times, 64 times, 144 times and the like. In some cases, in each time the output of the MPC process may be the authentication information or the derivation key shares. At the end of the MPC process, the nodes receive both the authentication information and the derivation key shares in a very high probability.
(12) Step 130 discloses verifying correctness of the key shares inputted by the nodes for the key derivation process. The correctness of the key shares is performed by exchanging messages between the multiple computerized nodes, as detailed below. At least some of the messages contain outputs of cryptographic operations. In the end of the verifying correctness phase, the nodes can verify in a very high probability whether or not the other node inputted the correct share for the key derivation process.
(13) Step 140 discloses the nodes assigning the values received in step 120 as shares of the derivation key, if the verification performed in step 130 succeeds.
(14)
(15) Step 210 discloses computing x.sub.in=x.sub.in.sup.1+x.sub.in.sup.2 mod q. It should be noted that none of the nodes that perform the MPC process hold or have access to both x.sub.in.sup.1 and x.sub.in.sup.2 during any of the processes described in the subject matter. x.sub.in.sup.1 is the share stored in node 1 and x.sub.in.sup.2 is the share stored in node 2. x.sub.in denotes the key from which the derivation key is derived.
(16) Step 220 discloses Flip two coins b.sub.1 and b.sub.2. The two coins represent 4 options having substantially the same probability to take place. As the next steps are performed multiple times, the MPC process performed by the nodes requires that all 4 options are randomly selected in a very high likelihood, for example a probability of at least 99.99%. Flipping the coins may be performed using a Bernouli process implemented on a computer software running on an MPC process between the nodes. The outcome of the coins is not revealed to any of the nodes. For simplicity, the coins may have a value of 0 or 1. The flip coin is a representation of a random selection of one option from multiple options disclosed in steps 230, 233 and 235. The options may be selected in equal or unequal probabilities.
(17) After flipping the coins, the MPC process sets two values, each value is configured to be outputted to another node. In case the first coin has a value 0, as disclosed in step 230, the MPC process sets both shares x.sub.1, x.sub.2 to be the same random value. In case the first coin has a value 1 and the second coin has a value 0, as disclosed in step 233, the MPC process sets both shares x.sub.1, x.sub.2 to be random shares of x.sub.in(that is, x.sub.1+x.sub.2=x.sub.in mod q). In case the first coin has a value 1 and the second coin has a value 1, as disclosed in step 235, the MPC process computes x.sub.out=H(x.sub.in,s) and prepare random shares x.sub.1, x.sub.2 of x.sub.out. It should be noted that the mathematical computations disclosed in steps 233 and 235 are exemplary only, and represent any selection of random values that can be used to verify the correctness in the method described in
(18) Then, in step 240, the share x.sub.1 is outputted to node P.sub.1 and the share x.sub.2 is outputted to node P.sub.2. Again, also when outputting the shares x.sub.1 and x.sub.2, none of the nodes has access to the shares. In some cases, the process is repeated after step 240, as shown in
(19)
(20) In step 310, each node P.sub.i (for i=1, 2) receives function output x.sub.i. For example, node P.sub.1 receives X.sub.1 and P.sub.2 receives X.sub.2.
(21) In step 320, each node P.sub.i computes Q.sub.i=x.sub.i.Math.G. G is the generator (or base point) of the Elliptic curve being used. It should be noted that x.sub.i cannot be extracted from Q.sub.i, as G is an irreversible function.
(22) In step 330, each node P.sub.i sends the other node a cryptographic commitment of Q.sub.i. The commitment is defined as a value that bounds the node to the value but does not reveal it. The commitment may be computed, for example, by choosing a random r.sub.i of length 128 bits and computing c.sub.i=SHA256(Q.sub.i, r.sub.i). Then, the nodes exchange the value c.sub.i.
(23) In step 340, each node P.sub.i receives the cryptographic commitment from the other node. exchange of the commitments, commitment openings and additional messages between the nodes may be performed via a wired or wireless channel. In some exemplary cases, the nodes are different and distinct entities located nearby, even in the same building or server farm/cluster.
(24) In step 345, the nodes exchange commitment openings. The commitment openings may be the commitment message before the hash function is applied thereto. For example, the commitment opening is (Q.sub.i,r.sub.i) while the commitment message is c.sub.i=SHA256(Q.sub.i, r.sub.i).
(25) In step 345, the nodes check the result of the commitments. Checking may be performed by applying the hash function on the commitment opening and comparing the output of the hash function to the commitment message.
(26) In step 360, if the commitment is correct multiple times and if Q.sub.1=Q.sub.2 or Q.sub.1+Q.sub.2=Q.sub.in, and the multiple Q.sub.1 and Q.sub.2 values received in each node are the same in all iterations, define Q.sub.1 and Q.sub.2 as public key shares, x.sub.i as private key share for each node, and Q=Q.sub.1+Q.sub.2 as the derived public key. The method may define one or more functions that can be verifiable by the nodes without revealing the outputs X1 and X2. As noted above, one optional verifiable function outputs two random and equal values. Thus, the nodes can check whether Q1 equals Q2 and thus X1 equals X2. Otherwise, the nodes conclude that the selected function is the function that computes the derivation key. In such a case, the outputted values X1 and X2 are stored in the nodes as the shares of the derivation key. Another verifiable function is outputting two additive shares of Xin.
(27) In case the selected function outputs equal random values, no node can modify the Q.sub.i value that it sends in the commitment, or the node will be detected cheating, as all the nodes should have the same value and this will be different. The malicious node may send a different value and hope that this will fall into the case another verifiable function selected or being the same value as stored in other executions, but since Q.sub.j is just a random value, the chance of it falling into another case is extremely small.
(28) Assume that a node inputs an incorrect share into the computation and the selected function outputs two values such that X1+X2 equals Xin mod q. In this case, the malicious node needs to make the result equal Q.sub.in. This requires it changing its Q.sub.j value since the input share was incorrect and Q.sub.in is publicly known. However, by what we have just explained, it cannot change Q.sub.j if b_1=0 or it will be detected. Thus, such a strategy is doomed to fail and have the cheating be detected.
(29) Finally, assume that both nodes input correct shares but an attacker wishes to make the resulting key be incorrect. In order to do so, the attacker has to change the Q.sub.j value it received. Again, this strategy is doomed to fail as the attacker must input its correct share and cannot change its output; else, it will be detected with a very high probability.
(30) While the disclosure has been described with reference to exemplary embodiments, it will be understood by those skilled in the art that various changes may be made and equivalents may be substituted for elements thereof without departing from the scope of the invention. In addition, many modifications may be made to adapt a particular situation or material to the teachings without departing from the essential scope thereof. Therefore, it is intended that the disclosed subject matter not be limited to the particular embodiment disclosed as the best mode contemplated for carrying out this invention, but only by the claims that follow.