30.1 Chapter 30 Cryptography Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Slides:



Advertisements
Similar presentations
Using Cryptography to Secure Information. Overview Introduction to Cryptography Using Symmetric Encryption Using Hash Functions Using Public Key Encryption.
Advertisements

30.1 Chapter 30 Cryptography Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
CS 483 – SD SECTION BY DR. DANIYAL ALGHAZZAWI (3) Information Security.
Rachana Y. Patil 1 Data Encryption Standard (DES) (DES)
Data Encryption Standard (DES)
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 29 Cryptography and Network.
McGraw-Hill©The McGraw-Hill Companies, Inc., Security PART VII.
EECC694 - Shaaban #1 lec #16 Spring Properties of Secure Network Communication Secrecy: Only the sender and intended receiver should be able.
ICS 454: Principles of Cryptography
Introduction to Symmetric Block Cipher Jing Deng Based on Prof. Rick Han’s Lecture Slides Dr. Andreas Steffen’s Security Tutorial.
Lecture 23 Symmetric Encryption
Chapter 13: Electronic Commerce and Information Security Invitation to Computer Science, C++ Version, Fourth Edition SP09: Contains security section (13.4)
Network Security Chapter
CSE 651: Introduction to Network Security
Chapter 8.  Cryptography is the science of keeping information secure in terms of confidentiality and integrity.  Cryptography is also referred to as.
Data Encryption Standard (DES). Symmetric Cryptography  C = E(P,K)  P = D(C,K)  Requirements  Given C, the only way to obtain P should be with  the.
The Digital Encryption Standard CSCI 5857: Encoding and Encryption.
SYMPATRIC ENCRYPTION L.Tahani Al jehani. Introduction  Definition  Cryptography, a word with Greek origins, means “secret writing”.  It refers to the.
3.1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 3 Traditional Symmetric-Key Ciphers.
3.1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 3 Traditional Symmetric-Key Ciphers.
Chapter 12 Cryptography (slides edited by Erin Chambers)
A Cryptography Education Tool Anna Yu Department of Computer Science College of Engineering North Carolina A&T State University June 18, 2009.
Dr. Khalid A. Kaabneh Amman Arab University
3.1 SERVICES AND MECHANISMS SERVICES AND MECHANISMS The International Telecommunication Union- Telecommunication Standardization Section (ITU-T) provides.
CSCI 5857: Encoding and Encryption
5.1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 5 Introduction to Modern Symmetric-key Ciphers.
Cryptography Data communications and networks Momina Tariq: Ambreen Sohail: Data Communications and Networks.
Chapter 20 Symmetric Encryption and Message Confidentiality.
Dr. L. Christofi1 Local & Metropolitan Area Networks ACOE322 Lecture 8 Network Security.
Cryptography, Authentication and Digital Signatures
Day 18. Concepts Plaintext: the original message Ciphertext: the transformed message Encryption: transformation of plaintext into ciphertext Decryption:
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Security PART VII.
Midterm Review Cryptography & Network Security
Chapter 20 Symmetric Encryption and Message Confidentiality.
Chapter 31 Cryptography And Network Security Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Symmetric-Key Cryptography
McGraw-Hill©The McGraw-Hill Companies, Inc., 2003 Chapter 19 Data Encryption.
Lecture 3 Page 1 Advanced Network Security Review of Cryptography Advanced Network Security Peter Reiher August, 2014.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Security.
Traditional Symmetric-Key Ciphers
1 University of Palestine Information Security Principles ITGD 2202 Ms. Eman Alajrami 2 nd Semester
30.1 Chapter 30 Cryptography Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Introduction to Modern Symmetric-key Ciphers
Le Trong Ngoc Security Fundamentals (2) Encryption mechanisms 4/2011.
24-Nov-15Security Cryptography Cryptography is the science and art of transforming messages to make them secure and immune to attacks. It involves plaintext,
Lecture 23 Symmetric Encryption
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Security PART VII.
K. Salah1 Cryptography Module I. K. Salah2 Cryptographic Protocols  Messages should be transmitted to destination  Only the recipient should see it.
DATA & COMPUTER SECURITY (CSNB414) MODULE 3 MODERN SYMMETRIC ENCRYPTION.
5.1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 5 Introduction to Modern Symmetric-key Ciphers.
Invitation to Computer Science 5 th Edition Chapter 8 Information Security.
Module :MA3036NI Symmetric Encryption -3 Lecture Week 4.
Block Ciphers and the Data Encryption Standard. Modern Block Ciphers  One of the most widely used types of cryptographic algorithms  Used in symmetric.
CPIT 425 Chapter Three: Symmetric Key Cryptography.
Information and Network Security Lecture 2 Dr. Hadi AL Saadi.
Computer Security By Rubel Biswas. Introduction History Terms & Definitions Symmetric and Asymmetric Attacks on Cryptosystems Outline.
CS480 Cryptography and Information Security Huiping Guo Department of Computer Science California State University, Los Angeles 4. Traditional and Modern.
3.1 Chapter 3 Traditional Symmetric-Key Ciphers Part2.
Lecture 4 Data Encryption Standard (DES) Dr. Nermin Hamza
CRYPTOGRAPHY G REEK WORD MEANING “ SECRET WRITING ”
Topics discussed in this section: 30-2 SYMMETRIC-KEY CRYPTOGRAPHY Symmetric-key cryptography started thousands of years ago when people needed.
Chapter-2 Classical Encryption Techniques.
Chapter 30 Cryptography Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
NET 311 Information Security
PART VII Security.
Chapter 29 Cryptography and Network Security
Traditional Symmetric-Key Ciphers
Presentation transcript:

