Digital Signature Algorithm

From Wikipedia, the free encyclopedia
Jump to: navigation, search

The Digital Signature Algorithm (DSA) is a United States Federal Government standard or FIPS for digital signatures. It was proposed by the National Institute of Standards and Technology (NIST) in August 1991 for use in their Digital Signature Standard (DSS), specified in FIPS 186,[1] adopted in 1993. A minor revision was issued in 1996 as FIPS 186-1.[2] The standard was expanded further in 2000 as FIPS 186-2 and again in 2009 as FIPS 186-3.[3]

DSA is covered by U.S. Patent 5,231,668, filed July 26, 1991, and attributed to David W. Kravitz,[4] a former NSA employee. This patent was given to "The United States of America as represented by the Secretary of Commerce, Washington, D.C." and the NIST has made this patent available worldwide royalty-free.[5] Dr. Claus P. Schnorr claims that his U.S. Patent 4,995,082 covers DSA; this claim is disputed.[6]

Contents

[edit] Key generation

Key generation has two phases. The first phase is a choice of algorithm parameters which may be shared between different users of the system:

The algorithm parameters (p, q, g) may be shared between different users of the system. The second phase computes private and public keys for a single user:

There exist efficient algorithms for computing the modular exponentiations ha mod p and gx mod p, such as exponentiation by squaring.

[edit] Signing

Let H be the hashing function and m the message:

The extended Euclidean algorithm can be used to compute the modular inverse k−1 mod q.

[edit] Verifying

DSA is similar to the ElGamal signature scheme.

[edit] Correctness of the algorithm

The signature scheme is correct in the sense that the verifier will always accept genuine signatures. This can be shown as follows:

First, if g = h(p − 1)/q mod p it follows that gqhp − 1 ≡ 1 (mod p) by Fermat's little theorem. Since g > 1 and q is prime, g must have order q.

The signer computes

s=k^{-1}(H(m)+xr) \mod{q}. \,

Thus


\begin{align}
k & \equiv H(m)s^{-1}+xrs^{-1}\\
  & \equiv H(m)w + xrw \pmod{q}.
\end{align}

Since g has order q we have


\begin{align}
g^k & \equiv g^{H(m)w}g^{xrw}\\
    & \equiv g^{H(m)w}y^{rw}\\
    & \equiv g^{u1}y^{u2} \pmod{p}.
\end{align}

Finally, the correctness of DSA follows from

r=(g^k \mod p) \mod q = (g^{u1}y^{u2} \mod p) \mod q = v.\,

[edit] See also

[edit] References

  1. ^ FIPS-186, the first version of the official DSA specification.
  2. ^ FIPS-186-1, the first revision to the official DSA specification.
  3. ^ a b FIPS-186-3, the third and current revision to the official DSA specification.
  4. ^ Dr. David W. Kravitz
  5. ^ Werner Koch. DSA and patents
  6. ^ Minutes of the Sept. 94 meeting of the Computer System Security and Privacy Advisory Board
  7. ^ NIST 800-57

[edit] External links

Personal tools
Namespaces
Variants
Actions
Navigation
Interaction
Toolbox
Print/export
Languages