1 Pertemuan 08 Public Key Cryptography Matakuliah: H0242 / Keamanan Jaringan Tahun: 2006 Versi: 1.

Slides:



Advertisements
Similar presentations
Public Key Cryptography Nick Feamster CS 6262 Spring 2009.
Advertisements

Cryptography and Network Security Chapter 9
Public Key Algorithms …….. RAIT M. Chatterjee.
Dr. Lo’ai Tawalbeh Summer 2007 Chapter 9 – Public Key Cryptography and RSA Dr. Lo’ai Tawalbeh New York Institute of Technology (NYIT) Jordan’s Campus INCS.
Cryptography and Network Security Chapter 9 Fourth Edition by William Stallings.
Cryptography1 CPSC 3730 Cryptography Chapter 10 Key Management.
Cryptography and Network Security Chapter 9. Chapter 9 – Public Key Cryptography and RSA Every Egyptian received two names, which were known respectively.
Public Key Cryptography and the RSA Algorithm
Cryptography1 CPSC 3730 Cryptography Chapter 9 Public Key Cryptography and RSA.
CSCE 790: Computer Network Security Chin-Tser Huang University of South Carolina.
Private-Key Cryptography traditional private/secret/single key cryptography uses one key shared by both sender and receiver if this key is disclosed communications.
Dr.Saleem Al_Zoubi1 Cryptography and Network Security Third Edition by William Stallings Public Key Cryptography and RSA.
Chapter 9 – Public Key Cryptography and RSA Private-Key Cryptography  traditional private/secret/single key cryptography uses one key  shared by both.
Cryptography and Network Security Chapter 9 5th Edition by William Stallings Lecture slides by Lawrie Brown.
Cryptography and Network Security Chapter 10. Chapter 10 – Key Management; Other Public Key Cryptosystems No Singhalese, whether man or woman, would venture.
The RSA Algorithm JooSeok Song Tue.
Cryptography and Network Security Chapter 9 Fifth Edition by William Stallings Lecture slides by Lawrie Brown.
“RSA”. RSA  by Rivest, Shamir & Adleman of MIT in 1977  best known & widely used public-key scheme  RSA is a block cipher, plain & cipher text are.
Introduction to Public Key Cryptography
 Introduction  Requirements for RSA  Ingredients for RSA  RSA Algorithm  RSA Example  Problems on RSA.