30.1 Chapter 30 Cryptography Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

30.2 Figure 30.1 Cryptography components

30.3 Figure 30.2 Categories of cryptography

30.4 Figure 30.3 Symmetric-key cryptography

30.5 In symmetric-key cryptography, the same key is used by the sender (for encryption) and the receiver (for decryption). The key is shared. Note

30.6 Figure 30.4 Asymmetric-key cryptography

30.7 Figure 30.5 Keys used in cryptography

30.8 Figure 30.6 Comparison between two categories of cryptography

SYMMETRIC-KEY CRYPTOGRAPHY Symmetric-key cryptography started thousands of years ago when people needed to exchange secrets (for example, in a war). We still mainly use symmetric-key cryptography in our network security.

30.10 Ciphers 1.Traditional 2.Simple Modern 3.Modern Round

30.11 Traditional Ciphers

30.12 Traditional Ciphers 1.Substitution Cipher 2.Transposition Cipher

30.13 Substitution Ciphers 1.Monoalphabetic Cipher 2.Polyalphabetic Cipher

30.14 A substitution cipher replaces one symbol with another. Note

30.15 Monoalphabetic Cipher 1.A character (or a symbol) in the plaintext is always changed to the same character (or symbol) in the ciphertext regardless of its position in the text. 2.For example, if the algorithm says that character A in the plaintext is changed to character D, every character A is changed to character D. 3.Relationship between characters in the plaintext and the ciphertext is a one-to-one relationship.

30.16 Polyalphabetic Cipher 1.Each occurrence of a character can have a different substitute. 2.The relationship between a character in the plaintext to a character in the ciphertext is a one-to-many relationship. 3.For example, character A could be changed to D in the beginning of the text, but it could be changed to N at the middle.

30.17 The following shows a plaintext and its corresponding ciphertext. Is the cipher monoalphabetic? Example 30.1 Solution The cipher is probably monoalphabetic because both occurrences of L’s are encrypted as O’s.

30.18 The following shows a plaintext and its corresponding ciphertext. Is the cipher monoalphabetic? Example 30.2 Solution The cipher is not monoalphabetic because each occurrence of L is encrypted by a different character. The first L is encrypted as N; the second as Z.

30.19 The shift cipher is sometimes referred to as the Caesar cipher. Note

30.20 Use the shift cipher with key = 15 to encrypt the message “HELLO.” Solution We encrypt one character at a time. Each character is shifted 15 characters down. Letter H is encrypted to W. Letter E is encrypted to T. The first L is encrypted to A. The second L is also encrypted to A. And O is encrypted to D. The cipher text is WTAAD. Example 30.3

