Semua buku

Profesional

Aplikasi Tentang Pelatih Masuk Mulai membaca

Computer Science · Glosarium

Apa itu Digital signature, hash-then-sign, Schnorr signature?

Dikenal juga sebagai: digital signature · hash-then-sign · Schnorr signature

Definition 28.7 University Computer Science — Year 3 · Bab 28 — Public-Key Cryptography and Secure Protocols

A digital signature scheme gives a key pair; signing a message uses the private key, and anyone can check a signature with the public key; no one without the private key can produce a valid signature on a new message, even after seeing signatures on messages of its choice. Hash-then-sign signs a fixed-length hash of the message instead of the message. A Schnorr signature works in a group of prime order qq generated by gg, with a hash HH into {0,…,q−1}\{0, \ldots, q - 1\}; the private key is xx, the public key y=gxy = g^x. To sign mm: pick a fresh random nonce kk, set r=gkr = g^k, e=H(r ∥ m)e = H(r \,\|\, m), s=k+ex mod qs = k + ex \bmod q; the signature is (r,s)(r, s). To verify: check that 0≤s<q0 \le s < q and that rr is a group element, then that gs=r⋅yeg^s = r \cdot y^e with e=H(r ∥ m)e = H(r \,\|\, m).

Baca dalam konteks →