Network Security Lecture 17 Presented by: Dr. Munam Ali Shah.

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.
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.
1 Pertemuan 08 Public Key Cryptography Matakuliah: H0242 / Keamanan Jaringan Tahun: 2006 Versi: 1.
Chapter 9 – Public Key Cryptography and RSA Private-Key Cryptography  traditional private/secret/single key cryptography uses one key  shared by both.
Public Key Cryptography RSA Diffie Hellman Key Management Based on slides by Dr. Lawrie Brown of the Australian Defence Force Academy, University College,
Cryptography and Network Security Chapter 9 5th Edition by William Stallings Lecture slides by Lawrie Brown.
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
Asymmetric encryption. Asymmetric encryption, often called "public key" encryption, allows Alice to send Bob an encrypted message without a shared secret.
Public Key Model 8. Cryptography part 2.
 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
CSCE 715: Network Systems Security Chin-Tser Huang University of South Carolina.
4 th lecture.  Message to be encrypted: HELLO  Key: XMCKL H E L L O message 7 (H) 4 (E) 11 (L) 11 (L) 14 (O) message + 23 (X) 12 (M) 2 (C) 10 (K) 11.
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.
Public-Key Encryption
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
PUBLIC-KEY CRYPTOGRAPH IT 352 : Lecture 2- part3 Najwa AlGhamdi, MSc – 2012 /1433.
PUBLIC KEY CRYPTOGRAPHY ALGORITHM Concept and Example 1IT352 | Network Security |Najwa AlGhamdi.
Cryptography and Network Security Public Key Cryptography and RSA.
Network Security Lecture 18 Presented by: Dr. Munam Ali Shah.
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.
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.
Computer Security Lecture 5 Ch.9 Public-Key Cryptography And RSA Prepared by Dr. Lamiaa Elshenawy.
Lecture 3 (Chapter 9) Public-Key Cryptography and RSA Prepared by Dr. Lamiaa M. Elshenawy 1.
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.
Visit for more Learning Resources
Lecture 5 RSA DR. Nermin Hamza.
Public Key Encryption and the RSA Algorithm
The RSA Algorithm JooSeok Song Tue.
Private-Key Cryptography
ICS 353: Design and Analysis of Algorithms
The RSA Algorithm JooSeok Song Tue.
“Public Key Cryptography” & “RSA”
NET 311 Information Security
NET 311 Information Security
Chapter -5 PUBLIC-KEY CRYPTOGRAPHY AND RSA
Introduction to Cryptography
Presentation transcript:

Network Security Lecture 17 Presented by: Dr. Munam Ali Shah

Summary of the Previous Lecture We discussed stream ciphers and its working We explored how stream ciphers are efficient when compared to block ciphers in terms of performance Some examples of stream ciphers such as RC4, RC5 and blowfish etc. were explored

Summary of the previous Lecture Stream Cipher Properties some design considerations are: long period with no repetitions statistically random depends on large enough key large linear complexity use of highly non-linear boolean functions l C i = M i XOR StreamKey i

Stream Cipher Illustration

Summary of the Previous Lecture (RC4) a proprietary cipher owned by RSA another Ron Rivest design, simple but effective variable key size (1-256 bytes) byte-oriented stream cipher widely used (web SSL/TLS, wireless WEP) key forms random permutation of all 8-bit values uses that permutation to scramble input info processed a byte at a time Remained trade secret till 1994

Part 2 (d) Asymmetric Key Cryptography

Outlines of today’s lecture We will explore the need, features and characteristics of public key cryptography The working/function of a public key cryptography scheme will be discussed in detail RSA, as an example, will be explained

Objectives You would be able to present an understanding of the public key cryptography. You would be able use and implement the RSA technique.

Different names  Public key cryptography  Asymmetric key cryptography  2 key cryptography Presented by Diffie & Hallman (1976) New directions in cryptography

Why Public-Key Cryptography? Key distribution under symmetric encryption requires Two communicants already share a key The use of Key Distribution Center (KDC) Whitfield Diffie & Martin Hellman reasoned 2 nd requirement neglected the essence of cryptography, i.e. the ability to maintain total secrecy over your own communication how to verify a message comes intact from the claimed sender?

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 also is symmetric, parties are equal hence does not protect sender from receiver forging a message & claiming is sent by sender

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