Prime Numbers Prime numbers only have divisors of 1 and self
Cryptography A little number theory Public/private key cryptography –Based on slides of William Stallings and Lawrie Brown.
Public Key Cryptography and the RSA Algorithm Cryptography and Network Security by William Stallings Lecture slides by Lawrie Brown Edited by Dick Steflik.
Applied Cryptography (Public Key) RSA. Public Key Cryptography Every Egyptian received two names, which were known respectively as the true name and the.
Information Security Principles & Applications
Network Security Lecture 17 Presented by: Dr. Munam Ali Shah.
Private-Key Cryptography  traditional private/secret/single key cryptography uses one key  shared by both sender and receiver  if this key is disclosed.
Public Key Cryptography and RSA” Dr. Monther Aldwairi New York Institute of Technology- Amman Campus 11/9/2009 INCS 741: Cryptography 11/9/20091Dr. Monther.
Private-Key Cryptography  traditional private/secret/single key cryptography uses one key  shared by both sender and receiver  if this key is disclosed.
Cryptography and Network Security (CS435) Part Eight (Key Management)
CSCE 715: Network Systems Security Chin-Tser Huang University of South Carolina.
Public Key Cryptography. symmetric key crypto requires sender, receiver know shared secret key Q: how to agree on key in first place (particularly if.
1 Public-Key Cryptography and Message Authentication.
Computer and Network Security Rabie A. Ramadan Lecture 6.
Cryptography and Network Security Chapter 9 - Public-Key Cryptography
CSCE 715: Network Systems Security Chin-Tser Huang University of South Carolina.
PUBLIC-KEY CRYPTOGRAPH IT 352 : Lecture 2- part3 Najwa AlGhamdi, MSc – 2012 /1433.
Chapter 3 (B) – Key Management; Other Public Key Cryptosystems.
Cryptography and Network Security Public Key Cryptography and RSA.
Cryptography and Network Security Chapter 9 Fourth Edition by William Stallings Lecture slides by Lawrie Brown.
Chapter 3 – Public Key Cryptography and RSA (A). Private-Key Cryptography traditional private/secret/single-key cryptography uses one key shared by both.
Chapter 9 Public Key Cryptography and RSA. Private-Key Cryptography traditional private/secret/single key cryptography uses one key shared by both sender.
1 Chapter 10: Key Management in Public key cryptosystems Fourth Edition by William Stallings Lecture slides by Lawrie Brown (Modified by Prof. M. Singhal,
Fall 2002CS 395: Computer Security1 Chapter 9: Public Key Cryptography.
Cryptography and Network Security Chapter 9 Fourth Edition by William Stallings Lecture slides by Lawrie Brown.
Cryptography and Network Security Chapter 9 Fourth Edition by William Stallings.
Cryptography and Network Security Third Edition by William Stallings Lecture slides by Lawrie Brown.
Cryptography and Network Security Chapter 10 Fourth Edition by William Stallings Lecture slides by Lawrie Brown.
Diffie-Hellman Key Exchange first public-key type scheme proposed by Diffie & Hellman in 1976 along with the exposition of public key concepts – note:
By Marwan Al-Namari & Hafezah Ben Othman Author: William Stallings College of Computer Science at Al-Qunfudah Umm Al-Qura University, KSA, Makkah 1.
Chapter 9 – Public Key Cryptography and RSA Every Egyptian received two names, which were known respectively as the true name and the good name, or the.
CSCE 715: Network Systems Security Chin-Tser Huang University of South Carolina.
CIM PKI011 Public-key Encryption and Hash Functions Cryptography and Network Security Third Edition by William Stallings Modified from lecture slides.
CSEN 1001 Computer and Network Security Amr El Mougy Mouaz ElAbsawi.
Cryptography and Network Security Chapter 9 Fifth Edition by William Stallings Lecture slides by Lawrie Brown.
Lecture 5 Asymmetric Cryptography. Private-Key Cryptography Traditional private/secret/single key cryptography uses one key Shared by both sender and.
Asymmetric Encryption
Visit for more Learning Resources
Lecture 5 RSA DR. Nermin Hamza.
G. Pullaiah College of Engineering and Technology
Cryptography and Network Security
Chapter 9 – Public Key Cryptography and RSA
Public Key Cryptography and the RSA Algorithm
RSA Algorithm Cryptography and Network Security by William Stallings
The RSA Algorithm JooSeok Song Tue.
Private-Key Cryptography
ICS 353: Design and Analysis of Algorithms
The RSA Algorithm JooSeok Song Tue.
Cryptography and Network Security
Chapter -5 PUBLIC-KEY CRYPTOGRAPHY AND RSA
Presentation transcript:

1 Pertemuan 08 Public Key Cryptography Matakuliah: H0242 / Keamanan Jaringan Tahun: 2006 Versi: 1

2 Learning Outcomes Pada akhir pertemuan ini, diharapkan mahasiswa akan mampu : –Mahasiswa dapat menjelaskan Public key Cryptography

3 Outline Materi Prinsip Kriptografi public - key Algoritma RSA Key Management

4 Private-Key Cryptography Traditional private/secret/single key cryptography uses one key shared by both sender and receiver If this key is disclosed communications are compromised Is symmetric, parties are equal hence does not protect sender from receiver forging a message & claiming is sent by sender

5 Public-Key Cryptography Probably most significant advance in the 3000 year history of cryptography Uses two keys – a public & a private key Asymmetric since parties are not equal Uses clever application of number theoretic concepts to function Complements rather than replaces private key crypto

6 Public-Key Cryptography Public-key/two-key/asymmetric cryptography involves the use of two keys: –Public-key, which may be known by anybody, and can be used to encrypt messages, and verify signatures –Private-key, known only to the recipient, used to decrypt messages, and sign (create) signatures –Asymmetric because those who encrypt messages or verify signatures cannot decrypt messages or create signatures

7 Public-Key Cryptography

8 Developed to address two key issues: –key distribution – how to have secure communications in general without having to trust a KDC with your key –digital signatures – how to verify a message comes intact from the claimed sender Public invention due to Whitfield Diffie & Martin Hellman at Stanford Uni in 1976 Known earlier in classified community

9 Public-Key Characteristics Public-Key algorithms rely on two keys with the characteristics that it is: –Computationally infeasible to find decryption key knowing only algorithm & encryption key –Computationally easy to en/decrypt messages when the relevant (en/decrypt) key is known –Either of the two related keys can be used for encryption, with the other used for decryption (in some schemes)

10 Public-Key Cryptosystems

11 Public-Key Applications Can classify uses into 3 categories: –Encryption/decryption (provide secrecy) –Digital signatures (provide authentication) –Key exchange (of session keys) Some algorithms are suitable for all uses, others are specific to one

12 Security of Public Key Like private key schemes brute force exhaustive search attack is always theoretically possible, but keys used are too large (>512bits) Security relies on a large enough difference in difficulty between easy (en/decrypt) and hard (cryptanalyse) problems More generally the hard problem is known, its just made too hard to do in practise Requires the use of very large numbers; hence, is slow compared to private key schemes

13 RSA By Rivest, Shamir & Adleman of MIT in 1977 Best known & widely used public-key scheme Based on exponentiation in a finite (Galois) field over integers modulo a prime –Number of exponentiation takes O((log n) 3 ) operations (easy) Uses large integers (eg bits) Security due to cost of factoring large numbers –Number of factorization takes O(e log n log log n ) operations (hard)

14 RSA Key Setup Each user generates a public/private key pair by: selecting two large primes at random - p, q Computing their system modulus N=p.q –note ø(N)=(p-1)(q-1) Selecting at random the encryption key e where 1<e<ø(N), gcd(e,ø(N))=1 Solve following equation to find decryption key d –e.d=1 mod ø(N) and 0≤d≤N Publish their public encryption key: KU={e,N} Keep secret private decryption key: KR={d,p,q}

15 RSA Use To encrypt a message M the sender: –obtains public key of recipient KU={e,N} –computes: C=M e mod N, where 0≤M<N To decrypt the ciphertext C the owner: – uses their private key KR={d,p,q} –computes: M=C d mod N Note that the message M must be smaller than the modulus N (block if needed)

16 RSA Key Generation Users of RSA must: –Determine two primes at random - p, q –Select either e or d and compute the other Primes p,q must not be easily derived from modulus N=p.q –Means must be sufficiently large –Typically guess and use probabilistic test Exponents e, d are inverses, so use Inverse algorithm to compute the other

17 RSA Security Three approaches to attacking RSA: –Brute force key search (infeasible given size of numbers) –Mathematical attacks (based on difficulty of computing ø(N), by factoring modulus N) –Timing attacks (on running of decryption)

18 Key Management Public-key encryption helps address key distribution problems, have two aspects of this: –Distribution of public keys –Use of public-key encryption to distribute secret keys

19 Distribution of Public Keys Can be considered as using one of: –Public announcement –Publicly available directory –Public-key authority –Public-key certificates

20 Diffie-Hellman Key Exchange First public-key type scheme proposed By Diffie & Hellman in 1976 along with the exposition of public key concepts –note: now know that James Ellis (UK CESG) secretly proposed the concept in 1970 Is a practical method for public exchange of a secret key Used in a number of commercial products

21 Diffie-Hellman Key Exchange Public-key distribution scheme –Cannot be used to exchange an arbitrary message; rather, it can establish a common key known only to the two participants Value of key depends on the participants (and their private and public key information) Based on exponentiation in a finite (Galois) field (modulo a prime or a polynomial) - easy Security relies on the difficulty of computing discrete logarithms (similar to factoring) – hard

22 Diffie-Hellman Key Exchange Shared session key for users A & B is K AB : K AB = α x A. x B mod q = y A x B mod q (which B can compute) = y B x A mod q (which A can compute) K AB is used as session key in private-key encryption scheme between Alice and Bob If Alice and Bob subsequently communicate, they will have the same key as before, unless they choose new public-keys Attacker needs an x, must solve discrete log