DSA week 161 XML Data and Schemas DSA Week 16. DSA week 162 News Bloglines wall of images –//.
Dsa & Digi Cert
-
Upload
ram-dutt-shukla -
Category
Education
-
view
862 -
download
1
description
Transcript of Dsa & Digi Cert
![Page 1: Dsa & Digi Cert](https://reader034.fdocuments.in/reader034/viewer/2022042505/55838f93d8b42a282c8b50bf/html5/thumbnails/1.jpg)
Presentation On
Digital Signature Algorithm
![Page 2: Dsa & Digi Cert](https://reader034.fdocuments.in/reader034/viewer/2022042505/55838f93d8b42a282c8b50bf/html5/thumbnails/2.jpg)
DIGITAL SIGNATURES
The most important development from the work on public key cryptography is Digital Signature.The Digital Signature provides a set of security capabilities that would be difficult to implement in any other way.
![Page 3: Dsa & Digi Cert](https://reader034.fdocuments.in/reader034/viewer/2022042505/55838f93d8b42a282c8b50bf/html5/thumbnails/3.jpg)
OUR REQUIREMENTS
• When two parties exchange message there is not complete trust between sender and receiver, something more than authentication is needed.
• The most attractive solution to this problem is Digital Signature.
• The Digital Signature is analogous to the handwritten signature.
![Page 4: Dsa & Digi Cert](https://reader034.fdocuments.in/reader034/viewer/2022042505/55838f93d8b42a282c8b50bf/html5/thumbnails/4.jpg)
•It must verify the author and the date and time of signature.
•It must authenticate the contents at the time of the signature.
•It must verifiable by third parties, to resolve disputes.
It must have the following properties
![Page 5: Dsa & Digi Cert](https://reader034.fdocuments.in/reader034/viewer/2022042505/55838f93d8b42a282c8b50bf/html5/thumbnails/5.jpg)
Properties (Contd..)
• The signature must be a bit pattern that depends on the message being signed.
• The signature must use some information unique to the sender, to prevent both forgery and denial.
• It must be relatively easy to produce the digital signature.
![Page 6: Dsa & Digi Cert](https://reader034.fdocuments.in/reader034/viewer/2022042505/55838f93d8b42a282c8b50bf/html5/thumbnails/6.jpg)
Properties (Contd..)
• It must be relatively easy to recognize and verify the digital signature.
• It must be computationally infeasible to forge a digital signature , either by constructing a new message for an existing digital signature.
• It must be practical to retain a copy of the digital signature in store.
![Page 7: Dsa & Digi Cert](https://reader034.fdocuments.in/reader034/viewer/2022042505/55838f93d8b42a282c8b50bf/html5/thumbnails/7.jpg)
Types of Digital Signature:
• #Direct Digital Signature:• The direct digital signature involves only the
communicating parties (source,destination).• The destination knows public-key(assume) of
the source.• DS may be formed by encrypting the message
with the sender`s private key.• DS may also be formed by encrypting the HASH
of message by shared secret keys
![Page 8: Dsa & Digi Cert](https://reader034.fdocuments.in/reader034/viewer/2022042505/55838f93d8b42a282c8b50bf/html5/thumbnails/8.jpg)
![Page 9: Dsa & Digi Cert](https://reader034.fdocuments.in/reader034/viewer/2022042505/55838f93d8b42a282c8b50bf/html5/thumbnails/9.jpg)
![Page 10: Dsa & Digi Cert](https://reader034.fdocuments.in/reader034/viewer/2022042505/55838f93d8b42a282c8b50bf/html5/thumbnails/10.jpg)
# Arbitrated Digital Signature:
• Every signed message goes first to an arbiter A, who subjects the message and its signature to a number of tests to check its origin and content.
• The message then dated and send to recipient with an indication that it has verified to the satisfaction of the arbiter.
![Page 11: Dsa & Digi Cert](https://reader034.fdocuments.in/reader034/viewer/2022042505/55838f93d8b42a282c8b50bf/html5/thumbnails/11.jpg)
(a) Conventional Encryption,Arbiter Sees Message(1)X-> A : M || EKxa [ IDx || H(M)]
(2) A->Y : EKay [ ID x || M || EKxa [IDx || H(M) || T ]
(b) Conventional Encryption, Arbiter Does Not See Message
(1)X -> A : IDx || EKxy [M] ||EKxa [ IDx || H(EKxy [M] ) ] || T ]
(2) A->Y:EKay[ IDX || EKxy [M] || EKxa [IDX || H(EKxy[M])] ||T]
(c)Public Key Encryption, Arbiter Does Not See Message
(1)X -> A : IDx || EKRx [Idx || EKUy(EKRx[M])]
(2) A -> Y : EKRa [ IDx || EKUy [EKRx [M]] || T]
![Page 12: Dsa & Digi Cert](https://reader034.fdocuments.in/reader034/viewer/2022042505/55838f93d8b42a282c8b50bf/html5/thumbnails/12.jpg)
Function Of Signature
• # Evidence :• Signature identifies the signer with the signed
document.• # Approval :• Signature expresses the signer`s approval to the
content.• # Documents Authentication :• Signature provides what is signed so that the
contents can not be falsified without detection.
![Page 13: Dsa & Digi Cert](https://reader034.fdocuments.in/reader034/viewer/2022042505/55838f93d8b42a282c8b50bf/html5/thumbnails/13.jpg)
M
| |
H E
M
H
D
Compare
KRa
RSA Approach
KUa
E[H[M]]
![Page 14: Dsa & Digi Cert](https://reader034.fdocuments.in/reader034/viewer/2022042505/55838f93d8b42a282c8b50bf/html5/thumbnails/14.jpg)
M
H Sig
||
M
H
Ver
k
sr
Compare
KUg KRa
DSS Approach
KUg KUa
![Page 15: Dsa & Digi Cert](https://reader034.fdocuments.in/reader034/viewer/2022042505/55838f93d8b42a282c8b50bf/html5/thumbnails/15.jpg)
Global Public Key Components
p = Prime number where 2L-1< p <2L for 512<=L<=1024 and L is multiple of 64 bits i.e. bit length of between 512 and 1024 in increment of 64 bits
q = Prime divisor of (p-1) where 2159< q < 2160 i.e. bit length of 160 bits
g = h(p-1)/q mod p: Where h is any integer with 1< h < (p-1) and g>1
![Page 16: Dsa & Digi Cert](https://reader034.fdocuments.in/reader034/viewer/2022042505/55838f93d8b42a282c8b50bf/html5/thumbnails/16.jpg)
User’s Private Key
k = Random or pseudorandom integer with 0< k < q
x = Random or pseudorandom integer with 0 < x < q
User’s Public Keyy = gx mod p
User’s Per Message Secret Number
![Page 17: Dsa & Digi Cert](https://reader034.fdocuments.in/reader034/viewer/2022042505/55838f93d8b42a282c8b50bf/html5/thumbnails/17.jpg)
Singing in DSS
f2
MH
f1
x q
P q g
r
s
k
![Page 18: Dsa & Digi Cert](https://reader034.fdocuments.in/reader034/viewer/2022042505/55838f93d8b42a282c8b50bf/html5/thumbnails/18.jpg)
Signing
• r = (gk mod p) mod q
• s = [k-1 (H(M)+ xr)] mod q
• Signature = (r,s)
![Page 19: Dsa & Digi Cert](https://reader034.fdocuments.in/reader034/viewer/2022042505/55838f93d8b42a282c8b50bf/html5/thumbnails/19.jpg)
Verifying in DSS
M’
s’
r’
H
f4
f3
y q g
q
v
Compare
![Page 20: Dsa & Digi Cert](https://reader034.fdocuments.in/reader034/viewer/2022042505/55838f93d8b42a282c8b50bf/html5/thumbnails/20.jpg)
Verifying• w = (sr)-1 mod q
• u1 = [ H(M’) w ] mod q
• u2 = (r’) w mod q
• v = [ (gu1 yu2) mod p ] mod q
• Test :-> v = r’
M = Message to be Signed
H(M) = Hash of M using SHA-1
M’ , s’ , r’ = Received version of M , s , r
![Page 21: Dsa & Digi Cert](https://reader034.fdocuments.in/reader034/viewer/2022042505/55838f93d8b42a282c8b50bf/html5/thumbnails/21.jpg)
X.509 Authentication service
![Page 22: Dsa & Digi Cert](https://reader034.fdocuments.in/reader034/viewer/2022042505/55838f93d8b42a282c8b50bf/html5/thumbnails/22.jpg)
X.509 Authentication Service
• part of CCITT X.500 directory service standards– distributed servers maintaining user info database
• defines framework for authentication services – directory may store public-key certificates– with public key of user signed by certification authority
• also defines authentication protocols • uses public-key crypto & digital signatures
– algorithms not standardised, but RSA recommended
• X.509 certificates are widely used
![Page 23: Dsa & Digi Cert](https://reader034.fdocuments.in/reader034/viewer/2022042505/55838f93d8b42a282c8b50bf/html5/thumbnails/23.jpg)
X.509 Certificates
• issued by a Certification Authority (CA), containing: – version (1, 2, or 3) – serial number (unique within CA) identifying certificate – signature algorithm identifier – issuer X.500 name (CA) – period of validity (from - to dates) – subject X.500 name (name of owner) – subject public-key info (algorithm, parameters, key) – issuer unique identifier (v2+) – subject unique identifier (v2+) – extension fields (v3) – signature (of hash of all fields in certificate)
• notation CA<<A>> denotes certificate for A signed by CA
![Page 24: Dsa & Digi Cert](https://reader034.fdocuments.in/reader034/viewer/2022042505/55838f93d8b42a282c8b50bf/html5/thumbnails/24.jpg)
X.509 Certificates
![Page 25: Dsa & Digi Cert](https://reader034.fdocuments.in/reader034/viewer/2022042505/55838f93d8b42a282c8b50bf/html5/thumbnails/25.jpg)
Obtaining a Certificate
• any user with access to CA can get any certificate from it
• only the CA can modify a certificate
• because cannot be forged, certificates can be placed in a public directory
![Page 26: Dsa & Digi Cert](https://reader034.fdocuments.in/reader034/viewer/2022042505/55838f93d8b42a282c8b50bf/html5/thumbnails/26.jpg)
CA Hierarchy
• if both users share a common CA then they are assumed to know its public key
• otherwise CA's must form a hierarchy • use certificates linking members of hierarchy to
validate other CA's – each CA has certificates for clients (forward) and
parent (backward)
• each client trusts parents certificates • enable verification of any certificate from one CA
by users of all other CAs in hierarchy
![Page 27: Dsa & Digi Cert](https://reader034.fdocuments.in/reader034/viewer/2022042505/55838f93d8b42a282c8b50bf/html5/thumbnails/27.jpg)
CA Hierarchy Use
![Page 28: Dsa & Digi Cert](https://reader034.fdocuments.in/reader034/viewer/2022042505/55838f93d8b42a282c8b50bf/html5/thumbnails/28.jpg)
Certificate Revocation
• certificates have a period of validity• may need to revoke before expiry, eg:
1. user's private key is compromised2. user is no longer certified by this CA3. CA's certificate is compromised
• CA’s maintain list of revoked certificates– the Certificate Revocation List (CRL)
• users should check certificates with CA’s CRL
![Page 29: Dsa & Digi Cert](https://reader034.fdocuments.in/reader034/viewer/2022042505/55838f93d8b42a282c8b50bf/html5/thumbnails/29.jpg)
Authentication Procedures
• X.509 includes three alternative authentication procedures:
• One-Way Authentication
• Two-Way Authentication
• Three-Way Authentication
• all use public-key signatures
![Page 30: Dsa & Digi Cert](https://reader034.fdocuments.in/reader034/viewer/2022042505/55838f93d8b42a282c8b50bf/html5/thumbnails/30.jpg)
One-Way Authentication
• 1 message ( A->B) used to establish – the identity of A and that message is from A – message was intended for B – integrity & originality of message
• message must include timestamp, nonce, B's identity and is signed by A
• may include additional info for B– eg session key
![Page 31: Dsa & Digi Cert](https://reader034.fdocuments.in/reader034/viewer/2022042505/55838f93d8b42a282c8b50bf/html5/thumbnails/31.jpg)
Two-Way Authentication
• 2 messages (A->B, B->A) which also establishes in addition:– the identity of B and that reply is from B – that reply is intended for A – integrity & originality of reply
• reply includes original nonce from A, also timestamp and nonce from B
• may include additional info for A
![Page 32: Dsa & Digi Cert](https://reader034.fdocuments.in/reader034/viewer/2022042505/55838f93d8b42a282c8b50bf/html5/thumbnails/32.jpg)
Three-Way Authentication
• 3 messages (A->B, B->A, A->B) which enables above authentication without synchronized clocks
• has reply from A back to B containing signed copy of nonce from B
• means that timestamps need not be checked or relied upon
![Page 33: Dsa & Digi Cert](https://reader034.fdocuments.in/reader034/viewer/2022042505/55838f93d8b42a282c8b50bf/html5/thumbnails/33.jpg)
X.509 Version 3
• has been recognised that additional information is needed in a certificate – email/URL, policy details, usage constraints
• rather than explicitly naming new fields defined a general extension method
• extensions consist of:– extension identifier– criticality indicator– extension value
![Page 34: Dsa & Digi Cert](https://reader034.fdocuments.in/reader034/viewer/2022042505/55838f93d8b42a282c8b50bf/html5/thumbnails/34.jpg)
Certificate Extensions
• key and policy information– convey info about subject & issuer keys, plus
indicators of certificate policy
• certificate subject and issuer attributes– support alternative names, in alternative
formats for certificate subject and/or issuer
• certificate path constraints– allow constraints on use of certificates by
other CA’s