Lecture#10: Digital Signature Standard-DSS/DSA
Lecture#10: Digital Signature Standard-DSS/DSA
Lecture#10: Digital Signature Standard-DSS/DSA
Lecture#10
Digital Signature Standard- DSS/DSA
Course: Cryptography & Network Security (CE-408)
Course Teacher: Ms. Rukaiya
Contact Info:
Email: rukaiya@ssuet.edu.pk
1
© 2020 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Digital Signature Properties
•C chooses a Directed
Known list of chosen •C may
message messages message request
attack before attack from A
attempting to signatures
•C only •Similar to the
•C is given break A’s of messages
knows A’s generic attack,
access to a signature that depend
public except that the
set of scheme, on
key list of
messages independent previously
messages to be
and their of A’s public obtained
signed is
Key-only signatures key; C then message-
chosen after C
attack obtains from signature
knows A’s
A valid pairs
public key but
signatures for before any
the chosen signatures are Adaptive
messages seen chosen
Generic message
chosen attack
message
attack
Confidentiality can be
Refers to a digital The validity of the
provided by encrypting
signature scheme that scheme depends on the
the entire message plus
involves only the security of the sender’s
signature with a shared
communicating parties private key
secret key
PR a PU a Compare
H E D
E(PRa, H(M)]
M || M H
PU G PR a s PU G PU
a
r
PUG = Global Public key Seperate form each user ′ s public key
K =Pearson
© 2020 secret key (per
Education, Inc.,message)-
Hoboken, NJ. random number generated for particular signature
All rights reserved.
Digital Signature Algorithm
• Parts of Algorithm
Generation of public and private key
Generation of Signature
Verification of Signature
There are three parameters that are public and can be common
to a group of users
1. Choose a prime number q (random 160 bits), called a
prime divisor
• Compute 𝛍𝟏 = 𝐇 𝐌 ′ ∗ 𝐰 𝐦𝐨𝐝 𝐪
• Compute 𝛍𝟐 = 𝒓′ ∗ 𝐰 𝐦𝐨𝐝 𝐪
• Compute 𝛝 = [𝒈𝝁𝟏 𝒚𝝁𝟐 𝐦𝐨𝐝 𝐩] mod q
• If 𝛝 = r then signature is valid
p q g
M
k k
r = (gk mod p) mod q
k
H s = [k–1 (H(M) + xr)] mod q
r
H(M)
x
x x s
(a) Signing
y q g
u1 = [H(M')w)] mod q
H H(M')
u2 = (r')w mod q
v = [(gu1yu2) mod p] mod q
M'
w r' v
r' signature
q verification
r' = v?
r'
w = (s')–1 mod q
s'
(b) Verifying
1. Suppose k =2
r=4
3. Compute s= 𝒊 ∗ 𝒉 + 𝒓𝒙 𝒎𝒐𝒅 𝒒
= 12 * (2+(4)(10)) mod 23
= 12 (42) mod 23
S =21
W =11
• Compute 𝛍𝟏 = 𝐇 𝐌 ′ ∗ 𝐰 𝐦𝐨𝐝 𝐪
= [𝟐 ∗ 𝟏𝟏] 𝐦𝐨𝐝 𝟐𝟑
𝛍𝟏 = 22
• Compute 𝛍𝟐 = 𝒓′ ∗ 𝐰 𝐦𝐨𝐝 𝐪
= 4*11 mod 23
𝛍𝟐 = 21
𝛝 = 4 mod 23