The present application relates generally to cryptographic methods and systems and, more particularly to methods and systems for cryptographic key exchange, digital signature and zero-knowledge proof that offer improved security against cracking attempts, even by quantum computers.
One application of cryptography is digital encryption involving two parties that use respective digital keys to encrypt digital data that they wish to send to one another. For example, each party may securely store a private key that corresponds to a public key. The public key is made available to other parties (potential senders), but the private key is kept secret. One of the parties acting as a sender of a message can access the other party's (i.e., the recipient's) public key, encrypt the message and send a ciphertext to the recipient. The recipient uses the corresponding (and secretly stored) private key to decrypt the message from the ciphertext.
The private key and the corresponding public key are intertwined in a complex mathematical relationship that is difficult to guess, yet any hypothesis as to the nature of this relationship can be easily tested. As a result, unless one has the correct private key, decryption of the data is difficult; however, it not impossible. In fact, malicious parties throughout the world specialize in reverse engineering mathematical relationships (an act known as “cracking”) to obtain a “cracked key”. A cracked key is any key that can be used to successfully decrypt a message encrypted with the recipient's public key. In that sense, a cracked key can correspond to the private key but might also be one of possibly several other keys that lead to the same result.
The difficulty of cracking a private key in today's private/public key infrastructure is a function of various factors, such as the complexity of the mathematical relationship, the key length (in bits) and a malicious party's available computing power. The greater the key length and the more complex the mathematical relationship, the more difficult it will be to crack the private key. However, with the advent of quantum computing, the security of a private key previously believed to be uncrackable is now in doubt. Thus, mathematical relationships have to become more complex and keys need to be made even longer in order for the security of the private key to keep up with increases in computing power available to malicious parties.
However, increases in mathematical complexity and key length are counterproductive, as they lead to increases in latency and computational effort. In fact, the mathematical complexity and key lengths required in order to make a private key palatably secure in the face of quantum computing efforts at cracking it would bring digital communication over the internet to a standstill.
Figuratively speaking, the cure is worse than the disease.
Another application of cryptography is a digital signature, which is used in the case where the recipient of a message purportedly sent by a particular sender wishes to verify that the message was truly sent by the particular sender and not by someone else. Accordingly, a digital signature is generated (at the sender) by processing the message and a private key of the sender.
The message (as well as the signature) may be non-confidential in nature, with the goal of the digital signature application being to verify the identity of a purported sender of the message rather than the concealment of information. (In some cases, however, the message may itself be encrypted and therefore may require decryption once provenance is confirmed.)
The private key of the sender is designed to have a mathematical relationship with a public key of the sender, which is made available to potential recipients. (The situation is the reverse from encryption application, where the sender uses the recipient's public key to encrypt a message.) The digital signature generated by the sender may accompany or be part of the message sent to the recipient.
At the recipient, the received message and the received signature (purported to have been sent by a particular sender) are used, together with the public key of the particular sender, for verification purposes. This is referred to as the verification process. The verification process generates a certain outcome in the case where the received message was truly sent by the particular sender, and to not generate that certain outcome otherwise. As such, the sender is sometimes referred to as a “signer” and the recipient is sometimes referred to as a “verifier”.
The mathematical relationship is chosen such that, if the particular's sender's private key were indeed used to generate the digital signature, then when the recipient runs the received message, the public key of the given sender and the digital signature through a computation (derived from the aforementioned mathematical relationship), a certain expected outcome will be produced, whereas this outcome would not be produced if another private key had been used to generate the digital signature.
The level of confidence in the result of the verification process depends on how difficult it is to steal or reverse engineer (i.e., “crack”) the particular sender's private key. A cracked key does not necessarily match the private key itself, but rather may correspond to a key that is able to produce a “fake” digital signature that leads to the expected outcome when the fake digital signature is run through the computation used in the verification process.
The ability to verify the identity of a purported sender depends, in part, on the recipient being able to access the purported sender's public key from a trusted third-party repository. In contrast, situations arise where a sender wishes to prove that it has knowledge of a secret datum (e.g., knowledge an identity, or knowledge a key—such as the private key corresponding to a public key of an entity that the sender is purporting to be) without ever revealing that datum, and without participation of a third party. This application of cryptography is referred to as the “Zero-Knowledge Proof” (ZKP) application, which is useful in scenarios where authenticity of a sender needs to be verified, but where there is no access to a trusted third party.
Typical ZKP applications of cryptography employ a challenge-and-response protocol, whereby a recipient issues a challenge to a sender (who is trying to prove that they have knowledge of a secret datum), and the sender answers with a response. The challenge is designed to elicit a certain response if the sender has knowledge of the datum and a certain other response otherwise. As the number of challenges increases, it becomes increasingly unlikely that the sender would continue to issue, each time, a response consistent with having knowledge of the datum unless the sender truly did have knowledge of the datum.
It will be appreciated that the challenge-and-response protocol used in a typical ZKP application may require numerous iterations before the recipient has a sufficiently high degree of confidence that the sender has knowledge of the datum. The sheer number of required iterations may make the protocol unacceptably slow in some commercially important situations, such as financial transactions or access control.
Against this background, there has been developed an encryption technique that is more difficult to crack, is computationally simple and has low latency.
Accordingly, there is provided a method of operating a sender computing apparatus to securely transmit a digital asset to a recipient over a data network. The method includes obtaining a public key of the recipient corresponding to a private key of the recipient; selecting a plurality of noise variables; computing a plurality of different ciphers from (i) the digital asset, (ii) the noise variables and (iii) the public key of the recipient; and transmitting the plurality of ciphers to the recipient over the data network, the digital asset being derivable by carrying out a predefined computation involving the plurality of ciphers and the recipient's private key.
There has also been developed a digital signature verification scheme that is more difficult to crack, is computationally simple and has low latency.
Accordingly, there is provided a method of operating a computing apparatus to authenticate a received message purportedly sent by a given sender, the message comprising a digital asset and a digital signature, the digital signature comprising a plurality of data elements.
The method includes obtaining a public key of the given sender; selecting a plurality of noise variables; computing a plurality of data elements based on the digital asset, the noise variables and the public key of the purported sender; evaluating whether the computed data elements and the data elements of the digital signature obey a predetermined relationship; and in case the predetermined relationship is obeyed, concluding that the message was sent by the given sender, otherwise, concluding that the message was not sent by the given sender.
Accordingly, there is provided a method of operating a computing apparatus to authenticate a received message purportedly sent by a given sender, the message comprising a digital asset and a digital signature, the digital signature comprising a plurality of data elements. The method includes obtaining a public key of the given sender; selecting a plurality of noise variables; computing a plurality of data elements based on the digital asset, the noise variables, and the public key of the purported sender; evaluating whether the computed data elements and the data elements of the signature obey a predetermined relationship; in case the predetermined relationship is not obeyed, concluding that the message was not sent by the given sender. In case the predetermined relationship is obeyed the method includes selecting a plurality of new noise variables; computing a plurality of new data elements based on the digital asset, the new noise variables and the public key of the purported sender; evaluating whether the computed new data elements and the data elements of the signature obey the predetermined relationship; in case the predetermined relationship is not obeyed, concluding that the message was not sent by the given sender; in case the predetermined relationship is obeyed, concluding that the message was sent by the given sender.
There has further been developed is a ZKP protocol that requires only a single iteration between sender and recipient, is more difficult to crack, is computationally simple and has low latency.
Accordingly, there is provided a method of operating a computing apparatus to verify that a given sender has knowledge of a secret, the given sender being associated with a public key. The method includes generating a test data element; sending the test data element to the given sender; receiving a response from the sender, the response comprising a digital signature; selecting a plurality of noise variables; computing a plurality of data elements based on the test data element, the noise variables and the public key of the given sender; evaluating whether the computed data elements and the data elements of the digital signature obey a predetermined relationship; in case the predetermined relationship is obeyed, concluding that the given sender has knowledge of the secret, otherwise, concluding that the given sender does not have knowledge of the secret.
Accordingly, there is provided a method of operating a computing apparatus to verify that a given sender has knowledge of a secret, the given sender being associated with a public key. The method includes generating a test data element; sending the test data element to the given sender; receiving a response from the sender, the response comprising a digital signature; selecting a plurality of noise variables; computing a plurality of data elements based on the test data element, the noise variables and the public key of the given sender; evaluating whether the computed data elements and the data elements of the digital signature obey a predetermined relationship. In case the predetermined relationship is obeyed the method includes selecting a plurality of new noise variables; computing a plurality of new data elements based on the test data element, the new noise variables and the public key of the given sender; evaluating whether the computed new data elements and the data elements of the digital signature obey the predetermined relationship; in case the predetermined relationship is obeyed, concluding that the given sender has knowledge of the secret, otherwise, concluding that the given sender does not have knowledge of the secret.
There is also provided a non-transitory computer-readable storage medium comprising computer-readable instructions which, when read and executed by a processor of a computing apparatus, cause the computing apparatus to carry out any of the methods disclosed herein.
Furthermore, there is provided a computing apparatus comprising: a processor; and a non-transitory memory storing computer-readable instructions. The processor is configured for reading and executing the computer-readable instructions in the memory, thereby to cause the computing apparatus to carry out any of the methods disclosed herein.
Use Case 1: Encryption
With reference to
Due to special design of the key pair 40, 50 and the use of noise variables 80 (as will be described herein below), the private key 50 is extremely difficult to obtain from the public key 40, even after observing multiple encrypted messages 70. This makes the present encryption scheme highly secure.
Design of Key Pair
Step 210:
Step 220:
Step 230:
The key generation entity chooses the coefficients of a pair of polynomials f(⋅) and h(⋅) of degree λ:
f(x0)=Σj=0λfjx0j
h(x0)=Σj=0λhjx0j
Step 240:
Step 250:
Step 260:
The key generation entity creates the recipient's private key 50 by assembling the following data elements:
The values of the above data elements can be arbitrarily chosen by the key generation entity.
Step 270:
The key generation entity creates the recipient's public key 40 by assembling the following data elements (the integer p can be part of the recipient's public key or can be a known system variable):
Step 280:
The key generation entity causes the recipient's private key 50 to be securely stored in a memory of the recipient 20. The key generation entity also causes the recipient's public key 40 to be made available to would-be encryptors such as the encryptor 10.
Encryption Using Public Key
Armed with the public key 40 as defined above, the encryptor 10 may perform an encryption process 300 in accordance with a non-limiting embodiment, now described with reference to
Step 310:
The encryptor 10 determines a digital asset x0 from 0 to p−1. The digital asset x0 could be a message or a hash of a message. The message may carry or convey a document, a file, an image, a transaction, a document, a financial instrument, an encryption key or any other information of value. In some embodiments p can have a value at least as great as 26, 28, 210, 212, 214, 216, 218, 220, 222, 224 or even more.
Step 320:
The encryptor 10 obtains the recipient's public key 40, which includes:
Step 330:
The encryptor 10 chooses m arbitrary noise variables x1, . . . , xm. For example, these could be random numbers such as may be output from a pseudo-random number generator, and in some embodiments they should be.
Step 340:
The encryptor 10 computes the following quantities, based on the above quantities and the public key 40:
P′=Σi=0n+λpi(x1, . . . ,xm)x0i; A.
Q′=Σi=0n+λqi(x1, . . . ,xm)x0i; B.
N0p=N0p(x1, . . . ,xm) and N0q=N0q(x1, . . . ,xm); C.
Nnp=Nnp(x0,x1, . . . ,xm) and Nnq=Nnq(x0,x1, . . . ,xm); D.
Step 350:
The encryptor 10 sends an encrypted message (e.g., the ciphertext 70) containing data elements P′, Q′, N0p, N0q, Nnp, and Nnq (which can be referred to as a “ciphertext tuple”) to the recipient 20. On its way from the encryptor 10 to the recipient 20, the ciphertext 70 may traverse the data network 60 (e.g., the Internet), for example.
Decryption Using Private Key
In order to decrypt the digital asset x0, the recipient 20 (which stores the private key 50 corresponding to the public key 40 used by the encryptor 10) may perform a decryption process 400 in accordance with a non-limiting embodiment, now described with reference to
Step 410:
The recipient 20 receives the ciphertext 70 containing data elements P′, Q′, N0 and Nn.
Step 420:
The recipient 20 computes the following variables V1 and V2 based on the data elements of the received ciphertext tuple 70 (i.e., P′, Q′, N0p, N0q, Nnp and Nnq) and based on some of the data elements of the private key 50 held by the recipient 20 (namely, R0, Rn, f0, fλ, h0, hλ, p0 and q0, as well Rp and Rq, as when used):
if the optional factor Rp was used in key generation, otherwise the denominator of P′ is simply unity.
if the optional factor Rq was used in key generation, otherwise the denominator of Q′ is simply unity.
Step 430:
The recipient 20 solves the following equation for x (recalling that the coefficients of f(⋅) and of h(⋅) are part of the recipient's private key 50 and therefore known to the recipient 20):
Since each of f(⋅) and h(⋅) is of relatively low order (e.g., λ=1, 2 or 3), the above equation is also of relatively low order and has analytically derivable roots.
Decryption is now complete: the recipient 20 declares solution to above equation (which should be an integer) as being the digital asset x0 that was the subject of the encryption process 300. The decrypted digital asset x0 can be communicated via a graphical user interface, encoded in a signal sent over a data network or stored in a non-transitory memory.
In the case where the above equation (at step 430) has more than one integer-valued solution (for example, two real integer roots if it is a quadratic, two or three real integer roots if it is a cubic), then it is likely that only one of these solutions will make sense in view of the communications context, and it is considered a straightforward task to discriminate between a potential solution that makes sense and one that does not. For example, one simple non-limiting way to ensure that the right choice is made, is to format the digital asset by pre-appending a flag to it and then treating the formatted digital asset as the secret to be encrypted. The flag can be simply generated by XORing each byte each other of the digital asset in encryption and verified in the decryption. The one root that passes the flag verification is then considered to be the digital asset.
Those skilled in the art will appreciate that steps 420 and 430 may be collapsed into a single arithmetic expression involving the plurality of ciphers (data elements of the ciphertext) and the data elements of the private key 50.
It should also be appreciated that the values of m, n and p are predetermined and known to the encryptor 10 and the recipient 20 for the purposes of a given instantiation of the encryption process 300 and the decryption process 400.
Explanation of how it Works
Consideration is now given to explaining why it is the case that a root of the above equation (step 430) corresponds to the digital asset x0.
To this end, it is recalled that:
V1 was computed as
and
V2 was computed as
in both cases assuming the optional factors Rp and Rq were used in key generation (otherwise the denominators of P′ and Q′ are simply 1).
Now considering without Rp and Rq, because P′(x0, x1, . . . , xm)=Σi=0n+λpi(x1, . . . , xm) x0i (see steps 240 and 330) and because of the above definitions of pi(x1, . . . , xm), N0p(x1, . . . , xm), N0q(x1, . . . , xm), Nnp(x1, . . . , xm), and Nnq(x0, x1, . . . , xm) (see steps 240 and 250), it follows that the aforementioned quantity V1 is actually equal to P(x0, x1, . . . , xm)=B(x0, x1, . . . , xm)f(x0).
Similarly, because Q′=Σi=0n+λqi(x1, . . . , xm)x0i (see step 330), because Q(x0, x1, . . . , xm)=Σi=0n+λqi(x1, . . . , xm) x0i (see step 240) and because of the above definitions of qi(x1, . . . , xm), N0(x1, . . . , xm) and Nn(x0, x1, . . . , xm) (see steps 240 and 250), it follows that the aforementioned quantity V2 is actually equal to Q(x0, x1, . . . , xm)=B(x0, x1, . . . , xm)h(x0).
Therefore, when computing the ratio of V1 to V2 at step 430, it is the same as computing the ratio of P(x0, x1, . . . , xm) to Q(x0, x1, . . . , xm). In other words:
Next, it is also recalled (from step 220) that P(x0, x1, . . . , xm) was defined as B(x0, x1, . . . , xm)f(x0) and Q(x0, x1, . . . , xm) was defined as B(x0, x1, . . . , xm)h(x0). Thus, from a mathematical standpoint:
Therefore, one has:
from which one obtains:
As a result, x0 is the solution to (or, of there is more than one solution, is one of the solutions to):
Security Analysis for Use Case 1
It will be appreciated that the values of x1, . . . , xm (i.e, the noise variables) do not affect the decryption process 400 if the correct private key 50 is used, but they make it all the more difficult for someone who does not have the private key 50 to derive it from the public key 40 and the ciphertext 70.
The complexity of obtaining the private key 50 from the public key 40 can be determined as follows:
Leveraging from key construction in terms of transformation in a polynomial vector space, one can write public key coefficients (for an example of n=4 and λ=2):
Then with the reverse transformation, one has:
Then one can write the transformation with reference to the base polynomial:
Using Tb, we can calculate the second polynomial h(x)'s coefficients:
Based on this process, knowing public key P′ and Q′, one can crack the private key {{right arrow over (b)}i, {right arrow over (f)}i, {right arrow over (h)}i} by brute-forcing f0, f1, and f2. The complexity is O(p3) or in a general case, O(pλ+1).
Turning now to the issue of the size of the public key, private key and cipher in Use Case 1 (in terms of the number of data elements over GF(p)), the following will be noticed:
Use Case 2: Digital Signature
Digital signatures have a wide variety of commercial applications, including the signed transmission of certificates or keys from a certification authority. Another application of digital signatures is the establishment of a sender's identity when sending digital files, messages, legal documents or electronic funds (including digital fiat currency and decentralized currency such as Bitcoin and other cryptocurrencies). Digital signatures are also used to access, add to, modify or confirm elements of a blockchain database in various financial, industrial, commercial and consumer applications.
In this use case, now described with reference to a first variant in
The verifier 550 receives both the digital asset 520 and the digital signature 530. The digital signature 530 is purported to have come from the signer 510, but the verifier 550 must verify this to be true. As such, the verifier 550 carries out a verification process on the received digital asset 520 and the accompanying digital signature 530. The verification process involves evaluating mathematical expressions based on (i) the received digital asset 520, (ii) the public key 570 associated with the signer 510 and (iii) a set of “noise variables” 580. Such noise variables 580 are selected by the verifier 550 at its discretion and without involving the signer 510. The verifier 550 then checks whether the mathematical expressions correspond. If so, the verifier 550 concludes that the signer 510 is the true originator of the received digital asset 520, otherwise, the verifier 550 concludes that the received digital asset 520 was not sent by the signer 510.
The variant of
Design of Key Pair
The signer's private/public key pair 540, 570 is specially designed so that regardless of the values selected by the verifier 550 for the noise variables 580, the mathematical expressions computed as part of the verification process will always corresponds. Conversely, a single instance of non-correspondence of the mathematical expressions will be taken as a sign that the digital signature 530 was not sent by the signer 510.
As a result, even if a malicious party (spoofer) creates a digital signature which somehow causes the computed mathematical expressions to correspond, there is close to zero probability that this would occur a second time if the mathematical expressions were re-computed based on a different set of noise variables (which, it is recalled, are controlled by the verifier 550, not the signer 510). Without the signer's private key 540, it is virtually impossible for the spoofer to derive a “fake signature” that would result in mathematical correspondence to be maintained for an arbitrary set of noise variables. Yet this is precisely what happens if the correct private key 540 is used.
To illustrate this concept in more detail,
Step 610:
The key generation entity chooses an integer p for modulo arithmetic. In contrast to Step 210 of Use Case 1, where p may be not required to be a prime number, in Use Case 2, p is a prime number and, moreover, should be selected such that (p−1)/2y is also prime for some integer y. In the following, φ(⋅) continues to represent Euler's totient function. In Use Case 2 (and Use Case 3), all computations in key generation, polynomial computations in signing and verifying processes are mod φ(p) because those computations are eventually used in the exponents of modular arithmetic computations. However, the ground modulo in the arithmetic exponentiation is with the prime p. In some embodiments, p is at least as great as 26, 28, 210, 212, 214, 216, 218, 220, 222 or 224.
Step 620 (corresponds to step 220 in Use Case 1):
The key generation entity chooses a multivariate base polynomial B(x0, x1, . . . , xm) of order n, which can again be an arbitrary integer. There is no particular limitation on the value of n. Non-limiting examples for the value of n include 3, 4, 5, 6, 7, 8, 9, 10 or higher.
The multivariate base polynomial B(x0, x1, . . . , xm) can be rewritten as a polynomial of a single variable x0 in which the coefficients are bi(x1, . . . , xm):
B(x0,x1, . . . ,xm)=Σi=0nbi(x1, . . . ,xm)x0i
where bi(x1, . . . ,xm)=Σk=0mΣj=0lbij(Πk=1mxkj
Here again, bi(x1, . . . , xm) can be considered as a multivariate polynomial in m variables, where such variables will be referred to as “noise variables” x1, . . . , xm. As will be shown later on, these noise variables, whose values are selected at runtime by the encryptor, add to the security of the encryption process.
The value of m (i.e., the number of noise variables) is a system variable that can be arbitrarily set to any positive integer, without any particular limitation except for security consideration. Non-limiting examples for the value of m include 3, 4, 5, 6, 7, 8, 9, 10 or higher.
Step 630 (corresponds to step 230 in Use Case 1):
The key generation entity chooses the coefficients of a pair of polynomials f(⋅) and h(⋅) of degree λ:
f(x0)=Σj=0λfjx0j
h(x0)=Σj=0λhjx0j
Step 640 (corresponds to step 240 in Use Case 1):
The key generation entity constructs a pair of product polynomials, P(x0, x1, . . . , xm) and Q(x0, x1, . . . , xm), by multiplying the base polynomial B(x0, x1, . . . , xm) with the polynomials f(⋅) and h(⋅), respectively:
P(x0,x1, . . . ,xm)=B(x0,x1, . . . ,xm)f(x0)=Σi=0n+λpi(x1, . . . ,xm)x0i
Q(x0,x1, . . . ,xm)=B(x0,x1, . . . ,xm)h(x0)=Σi=0n+λqi(x1, . . . ,xm)x0i
where
p0(x1, . . . ,xm)=p0=f0b0(x1, . . . ,xm)
q0(x1, . . . ,xm)=q0=h0b0(x1, . . . ,xm)
pn+λ(x1, . . . ,xm)=pn+λ=fλbn(x1, . . . ,xm)
qn+λ(x1, . . . ,xm)=qn+λ=hλbn(x1, . . . ,xm)
pi(x1, . . . ,xm)=Σs+i=ifsbt(x1, . . . ,xm),i=1,2, . . . ,n+λ−1
qi(x1, . . . ,xm)=Σs+t=ihsbt(x1, . . . ,xm),i=1,2, . . . ,n+λ−1
The aforementioned calculations are done mod φ(p).
Step 650 (corresponds to step 250 in Use Case 1, with the added constraint that R0 and Rn should be even integers):
The key generation entity creates a first “noise function” N0(x1, . . . , xm) from b0(x1, . . . , xm) and a first selected arbitrary number R0:
N0(x1, . . . ,xm)=R0b0(x1, . . . ,xm).
Step 660:
The key generation entity creates the signer's private key 540 by assembling the following data elements, which resemble those previously described with respect to Use Case 1:
A. R0 and Rn
B. the coefficients of f(⋅) (i.e., f0, f1, . . . , fλ)
C. the coefficients of h(⋅) (i.e., h0, h1, . . . , hλ)
In addition, for Use Case 2, the signer's private key 540 includes the coefficients Epi and Eqi, i=1, 2, . . . , n+λ−1, of two extra univariate polynomials:
Ep(x0)=Ep1x0+Ep2x02+ . . . +Ep2x0n+λ-1 D.
Eq(x0)=Eq1x0+Eq2x02+ . . . +Eq2x0n+λ-1 E.
The above data elements can be arbitrarily chosen from 0 to φ(p) by the key generation entity.
Step 670:
The key generation entity creates the signer's public key 570 in a manner that is similar to way in which the recipient's public key 40 was derived in Use Case 1, with slight differences. Specifically, the signer's public key 570 includes the following data elements (the integer p can be part of the signer's public key 570 or can be a known system variable):
It is noted that each of the coefficients p′i(x1, . . . , xm) and q′i(x1, . . . , xm) will be even because R0 and Rn are even.
Step 680:
The key generation entity causes the signer's private key 540 to be securely stored in a memory of the signer's 510. The key generation entity also causes the signer's public key 570 to be made available to any destination desirous of carrying out a verification process (such as the verifier 550).
Signing of Digital Asset Using Private Key
Armed with the private key 540 as defined above, the signer 510 may perform a signing process 700 in accordance with a non-limiting embodiment, now described with reference to FIG. 7. The steps in the signing process 700 include various sub-steps, and not all steps or sub-steps need be performed in the order described.
Step 710:
The signer 510 derives a digital asset x0 from a digital message (which can be a digital document, an online transaction, a public key for a certificate, etc.). This derivation can be carried out using a cryptographic hash algorithm, to name a non-limiting example.
Step 720:
The signer 510 chooses a secret base g for signing the digital asset. This can be any arbitrarily selected integer from [2, 3, . . . , p−1]. It can in some cases be the output of a pseudo-random number generator. The base g is not revealed to the eventual verifier.
Step 730:
The signer 510 computes the following quantities, based on its knowledge of the private data elements chosen in steps 710-720 and on its knowledge of the data elements of the private key 540 (see steps 610-670):
A=gf(X
B=gh(x
C=gs
D=gs
E=gt(x
where
s0(x0)=Rn[h(x0)f0−f(x0)h0]
sn(x0)=R0[h(x0)fλ−f(x0)hλ]
t(x0)=R0Rn[h(x0)Ep(x0)−f(x0)Eq(x0)]
Step 740:
The signer 510 sends the digital message together with the digital signature 530 which in this case comprises the quantities A, B, C, D and E (computed at step 730) to a recipient (in this case, to the verifier 550). This can be done over the data network 60 (e.g., the Internet), for example.
Verifying Provenance of a Received Signature Using Public Key
Consider that the verifier 550 wishes to confirm that the digital asset xR, which can be derived from the received message and, from the verifier's point of view is merely purported to come from the signer 510, does truly come from the signer 510. Accordingly, the verifier 550 may perform a verification process 800 in accordance with a non-limiting embodiment, now described with reference to
Step 810:
The verifier 550 receives a message purported to come from the signer 510, and which carries (either explicitly, as in
Step 820:
The verifier 550 obtains the public key 570 of the signer 510. It is recalled that the public key 570 includes:
Step 830:
The verifier 550 chooses m arbitrary noise variables x1, . . . , xm. In a non-limiting embodiment, these may be random numbers.
Step 840:
The verifier 550 computes the following quantities based on (i) the digital asset x0 (derived from the digital message using a hash function); (ii) the noise variables x1, . . . , xm; and (iii) the data elements of the signer's public key 570:
P′=Σi=1n+λ-1p′i(x1, . . . ,xm)x0j
Q′=Σi=1n+λ-1q′i(x1, . . . ,xm)x0j
N0=N0(x1, . . . ,xm)
Nn=Nn(x0,x1, . . . ,xm)
Step 850:
The verifier 550 verifies whether the following mathematical relationship is true (recalling that A, B, C, D and E are part of the received digital signature 530):
AQ′=BP′CN
If the relationship is true, the verifier 550 concludes that the signer 510 is the true source of the message from which the digital asset x0 was derived, otherwise, the verifier concludes that the message from which the digital asset x0 was derived was not sent by the signer 510.
Equivalently, step 850 could involve comparing AQ′- BP′CN
The verification process 800 is thus complete. The outcome of the verification process 800 can be communicated via a graphical user interface, encoded in a signal sent over a data network or stored in a non-transitory memory.
It is noted that the conclusion reached at step 850 holds independently of the values of the noise variables x1, . . . , xm, which allows the verifier to re-run the above steps 810-850 for an entirely different set of noise variables, in case of any doubt as to the provenance of the message from which the received digital asset x0 was derived.
It should be appreciated that the values of m, n and p are predetermined and known to the signer 510 and the verifier 550 for the purposes of a given instantiation of the signing process 700 and the verification process 800.
Explanation of how it Works
Consideration is now given to explaining why it is the case that verification of the above mathematical relationship (step 850) serves as an authentication of provenance of the message from which digital asset x0 was derived, irrespective of the values of the noise variables x1, . . . , xm, despite the fact that the noise variables are chosen by the verifier 550 (and not the signer 510).
To this end, it is recalled that P(x0, x1, . . . , xm) was defined as B(x0, x1, . . . , xm)f(x0) and Q(x0, x1, . . . , xm) was defined as B(x0, x1, . . . , xm)h(x0). Therefore, from a mathematical standpoint:
This leads to:
R0Rnf(x0)Q(x0,x1, . . . ,xm)=R0Rnh(x0)P(x0,x1, . . . ,xm). [Equation (1)]
Now, since P′=Σi=1n+λ-1p′i(x1, . . . , xm)x0j and since p′i(x1, . . . , xm)=R0[pi(x1, . . . , xm)−Epi], this means that R0Rn h(x0)P(x0, x1, . . . , xm) can be rewritten as:
R0Rnh(x0)P(x0,x1, . . . ,xm)=Rnh(x0)(R0P(x0,x1, . . . ,xm))
=Rnh(x0)(R0[P(x0,x1, . . . ,xm)−Epi+Epi)
Recognizing that
this continues as:
Similarly, since Q′=Σi=1n+λ-1q′i(x1, . . . , xm)x0j, since q′(x1, . . . , xm)=Rn[qi(x1, . . . , xm)−Eqi], P(x0, x1, . . . , xm), this means that R0Rn f(x0)Q(x0, x1, . . . , xm) can be rewritten as:
R0Rnf(x0)Q(x0,x1, . . . ,xm)=R0f(x0)Q′+R0Rnf(x0)Eqi+R0f(x0)Nnf0+Rnf(x0)Nnfλ.
Therefore, Equation (1) can be rewritten as:
R0f(x0)Q′+R0Rnf(x0)Eqi+R0f(x0)Nnf0+Rnf(x0)Nnfλ=Rnh(x0)P′+R0Rnh(x0)Epi+Rnh(x0)N0f0+R0h(x0)Nnfλ [Equation (2)]
This can be reorganized it into:
f(x0)R0Q′=h(x0)RnP′+s0(x0)N0+sn(x0)Nn+t(x0) [Equation (3)]
where:
s0(x0)=Rn[h(x0)f0−f(x0)h0]
sn(x0)=R0[h(x0)fλ−f(x0)hλ]
t(x0)=R0Rn[h(x0)Ep(x0)−f(x0)Eq(x0)]
Using modular exponentiation with base g (which, it is recalled, can be arbitrarily selected by the signer) over the Galois Field GF(p) or ring of integers: [2, 3, . . . , p−1]:
gf(X
or:
AQ′mod φ(p)=BP′mod φ(p)CN
where
A=gf(X
B=gh(x
C=gs
D=gs
E=gt(x
Or, we can simply rewrite Equation (4) as:
AQ′=BP′CN
Equation (5) can be used by the verifier 550 (which receives the public key 570 comprising the coefficients necessary to calculate P′, Q′, N0 and Nn) to verify whether the digital asset x0 was indeed signed by the signer 510.
It is noted that the elements of the digital signature A, B, C, D, E are only related to (i) the base g chosen arbitrarily by the signer 510, (ii) the digital asset x0 and (iii) data elements f(x0) and h(x0) of the private key. It is noted that the digital signature does not depend on the noise variables x1, . . . , xm. In other words, if the correct private key 540 was used to create the digital signature A, B, C, D, E for the digital asset x0, then Equation (5) will hold for all sets of noise variables x1, . . . , xm that could be chosen by the verifier 550. On the other hand, Equation (5) will not hold if the incorrect private key was used to generate the digital signature.
Security Analysis for Use Case 2
The complexity of obtaining the private key 540 from the public key 570 is as follows:
O(φ(p)n+1+2x+1)=O(qn+12x(n+1)+2x+1)
The complexity of obtaining the private key 540 from the signature 530 is as follows:
O(q 2x(n+1)+1)
The complexity of spoofing is as follows:
O(φ(p)5+m)=O(q5+m2x(5+m)) with m to be the number of noise terms and m>=1.
Therefore, the overall complexity of Use Case 2 is the lowest among the above, namely O(q 2x(n+1)+1)=O (2log q+x(n+1)+1).
Turning now to the issue of the size of the public key and the private key in Use Case 2 (in terms of the number of data elements over GF(p)), the following will be noticed:
By way of specific example, the following shows the size of the public key, private key and digital signature for various numbers of noise variables (i.e., m=2 and m=3) and various orders of the multivariate base polynomial (i.e., n=2, n=4 and n=6), based on the formulas in the aforementioned table, while A is kept equal to 2:
x(n+1)+1)
Use Case 3: Zero-Knowledge Proof (ZKP)
In this use case, now described with reference to
In particular, the sender 910 sends to the recipient 930 a request 950 including the sender's public key 920 (public key can be pre-known by the recipient). The recipient 930 generates a challenge variable 960 and sends the challenge variable 960 to the sender 910. In response, the sender 910 generates a digital signature 970 from the challenge variable 960 and the private key 940, resulting in a digital signature 980 to be returned to the recipient as a response of the challenge.
The recipient 930 then evaluates two mathematical expressions based on (i) the challenge variable 960, (ii) the public key 920 that was received from the sender 910 and (iii) a set of “noise variables” 990. Such noise variables 990 are selected by the recipient 930 at its discretion and without involving the sender 910. The recipient 930 then checks whether the two quantities on both sides of verification equation are identical. If so, the recipient 930 concludes, with a fairly high degree of certainty, that the sender 910 has knowledge of the private key 940, otherwise, the recipient 930 concludes that the sender 910 does not have knowledge of the private key 940.
To increase the degree of certainty, the recipient 930 can select a new set of noise variables and can again compute the two quantities to see if they are identical. This can be done on the recipient's end as many times as desired, for as many sets of noise variables as required, and without additional interaction with the sender 910.
Mathematically, Use Case 3 is the same as Use Case 2, but from an application standpoint, the role of x0 is different. Specifically, it is recalled that for Use Case 2 (digital signature), x0 is a digital asset to be signed and either explicitly (
As such, the ZKP scheme described above may provide a quantum-safe authentication protocol that usable for a wide range of applications including identity authentication in the absence of a trusted third party.
Accordingly, and with reference to
Also, and with reference to
Also, and with reference to
Also, and with reference to
Also, and with reference to
The entities referred to above as “sender”, “encryptor”, “recipient”, “signer”, “verifier”, “destination”, “key generation entity” and the like, which carry out the various encryption, decryption, signature, verification and ZKP methods and protocols described above, can be realized by computing apparatuses executing computer-readable program instructions stored on non-transitory computer-readable media. Such computing apparatuses could be any of a smartphone, laptop, desktop computer, tablet, mainframe, vehicle ECU or IoT (Internet-of-Things) device, to name a few non-limiting possibilities.
With reference to
The program instructions can be downloaded to the computer-readable storage medium 1020 from an external computer or external storage device via a network 1040, for example, the Internet, a local area network, a wide area network and/or a wireless network. The network 1040 may comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. A network adapter card or network interface 1050 in the computing apparatus 1010 receives program instructions over the network 1040 and forwards them to the computer-readable storage medium 1020 for storage and execution by the processor 1030. Execution of the program instructions by the processor 1030 results in the computing apparatus 1010 carrying out aspects of the present disclosure.
The program instructions may be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C++ or the like, and conventional procedural programming languages, such as the “C” programming language or similar programming languages. In some embodiments, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate arrays (FPGA), or programmable logic arrays (PLA) may execute the program instructions by utilizing state information to personalize the electronic circuitry, in order to carry out aspects of the present disclosure.
Aspects of the present disclosure are described herein with reference to flowcharts and block diagrams of methods and apparatus (systems), according to various embodiments. It will be understood that each block of the flowcharts and block diagrams, and combinations of such blocks, can be implemented by execution of the program instructions. Namely, the program instructions, which are read and processed by the processor 1030 of the computing apparatus 1010, direct the processor 1030 to implement the functions/acts specified in the flowchart and/or block diagram block or blocks. It will also be noted that each block of the flowcharts and/or block diagrams, and combinations of such blocks, can also be implemented by special purpose hardware-based systems that perform the specified functions or acts or carry out combinations of special purpose hardware and computer instructions.
The flowcharts and block diagrams illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the drawings. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
The descriptions of the various embodiments of the present disclosure have been presented for purposes of illustration and are not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen to best explain the principles of the embodiments, the practical application or technical improvement over technologies found in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.
It should be appreciated that throughout the specification, discussions utilizing terms such as “processing”, “computing”, “calculating”, “determining”, “analyzing” or the like, can refer to the action and/or processes of a computer or computing system, or similar electronic computing device, that manipulate and/or transform data represented as physical, such as electronic, quantities into other data similarly represented as physical quantities.
As used herein, unless otherwise specified, the use of the ordinal adjectives “first”, “second”, “third”, etc., to describe a common object or step, merely indicate that different instances of like objects or steps are being referred to, and are not intended to imply that the objects or steps so described must be in a given sequence, either temporally, spatially, in ranking, or in any other manner.
It is noted that various individual features may be described only in the context of one embodiment. The particular choice for description herein with regard to a single embodiment is not to be taken as a limitation that the particular feature is only applicable to the embodiment in which it is described. Various features described in the context of one embodiment described herein may be equally applicable to, additive, or interchangeable with other embodiments described herein, and in various combinations, groupings or arrangements. In particular, use of a single reference numeral herein to illustrate, define, or describe a particular feature does not mean that the feature cannot be associated or equated to another feature in another drawing figure or description.
Also, when the phrase “at least one of A and B” is used, this phrase is intended to and is hereby defined as a choice of A or B or both A and B, which is similar to the phrase “and/or”. Where more than two variables are present in such a phrase, this phrase is hereby defined as including only one of the variables, any one of the variables, any combination of any of the variables, and all of the variables.
The foregoing description and accompanying drawings illustrate the principles and modes of operation of certain embodiments. However, these embodiments should not be considered limiting. Additional variations of the embodiments discussed above will be appreciated by those skilled in the art and the above-described embodiments should be regarded as illustrative rather than restrictive. Accordingly, it should be appreciated that variations to those embodiments can be made by those skilled in the art without departing from the scope of the invention.
The present application is a continuation-in-part of PCT International Application No. PCT/CA2021/050319, filed on Mar. 10, 2021, hereby incorporated by reference herein. The present application also claims priority to and the benefit of U.S. Provisional Application Ser. No. 63/214,511, filed on Jun. 24, 2021, U.S. Provisional Application Ser. No. 63/235,457, filed on Aug. 20, 2021, U.S. Provisional Application Ser. No. 63/252,292, filed on Oct. 5, 2021, and U.S. Provisional Application Ser. No. 63/286,195, filed on Dec. 6, 2021, all of which are hereby incorporated by reference herein.
Number | Name | Date | Kind |
---|---|---|---|
5724425 | Chang et al. | Mar 1998 | A |
5996076 | Rowney et al. | Nov 1999 | A |
6188768 | Bethune et al. | Feb 2001 | B1 |
6678379 | Mayers et al. | Jan 2004 | B1 |
6801626 | Nambu | Oct 2004 | B1 |
7065210 | Tsujii et al. | Jun 2006 | B1 |
7570767 | Lo | Aug 2009 | B2 |
7991152 | Gueron et al. | Aug 2011 | B2 |
9219604 | Resch et al. | Dec 2015 | B2 |
10484185 | Fu | Nov 2019 | B2 |
10951404 | Kuang | Mar 2021 | B1 |
11170092 | Liang | Nov 2021 | B1 |
11190343 | Shim | Nov 2021 | B2 |
20050135627 | Zavriyev et al. | Jun 2005 | A1 |
20050190922 | LaGasse | Sep 2005 | A1 |
20050286723 | Vig et al. | Dec 2005 | A1 |
20060136728 | Gentry et al. | Jun 2006 | A1 |
20070076883 | Kuang | Apr 2007 | A1 |
20070076888 | Kuang et al. | Apr 2007 | A1 |
20070087756 | Hoffberg | Apr 2007 | A1 |
20070160212 | Zavriyev et al. | Jul 2007 | A1 |
20080222734 | Redlich et al. | Sep 2008 | A1 |
20090249068 | Farrugia et al. | Oct 2009 | A1 |
20100329447 | Akiyama et al. | Dec 2010 | A1 |
20150033025 | Hoffstein et al. | Jan 2015 | A1 |
20150172292 | Kuang et al. | Jun 2015 | A1 |
20160164884 | Sriram et al. | Jun 2016 | A1 |
20170063827 | Ricardo | Mar 2017 | A1 |
20170141918 | Dubrova et al. | May 2017 | A1 |
20170324553 | Ahn | Nov 2017 | A1 |
20170324554 | Tomlinson | Nov 2017 | A1 |
20180109377 | Fu | Apr 2018 | A1 |
20180278426 | Tang | Sep 2018 | A1 |
20190386832 | Palyutina et al. | Dec 2019 | A1 |
20200084030 | Nendell | Mar 2020 | A1 |
20200266980 | Grant | Aug 2020 | A1 |
20220103375 | Elkaafarani | Mar 2022 | A1 |
20220150064 | Akiyama | May 2022 | A1 |
Number | Date | Country |
---|---|---|
2374189 | Sep 2003 | CA |
114338030 | Oct 2020 | CN |
2009-171384 | Jul 2009 | JP |
WO 2014174491 | Oct 2014 | WO |
WO 2020098833 | May 2020 | WO |
WO-2021009860 | Jan 2021 | WO |
WO 2021248226 | Dec 2021 | WO |
WO 2021248227 | Dec 2021 | WO |
Entry |
---|
Wang, Xin et al. “An improved signature model of multivariate polynomial public key cryptosystem against key recovery attack” [ online] AIMS press, Aug. 23, 2019 [retrieved Aug. 23, 2022], Retrieved from the Internet: URL: https://www.aimspress.com/article/doi/10.3934/mbe.2019388 (Year: 2019). |
Office Action dated Sep. 29, 2020 in connection with U.S. Appl. No. 16/921,583. |
Notice of Allowance dated Jan. 22, 2021 in connection with U.S. Appl. No. 16/921,583. |
International Search Report and Written Opinion dated Jun. 1, 2022 in connection with International Application No. PCT/CA2022/050349. |
International Search Report and Written Opinion dated May 14, 2021 in connection with International Application No. PCT/CA2021/050319. |
International Search Report and Written Opinion dated Apr. 15, 2021 in connection with International Application No. PCT/CA2021/050147. |
Bourgain et al., Character sums and deterministic polynomial root finding in finite fields. arXiv:1308.4803v2. Mar. 10, 2014. 11 pages. |
Chang et al., Quantum annealing for systems of polynomial equations. Scientific Reports. Jul. 16, 2019;9(1):10258. pp. 1-9. DOI: 10.1038/s41598-019-46729-0. |
Ding et al., Multivariate Public Key Cryptography. Sep. 26, 2009. 48 pages. URL:http://www.iis.sinica.edu.tw/papers/byyang/12734-F.pdf [last accessed May 12, 2021]. |
Horodecki et al., Quantum Entanglement. arXiv:quant-ph/0702225v2. Apr. 20, 2007. 110 pages. |
Kasahara, Construction of A New Class of Linear Multivariate Public Key Cryptosystem, K(I)SE(1)PKC. Nov. 7, 2009. 5 pages. URL:https://eprint.iacr.org/2009/546.pdf [last accessed May 12, 2021]. |
Okyere-Gyamfi et al., An Enhanced Asymmetric Cryptosystem using Multiple Key System. International Journal of Computer Applications. Apr. 2020;176(15):18-26. |
Sun et al., Quantum algorithm for polynomial root finding problem. 2014 Tenth International Conference on Computational Intelligence and Security. Nov. 2014, pp. 469-473. DOI: 10.1109/CIS.2014.40. |
Number | Date | Country | |
---|---|---|---|
20220311752 A1 | Sep 2022 | US |
Number | Date | Country | |
---|---|---|---|
63286195 | Dec 2021 | US | |
63252292 | Oct 2021 | US | |
63235457 | Aug 2021 | US | |
63214511 | Jun 2021 | US |
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CA2021/050319 | Mar 2021 | US |
Child | 17691295 | US |