ECE454/CS594 Computer and Network Security Dr. Jinyuan (Stella) Sun Dept. of Electrical Engineering and Computer Science University of Tennessee Fall 2011.

Slides:



Advertisements
Similar presentations
CLASSICAL ENCRYPTION TECHNIQUES
Advertisements

Using Cryptography to Secure Information. Overview Introduction to Cryptography Using Symmetric Encryption Using Hash Functions Using Public Key Encryption.
ECE454/CS594 Computer and Network Security Dr. Jinyuan (Stella) Sun Dept. of Electrical Engineering and Computer Science University of Tennessee Fall 2011.
Computer Science CSC 474By Dr. Peng Ning1 CSC 474 Information Systems Security Topic 2.1 Introduction to Cryptography.
CS 6262 Spring 02 - Lecture #7 (Tuesday, 1/29/2002) Introduction to Cryptography.
1 Introduction CSE 5351: Introduction to cryptography Reading assignment: Chapter 1 of Katz & Lindell.
CS 555Topic 11 Cryptography CS 555 Topic 1: Overview of the Course & Introduction to Encryption.
McGraw-Hill©The McGraw-Hill Companies, Inc., Security PART VII.
1 Day 04- Cryptography Acknowledgements to Dr. Ola Flygt of Växjö University, Sweden for providing the original slides.
Introduction to Symmetric Block Cipher Jing Deng Based on Prof. Rick Han’s Lecture Slides Dr. Andreas Steffen’s Security Tutorial.
CS1001 Lecture 24. Overview Encryption Encryption Artificial Intelligence Artificial Intelligence Homework 4 Homework 4.
CS426Fall 2010/Lecture 21 Computer Security CS 426 Lecture 2 Cryptography: Terminology & Classic Ciphers.
Lecture 23 Symmetric Encryption
CS526Topic 2: Classical Cryptography1 Information Security CS 526 Topic 2 Cryptography: Terminology & Classic Ciphers.
Introduction to Cryptography
Applied Cryptography Chapter 1 Foundations Jaewon Lee.
Chapter 8.  Cryptography is the science of keeping information secure in terms of confidentiality and integrity.  Cryptography is also referred to as.
ECE454/CS594 Computer and Network Security Dr. Jinyuan (Stella) Sun Dept. of Electrical Engineering and Computer Science University of Tennessee Fall 2011.
Chapter 2 – Classical Encryption Techniques
Lecture 3: Cryptographic Tools modified from slides of Lawrie Brown.
© Neeraj Suri EU-NSF ICT March 2006 DEWSNet Dependable Embedded Wired/Wireless Networks MUET Jamshoro Computer Security: Principles and Practice Slides.
Chapter 2 Basic Encryption and Decryption. csci5233 computer security & integrity 2 Encryption / Decryption encrypted transmission AB plaintext ciphertext.
1 University of Palestine Information Security Principles ITGD 2202 Ms. Eman Alajrami 2 nd Semester
Chapter 2 – Elementary Cryptography  Concepts of encryption  Cryptanalysis  Symmetric (secret key) Encryption (DES & AES)(DES & AES)  Asymmetric (public.
The School of Electrical Engineering and Computer Science (EECS) CS/ECE Network Security Dr. Attila Altay Yavuz Basics Credit: Prof. Dr. Peng Ning Network.
Hill Cipher Developed by the mathematician Lester Hill in The encryption algorithm takes m successive plain text and substitute for them m cipher.
Chapter 20 Symmetric Encryption and Message Confidentiality.
Cryptography, Authentication and Digital Signatures
Lec. 5 : History of Cryptologic Research II
CSCE 201 Introduction to Information Security Fall 2010 Data Protection.
Based on Applied Cryptography by Schneier Chapter 1: Foundations Dulal C. Kar.
1 Chapter 2-1 Conventional Encryption Message Confidentiality.
Chapter 20 Symmetric Encryption and Message Confidentiality.
Network Security Lecture 11 Presented by: Dr. Munam Ali Shah.
CS526: Information Security Prof. Sam Wagstaff September 16, 2003 Cryptography Basics.
Bit Cipher 1. Example of bit Cipher 2 Practical Stream Cipher 3.
Symmetric-Key Cryptography
Module :MA3036NI Cryptography and Number Theory Lecture Week 3 Symmetric Encryption-2.
Lecture slides prepared for “Computer Security: Principles and Practice”, 3/e, by William Stallings and Lawrie Brown, Chapter 2 “Cryptographic Tools”.
Cryptography Lynn Ackler Southern Oregon University.
Elementary Cryptography  Concepts of encryption  Symmetric (secret key) Encryption (DES & AES)(DES & AES)  Asymmetric (public key) Encryption (RSA)(RSA)
Computer Security: Principles and Practice First Edition by William Stallings and Lawrie Brown Lecture slides by Lawrie Brown Chapter 2 – Cryptographic.
Traditional Symmetric-Key Ciphers
Computer Security Cryptography. Cryptography Now and Before  In the past – mainly used for confidentiality  Today –Still used for confidentiality –Data.
Cryptography 1 Crypto Cryptography 2 Crypto  Cryptology  The art and science of making and breaking “secret codes”  Cryptography  making “secret.
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
K. Salah1 Cryptography Module I. K. Salah2 Cryptographic Protocols  Messages should be transmitted to destination  Only the recipient should see it.
Intro to Cryptography Lesson Introduction
Symmetric Cipher Model Plaintext input 1- encryption algorithm 2- secret key Encryption Cipher text output Cipher text input 1- Decryption algorithm 2-
Cryptography and Network Security Chapter 2
Network Security Lecture 13 Presented by: Dr. Munam Ali Shah.
Lecture 2 (Chapter 2) Classical Encryption Techniques Prepared by Dr. Lamiaa M. Elshenawy 1.
CS526Topic 2: Classical Cryptography1 Information Security CS 526 Topic 2 Cryptography: Terminology & Classic Ciphers.
1 Classical Encryption Techniques. 2 Symmetric cipher model –Cryptography –Cryptanalysis Substitution techniques –Caesar cipher –Monoalphabetic cipher.
Prof. Wenguo Wang Network Information Security Prof. Wenguo Wang Tel College of Computer Science QUFU NORMAL UNIVERSITY.
@Yuan Xue CS 285 Network Security Block Cipher Principle Fall 2012 Yuan Xue.
Computer Security By Rubel Biswas. Introduction History Terms & Definitions Symmetric and Asymmetric Attacks on Cryptosystems Outline.
Department of Computer Science Chapter 5 Introduction to Cryptography Semester 1.
Introduction (Pendahuluan)  Information Security  Criptography.
1 Introduction to Cryptography Chapter-4. Definitions  Cryptography = the science (art) of encryption  Cryptanalysis = the science (art) of breaking.
@Yuan Xue CS 285 Network Security Cryptography Overview and Classical Encryption Algorithms Fall 2012 Yuan Xue.
CRYPTOGRAPHY G REEK WORD MEANING “ SECRET WRITING ”
CS/ECE 578 Cyber-Security Dr. Attila Altay Yavuz
Cryptography and Network Security Sixth Edition by William Stallings.
CS/ECE 478 Network Security Dr. Attila Altay Yavuz
Presentation transcript:

ECE454/CS594 Computer and Network Security Dr. Jinyuan (Stella) Sun Dept. of Electrical Engineering and Computer Science University of Tennessee Fall

Introduction to Cryptography What is cryptography? Types of cryptography Attacks on cryptosystem SKC, PKC, Hash Security notions Early ciphers 2

What Is Cryptography? Cryptography is the art of secret writing Traditional use: encryption Cryptographic systems: algorithm+secret Cryptology: cryptography+cryptanalysis 3

Types of Cryptography Operations used to transform plaintext to ciphertext: - Substitution: each element in plaintext is mapped into another element - Transposition: elements in plaintext are rearranged Number of keys used: - Single-key: secret-key cryptography - Two-key: public-key cryptography - Zero-key: hash functions The way plaintext is processed: - Block cipher: input & output in blocks - Stream cipher: input & output in bits 4

Conventional Cryptography: Symmetric Encryption 5 Plaintext: original message Encryption algorithm: substitutions/transpositions Secret key: independent of plaintext and algorithm Ciphertext: depends on plaintext and key, appears random Decryption algorithm: reverse of encryption

Attacking Cryptosystems 6 Cryptanalysis: attempts to deduce the plaintext and/or the key being used, with knowledge of the nature of the algorithm + general characteristics of plaintext + some sample plaintext-ciphertext pairs Brute-force attack: attacker tries every possible key on a piece of ciphertext until an intelligible translation into plaintext is obtained. On average, half of all possible keys must be tried to achieve success.

Types of Cryptanalytic Attacks 7

Brute-force Attacks 8 Average Time Required for Exhaustive Key Search

Secret Key Cryptography (SKC) Aka: conventional cryptography, symmetric cryptography Use a single key Ciphertext about the same length as plaintext Examples: Captain Midnight code, monoalphabetic cipher, DES, AES, RC4 9 plaintextciphertext encryption ciphertextplaintext decryption shared secret key

SKC Applications Transmitting over an insecure channel Secure storage on insecure media Authentication: Integrity check: message authentication code (MAC), aka, message integrity check (MIC) 10

Public Key Cryptography (PKC) Aka: asymmetric cryptography, invented in 1970s Use two keys: a public key known to everyone, a private key kept secret to the owner Encryption/decryption: encryption can be done by everyone using the recipient’s public key, decryption can be done only by the recipient with his/her private key 11 plaintextciphertext encryption ciphertextplaintext decryption

PKC Applications Everything that SKC does can be done by PKC Transmitting over an insecure channel Secure storage over insecure media Authentication Key exchange: establish a shared session key with PKC 12

PKC Applications (Cont’d) Digital signature: non-repudiation 13 plaintextSigned message sign Signed message True or false verify

Hash Functions Aka: message digests, one-way transformations Take a message m of arbitrary length (transformed into a string of bits) and computes from it a fixed-length (short) number h(m) Properties: - easy-to-compute: for any message m, it is relatively easy to compute h(m) - non-reversible: given h(m), there is no way to find an m that hashes to h(m) except trying all possibilities of m - computationally infeasible to find m and m’ such that h(m)=h(m’) and m!=m’ 14

Applications of Hash Functions Password hashing Message integrity: keyed hash File fingerprint Downline load security Digital signature efficiency 15

Security Notions Unconditionally secure: ciphertext generated by the scheme does not contain enough information to determine uniquely the corresponding plaintext, no matter how much ciphertext is available. Perfectly secure, unlimited power of adversary Provably secure: under the assumption of well-known hard mathematical problem, e.g., factoring large numbers, discrete logarithm problem Computationally secure: if cost of breaking the cipher exceeds the value of the encrypted information, or time required to break the cipher exceeds the useful lifetime of the information, practical security 16

Early Ciphers: Substitution 17 Substitution: letters of plaintext are replaced by other letters or by numbers or symbols, involves replacing plaintext bit patterns with ciphertext bit patterns Caesar cipher Captain Midnight Secret Decoder Rings Monoalphabetic cipher Hill cipher Polyalphabetic cipher (Vigenere) One-time pad

Caesar Cipher 18 R eplacing each letter of the alphabet with the letter three places further down the alphabet, e.g., Captain Midnight Secret Decoder Ring (slightly enhanced): If a numerical value is assigned to each letter, for each plaintext letter p, the ciphertext letter C=E(k, p)=(p+k) mod 26 where k takes on the value in [1,25]: Subject to brute-force attack: simply try all 25 possible k

Monoalphabetic Cipher 19 The "cipher" line can be any permutation of the 26 alphabetic characters, 26! or around 4x10 26 possible keys: Is it secure enough to resist cryptanalysis? Consider: By exploiting the regularities of the language and counting letter frequencies: The following can be recovered:

Hill Cipher 20 Takes m successive plaintext letters and substitutes for them m ciphertext letters The substitution is determined by m linear equations in which each character is assigned a numerical value (a = 0, b = 1... z = 25) For example: m = 3 for plaintext “paymoremoney” and encryption key we have ciphertext: LNSHDLEWMTRW

Polyalphabetic Cipher 21 Use different monoalphabetic substitutions as one proceeds through the plaintext message Vigenere cipher: best known polyalphabetic cipher. The set of related monoalphabetic substitution rules consists of the 26 Caesar ciphers, with shifts of 0 through 25. For keyword “deceptive” and plaintext “we are discovered save yourself”, the encryption works as: Vulnerable to cryptanalysis: the key and plaintext share the same language regularities and frequency distribution of letters. Solutions?

One-time Pad 22 Use a random key that is as long as the message so that the key need not be repeated The key is used to encrypt and decrypt a single message, and then is discarded Perfectly secure: unbreakable because it produces random output (from the random key) that bears no statistical relationship to the plaintext Drawbacks: large quantities of random keys needed, key distribution and protection (both sender and receiver)

Early Ciphers: Transposition 23 Different from substituting a ciphertext symbol for a plaintext symbol Transposition cipher: performs some sort of permutation/rearrangement on plaintext letters Cryptanalysis is straightforward: a transposition cipher has the same letter frequency as plaintext Can be made more secure by performing more than one stage of transposition (result is not easily reconstructed)

Rail Fence Cipher 24 Simplest transposition cipher Plaintext is written down as a sequence of diagonals and then read off as a sequence of rows Trivial to attack Plaintext: Ciphertext:

Double Transposition 25 A more complex scheme: permute the order of the columns with a key Double transposition: more than one permutation, number the above plaintext letters 1-28 and after the first permutation we have After the 2 nd permutation?

Cryptography vs. Steganography 26 Cryptography conceals the context of message Steganography conceals the existence of message, useful when the fact of secret communication should be concealed - an arrangement of words/letters of the overall message spells out the hidden message - character marking: selected letters overwritten in pencil, not visible unless the paper is held at an angle to bright light - invisible ink: substances used for writing but leave no visible trace until heat or some chemical is applied to the paper - pin punctures: small pin punctures on selected letters are not visible unless the paper is held up in front of a light Drawbacks of steganography: high overhead to hide a relatively few bits of information, becomes worthless once the system is discovered (can make insertion depend on key)

Steganography 27

Reading Assignments [Kaufman] Chapter 2 28