The Elgamal Digital Signature: Define GF (P) F
The Elgamal Digital Signature: Define GF (P) F
System public key: p is a prime such that the discrete log problem in Fp is
infeasible,
Fp ,
*
User Bob: Selects x, 0 < x < p with (x, p-1) = 1 as his private key.
Compute y = x as his public key.
m = xr + ks mod p 1
i.e, s = k -1 (m xr ) mod p 1
(i.e, s
y rs = r )
Hash
x: private key
m
r
s
x r= k
Sign
(r, s)
signature
m
r
s
Hash
Verifying
y = x: public key
m = xr + ks mod p 1
(1)
Thus the security of the ElGamal digital signature algorithm is based on the
difficulty of solving discrete log problem in Fp .
y = 53 = 10
Public-key:
Signing Process:
Message m = 7 (We assume that this is the hashed value for simplicity,
i.e., h(m) = 7.)
(a) Pick a random number k = 9
(b) Compute r = 9 = 59 = 11 mod 23
m = xr + ks mod p-1
Compute:
m = 5 7 = 17
and
y r r s = 10111120 = 22 6 = 17