Rabin signature algorithm
{{Short description|Digital signature scheme}}
In cryptography, the Rabin signature algorithm is a method of digital signature originally proposed by Michael O. Rabin in 1978.{{cite book
|author1-last=Rabin
|author1-first=Michael O.
|author1-link=Michael O. Rabin
|editor1-last=DeMillo
|editor1-first=Richard A.
|editor1-link=Richard DeMillo
|editor2-last=Dobkin
|editor2-first=David P.
|editor2-link=David P. Dobkin
|editor3-last=Jones
|editor3-first=Anita K.
|editor3-link=Anita K. Jones
|editor4-last=Lipton
|editor4-first=Richard J.
|editor4-link=Richard Lipton
|title=Foundations of Secure Computation
|year=1978
|publisher=Academic Press
|location=New York|isbn=0-12-210350-5
|pages=155–168
|chapter=Digitalized Signatures
|last=Rabin
|first=Michael O.
|author-link=Michael O. Rabin
|title=Digitalized Signatures and Public Key Functions as Intractable as Factorization
|number=TR-212
|institution= MIT Laboratory for Computer Science
|date=January 1979
|location=Cambridge, MA, United States
|url=http://publications.csail.mit.edu/lcs/pubs/pdf/MIT-LCS-TR-212.pdf
|last1=Bellare
|first1=Mihir
|author-link1=Mihir Bellare
|last2=Rogaway
|first2=Phillip
|author-link2=Phillip Rogaway
|title=The Exact Security of Digital Signatures—How to Sign with RSA and Rabin
|editor-last=Maurer
|editor-first=Ueli
|editor-link=Ueli Maurer (cryptographer)
|conference=Advances in Cryptology – EUROCRYPT ’96
|date=May 1996
|conference-url=https://link.springer.com/book/10.1007/3-540-68339-9
|volume=1070
|series=Lecture Notes in Computer Science
|publisher=Springer
|location=Saragossa, Spain
|isbn=978-3-540-61186-8
|pages=399–416
|doi=10.1007/3-540-68339-9_34
|doi-access=free
}}
The Rabin signature algorithm was one of the first digital signature schemes proposed. By introducing the use of hashing as an essential step in signing, it was the first design to meet what is now the modern standard of security against forgery, existential unforgeability under chosen-message attack, assuming suitably scaled parameters.
Rabin signatures resemble RSA signatures with exponent , but this leads to qualitative differences that enable more efficient implementation{{cite report
|author-last=Bernstein
|author-first=Daniel J.
|author-link=Daniel J. Bernstein
|date=January 31, 2008
|title=RSA signatures and Rabin–Williams signatures: the state of the art
|url=https://cr.yp.to/papers.html#rwsota
}} (additional information at https://cr.yp.to/sigs.html) and a security guarantee relative to the difficulty of integer factorization,{{cite conference
|last=Bernstein
|first=Daniel J.
|author-link=Daniel J. Bernstein
|title=Proving tight security for Rabin–Williams signatures
|url=https://cr.yp.to/papers.html#rwtight
|editor-last=Smart
|editor-first=Nigel
|editor-link=Nigel Smart (cryptographer)
|conference=Advances in Cryptology – EUROCRYPT 2008
|date=April 2008
|conference-url=https://link.springer.com/book/10.1007/978-3-540-78967-3
|volume=4965
|series=Lecture Notes in Computer Science
|publisher=Springer
|location=Istanbul, Turkey
|isbn=978-3-540-78966-6
|pages=70–87
|doi=10.1007/978-3-540-78967-3_5
|doi-access=free
}} which has not been proven for RSA.
However, Rabin signatures have seen relatively little use or standardization outside IEEE P1363 in comparison to RSA signature schemes such as RSASSA-PKCS1-v1_5 and RSASSA-PSS.
Definition
The Rabin signature scheme is parametrized by a randomized hash function of a message and -bit randomization string .
; Public key
: A public key is a pair of integers with and odd. is chosen arbitrarily and may be a fixed constant.
; Signature
: A signature on a message is a pair of a -bit string and an integer such that
; Private key
: The private key for a public key is the secret odd prime factorization of , chosen uniformly at random from some large space of primes.
; Signing a message
: To make a signature on a message using the private key, the signer starts by picking a -bit string uniformly at random, and computes . Let . If is a quadratic nonresidue modulo , the signer starts over with an independent random .{{rp|p. 10}} Otherwise, the signer computes
\begin{align}
x_p &:= \Bigl(-d \pm \sqrt{c + d^2}\Bigr) \bmod p, \\
x_q &:= \Bigl(-d \pm \sqrt{c + d^2}\Bigr) \bmod q,
\end{align}
using a standard algorithm for computing square roots modulo a prime—picking makes it easiest. Square roots are not unique, and different variants of the signature scheme make different choices of square root; in any case, the signer must ensure not to reveal two different roots for the same hash . and satisfy the equations
\begin{align}
x_p (x_p + b) &\equiv H(m,u) \pmod p, \\
x_q (x_q + b) &\equiv H(m,u) \pmod q.
\end{align}
The signer then uses the Chinese remainder theorem to solve the system
\begin{align}
x &\equiv x_p \pmod p, \\
x &\equiv x_q \pmod q,
\end{align}
for , so that satisfies as required. The signer reveals as a signature on .
: The number of trials for before can be solved for is geometrically distributed with an average around 4 trials, because about 1/4 of all integers are quadratic residues modulo .
Security
Security against any adversary defined generically in terms of a hash function (i.e., security in the random oracle model) follows from the difficulty of factoring :
Any such adversary with high probability of success at forgery can, with nearly as high probability, find two distinct square roots and of a random integer modulo .
If then is a nontrivial factor of , since so but .
Formalizing the security in modern terms requires filling in some additional details, such as the codomain of ; if we set a standard size for the prime factors, , then we might specify .
Randomization of the hash function was introduced to allow the signer to find a quadratic residue, but randomized hashing for signatures later became relevant in its own right for tighter security theorems and resilience to collision attacks on fixed hash functions.{{cite report
|author1-last=Bellare
|author1-first=Mihir
|author1-link=Mihir Bellare
|author2-last=Rogaway
|author2-first=Phillip
|author2-link=Phillip Rogaway
|title=Submission to IEEE P1393—PSS: Provably Secure Encoding Method for Digital Signatures
|date=August 1998
|url=http://grouper.ieee.org/groups/1363/P1363a/contributions/pss-submission.pdf
|archive-url=https://web.archive.org/web/20040713140300/http://grouper.ieee.org/groups/1363/P1363a/contributions/pss-submission.pdf
|archive-date=2004-07-13
|author1-last=Halevi
|author1-first=Shai
|author1-link=Shai Halevi
|author2-last=Krawczyk
|author2-first=Hugo
|title=Strengthening Digital Signatures via Randomized Hashing
|url=http://webee.technion.ac.il/~hugo/rhash/rhash.pdf
|editor-last=Dwork
|editor-first=Cynthia
|editor-link=Cynthia Dwork
|conference=Advances in Cryptology – CRYPTO 2006
|conference-url=https://link.springer.com/book/10.1007%2F11818175
|date=August 2006
|volume=4117
|series=Lecture Notes in Computer Science
|publisher=Springer
|location=Santa Barbara, CA, United States
|doi=10.1007/11818175_3
|doi-access=free
|pages=41–59
|last=Dang
|first=Quynh
|title=Randomized Hashing for Digital Signatures
|series=NIST Special Publication
|volume=800-106
|publisher=United States Department of Commerce, National Institute for Standards and Technology
|date=February 2009
|url=https://csrc.nist.gov/publications/detail/sp/800-106/final
|doi=10.6028/NIST.SP.800-106
|doi-access=free
}}
Variants
= Removing <math>b</math> =
The quantity in the public key adds no security, since any algorithm to solve congruences for given and can be trivially used as a subroutine in an algorithm to compute square roots modulo and vice versa, so implementations can safely set for simplicity; was discarded altogether in treatments after the initial proposal. After removing , the equations for and in the signing algorithm become:
\begin{align}
x_p &:= \pm \sqrt{c} \bmod p, \\
x_q &:= \pm \sqrt{c} \bmod q.
\end{align}
= Rabin-Williams =
The Rabin signature scheme was later tweaked by Williams in 1980{{cite journal
|author-last=Williams
|author-first=Hugh C.
|author-link=Hugh C. Williams
|title=A modification of the RSA public-key encryption procedure
|journal=IEEE Transactions on Information Theory
|volume=26
|issue=6
|issn=0018-9448
|pages=726–729
|url=https://cr.yp.to/bib/entries.html#1980/williams
|doi=10.1109/TIT.1980.1056264
}} to choose and , and replace a square root by a tweaked square root , with and , so that a signature instead satisfies
e f x^2 \equiv H(m, u) \pmod n,
which allows the signer to create a signature in a single trial without sacrificing security.
This variant is known as Rabin–Williams.{{cite book
|date=August 25, 2000
|publisher=Institute of Electrical and Electronics Engineers
|isbn=0-7381-1956-3
|doi=10.1109/IEEESTD.2000.92292
|title=IEEE Standard Specifications for Public-Key Cryptography
|series=IEEE Std 1363-2000
}}
= Others =
Further variants allow tradeoffs between signature size and verification speed, partial message recovery, signature compression (down to one-half size), and public key compression (down to one-third size), still without sacrificing security.
Variants without the hash function have been published in textbooks,{{cite book
|author1-last=Menezes
|author1-first=Alfred J.
|author1-link=Alfred Menezes
|author2-last=van Oorschot
|author2-first=Paul C.
|author2-link=Paul van Oorschot
|author3-last=Vanstone
|author3-first=Scott A.
|author3-link=Scott Vanstone
|title=Handbook of Applied Cryptography
|publisher=CRC Press
|date=October 1996
|isbn=0-8493-8523-7
|section=§11.3.4: The Rabin public-key signature scheme
|url=http://cacr.uwaterloo.ca/hac/about/chap11.pdf#page=15
|pages=438–442
|author1-last=Galbraith
|author1-first=Steven D.
|title=Mathematics of Public Key Cryptography
|publisher=Cambridge University Press
|year=2012
|isbn=978-1-10701392-6
|section=§24.2: The textbook Rabin cryptosystem
|pages=491–494
}} crediting Rabin for exponent 2 but not for the use of a hash function.
These variants are trivially broken—for example, the signature can be forged by anyone as a valid signature on the message if the signature verification equation is instead of .
In the original paper, the hash function was written with the notation , with C for compression, and using juxtaposition to denote concatenation of and as bit strings:
By convention, when wishing to sign a given message, , [the signer] adds as suffix a word of an agreed upon length .
The choice of is randomized each time a message is to be signed.
The signer now compresses by a hashing function to a word , so that as a binary number …
This notation has led to some confusion among some authors later who ignored the part and misunderstood to mean multiplication, giving the misapprehension of a trivially broken signature scheme.{{cite conference
|author-last1=Elia
|author-first1=Michele
|author-last2=Schipani
|author-first2=David
|title=On the Rabin signature
|conference=Workshop on Computational Security
|year=2011
|location=Centre de Recerca Matemàtica, Barcelona, Spain
|url=https://www.math.uzh.ch/fileadmin/user/davide/publikation/SignatureRabin11.pdf
}}
References
{{reflist}}
External links
- [https://cr.yp.to/sigs.html Rabin–Williams signatures at cr.yp.to]