30.21 Use the shift cipher with key = 15 to decrypt the message “WTAAD.” Solution We decrypt one character at a time. Each character is shifted 15 characters up. Letter W is decrypted to H. Letter T is decrypted to E. The first A is decrypted to L. The second A is decrypted to L. And, finally, D is decrypted to O. The plaintext is HELLO. Example 30.4

30.22 A transposition cipher reorders symbols in a block of symbols. Note

30.23 Transposition cipher

30.24 Encrypt the message “HELLO MY DEAR,” using the key shown in Figure Solution We first remove the spaces in the message. We then divide the text into blocks of four characters. We add a bogus character Z at the end of the third block. The result is HELL OMYD EARZ. We create a three-block ciphertext ELHLMDOYAZER. Example 30.5

30.25 Using Example 30.5, decrypt the message “ELHLMDOYAZER”. Solution The result is HELL OMYD EARZ. After removing the bogus character and combining the characters, we get the original message “HELLO MY DEAR.” Example 30.6

30.26 Modern Ciphers With the advent of the computer, ciphers need to be bit-oriented. This is so because the information to be encrypted is not just text; it can also consist of numbers, graphics, audio, and video data. It is convenient to convert these types of data into a stream of bits, encrypt the stream, and then send the encrypted stream.

30.27 Simple Modern Ciphers 1.XOR Cipher 2.Rotation Cipher 3.Substitution Cipher: S-box 4.Transposition Cipher: P-box

30.28 XOR cipher 1.An XOR operation needs two data inputs plaintext, as the first and a key as the second. 2.One of the inputs is the block to be the encrypted, the other input is a key; the result is the encrypted block. 3.Size of the key, the plaintext, and the ciphertext are all the same.

30.29 Rotation cipher 1.If the length of the original stream is N, after N rotations, we get the original input stream. 2.It is useless to apply more than N - 1 rotations. In other words, the number of rotations must be between 1 and N- 1.

30.30 S-box: Substitution Box Substitution Cipher

30.31 Transposition Cipher: P-box Ciphers 1.Straight Permutation 2.Expansion Permutation 3.Compression Permutation

30.32 P-boxes: straight, expansion, and compression

30.33 Modern Round Ciphers 1.The ciphers of today are called round ciphers because they involve multiple rounds, where each round is a complex cipher made up of the simple ciphers. 2.The key used in each round is a subset or variation of the general key called the round key. 3.If the cipher has N rounds, a key generator produces N keys, Kb Kz,..., KN, where K1 is used in round 1, K2 in round 2, and so on. 4.DES and AES ciphers are referred to as block ciphers because they divide the plaintext into blocks and use the same key to encrypt and decrypt the blocks.

30.34 Modern Round Ciphers 1.DES: Data Encryption Standard 2.AES: Advanced Encryption Standard

30.35 DES DES was designed by IBM and adopted by the U.S. government as the standard encryption method

30.36 DES

30.37 DES 1.DES has two transposition blocks (P-boxes) and 16 complex round ciphers (they are repeated) iteration round ciphers are conceptually the same, each uses a different key derived from the original key. 3.Initial and final permutations are keyless straight permutations that are the inverse of each other. 4.Permutation takes a 64-bit input and permutes them according to predefined values.

30.38 DES ROUNDS

30.39 Figure One round in DES ciphers

30.40 DES FUNCTION

30.41 Figure DES function

30.42 Figure Triple DES

30.43 Table 30.1 AES configuration

30.44 AES has three different configurations with respect to the number of rounds and key size. Note

30.45 Figure AES

30.46 Figure Structure of each round

30.47 Digital Signature 1.A digital signature or digital signature scheme is a mathematical scheme for demonstrating the authenticity of a digital message or document. 2.A valid digital signature gives a recipient reason to believe that the message was created by a known sender, and that it was not altered in transit. 3.Digital signatures are commonly used for software distribution, financial transactions

30.48 Digital Signature Visit this link