Public-Key Characteristics Public-Key algorithms rely on two keys where: it is computationally infeasible to find decryption key knowing only algorithm & encryption key it is 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

Essential steps Each user generates its pair of keys Places public key in public folder Bob encrypt the message using Alice’s public key for secure communication Alice decrypts it using her private key

Asymmetric Key Cryptography In symmetric cryptography: 1. If Alice and Bob are physically apart and communicate, they have to agree on a key  Meet personally, or  Use trusted couriers 2. Alice needs one secret key for Bob, one for Carol, one for Dave and so on  Storage of so many secret keys is not feasible

Asymmetric Key Cryptography In Asymmetric Key Cryptography: 2 people who never met can communicate securely Alice can securely communicate with all her friends by storing just a single private key 2 keys are used  Public: known to everyone (for encryption or signature verification)  Private: known to receiver only (for decryption or signature generation)

Public-Key Cryptography

1.Plaintext 2.Encryption algorithm 3.Public and private keys 4.Ciphertext 5.Decryption algorithm

Public-Key Cryptography

22 Y = E(PU b, X ) X = D(PR b, Y ) Adversary can access PU b and Y, attempt to recover X or PR b Confidentiality

23 Impossible to alter the message without access to A’s private key Authenticate the source Ensure data integrity Integrity

Authentication and Confidentiality Z = E(PUb, E(PRa, X)) X = D(PUa, E(PRb, Z)) Overhead: public key algorithm executed four times

Public-Key Applications can classify uses into 3 categories: encryption/decryption (provide secrecy) digital signatures (provide authentication) key exchange (of session keys) AlgorithmEn/decryptionDigital signature Key exchange RSAYes Elliptic curveYes Diffie HellmanNo Yes DSSNoYesNo

Requirements for Public key cryptography Computationally easy for B to generate a pair of key (public and private) for sender A, knowing the public key and the message M to generate the ciphertext C = E(PU b, M) for receiver B, to decrypt the ciphertext using its private key to recover M M = D(PR b, C) = D(PR b, E(PU b, M) ) Computationally infeasible for an adversary knowing the PU b to determine the private key PR b knowing the PU b and ciphertext C to recover M

Security of Public Key Schemes like private key schemes brute force exhaustive search attack is always theoretically possible keys used are too large (>512bits) security relies on a large enough difference in difficulty between easy (en/decrypt) and hard (cryptanalyse) problems requires the use of very large numbers hence is slow compared to private/symmetric key schemes

The RSA Algorithm by Rivest, Shamir & Adleman of MIT in 1977 best known & widely used public-key scheme Block cipher scheme: plaintext and ciphertext are integer between 0 to n-1 for some n Use large integers e.g. n = 1024 bits

RSA Key Setup each user generates a public/private key pair by: selecting two large primes at random - p, q Computing l n=p.q ø(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: PU={e,n} keep secret private decryption key: PR={d,n}

RSA Encryption / Decryption to encrypt a message M the sender: obtains public key of recipient PU={e,n} computes: C = M e mod n, where 0≤M<n to decrypt the ciphertext C the owner: uses their private key PR={d,n} computes: M = C d mod n

RSA Example - Key Setup 1. Select primes: p=17 & q=11 2. Compute n = pq =17 x 11= Compute ø(n)=(p–1)(q-1) =16 x 10=160 4.Select e : gcd(e,160)=1; choose e=7 5.Determine d : d.e=1 mod 160 and d < 160 Value is d=23 since 23x7=161 = 161 mod 160 = 1 Publish public key PU={7,187} Keep secret private key PR={23,187}

RSA Example - En/Decryption sample RSA encryption/decryption is: given message M = 88 (nb. 88<187 ) encryption: C = 88 7 mod 187 = 11 decryption: M = mod 187 = 88

Summary We have discussed public/ asymmetric key cryptography in detail We have explored how confidentiality, authentication and integrity could be achieved through public key cryptography

Next lecture topics An example of RSA algorithm was discussed. We will talk about random numbers. The design constraints for random numbers and pseudo random numbers will be explored

The End