Ref. Cryptography: theory and practice Douglas R. Stinson

Slides:



Advertisements
Similar presentations
CMSC 414 Computer (and Network) Security Lecture 4 Jonathan Katz.
Advertisements

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.
22C:19 Discrete Structures Integers and Modular Arithmetic
22C:19 Discrete Math Integers and Modular Arithmetic Fall 2010 Sukumar Ghosh.
Foundations of Network and Computer Security J J ohn Black Lecture #10 Sep 18 th 2009 CSCI 6268/TLEN 5550, Fall 2009.
CMSC 414 Computer and Network Security Lecture 3 Jonathan Katz.
Practical Techniques for Searches on Encrypted Data Author: Dawn Xiaodong Song, David Wagner, Adrian Perrig Presenter: 紀銘偉.
Asymmetric Cryptography part 1 & 2 Haya Shulman Many thanks to Amir Herzberg who donated some of the slides from
Information Theory and Security pt. 2. Lecture Motivation Previous lecture talked about a way to measure “information”. In this lecture, our objective.
Information Theory and Security. Lecture Motivation Up to this point we have seen: –Classical Crypto –Symmetric Crypto –Asymmetric Crypto These systems.
3: Stream Ciphers and Probability Professor Richard A. Stanley, P.E.
CSE331: Introduction to Networks and Security Lecture 17 Fall 2002.
Hellman’s TMTO 1 Hellman’s TMTO Attack. Hellman’s TMTO 2 Popcnt  Before we consider Hellman’s attack, consider simpler Time-Memory Trade-Off  “Population.
1 Chapter 5 A Measure of Information. 2 Outline 5.1 Axioms for the uncertainty measure 5.2 Two Interpretations of the uncertainty function 5.3 Properties.
Shannon ’ s theory part II Ref. Cryptography: theory and practice Douglas R. Stinson.
CryptographyPerfect secrecySlide 1 Today What does it mean for a cipher to be: –Computational secure? Unconditionally secure? Perfect secrecy –Conditional.
Overview of Cryptography and Its Applications Dr. Monther Aldwairi New York Institute of Technology- Amman Campus INCS741: Cryptography.
Information Theory and Security
CS526Topic 2: Classical Cryptography1 Information Security CS 526 Topic 2 Cryptography: Terminology & Classic Ciphers.
Computer Security CS 426 Lecture 3
1 CIS 5371 Cryptography 8. Asymmetric encryption-.
Dan Boneh Stream ciphers The One Time Pad Online Cryptography Course Dan Boneh.
CS526Topic 3: One-time Pad and Perfect Secrecy 1 Information Security CS 526 Topic 3 Cryptography: One-time Pad, Information Theoretic Security, and Stream.
EE5552 Network Security and Encryption block 4 Dr. T.J. Owens CEng MIET Dr T. Itagaki MIET, MIEEE, MAES.
David Evans CS551: Security and Privacy University of Virginia Computer Science Lecture 2: Breaking Unbreakable Ciphers.
Códigos y Criptografía Francisco Rodríguez Henríquez A Short Introduction to Stream Ciphers.
A Few Simple Applications to Cryptography Louis Salvail BRICS, Aarhus University.
One-Time Pad Or Vernam Cipher Sayed Mahdi Mohammad Hasanzadeh Spring 2004.
Topic 21 Cryptography CS 555 Topic 2: Evolution of Classical Cryptography CS555.
13. BETTER SYMMETRIC CIPHER STREAM CIPHERS 1. SOME TRICKS FOR SUBSTITUTION CIPHER There are some tricks to make substitution cipher safer: Nulls: insert.
9/03/15UB Fall 2015 CSE565: S. Upadhyaya Lec 2.1 CSE565: Computer Security Lecture 2 Basic Encryption & Decryption Shambhu Upadhyaya Computer Science &
Cryptography Part 1: Classical Ciphers Jerzy Wojdyło May 4, 2001.
Cryptograpy By Roya Furmuly W C I H D F O P S L 7.
Traditional Symmetric-Key Ciphers
1 Information Theory Nathanael Paul Oct. 09, 2002.
Introduction to Quantum Key Distribution
Cryptography and Authentication A.J. Han Vinck Essen, 2008
15-499Page :Algorithms and Applications Cryptography I – Introduction – Terminology – Some primitives – Some protocols.
22C:19 Discrete Structures Integers and Modular Arithmetic Fall 2014 Sukumar Ghosh.
NEW DIRECTIONS IN CRYPTOGRAPHY Made Harta Dwijaksara, Yi Jae Park.
Basic Principles (continuation) 1. A Quantitative Measure of Information As we already have realized, when a statistical experiment has n eqiuprobable.
Conditional Probability Mass Function. Introduction P[A|B] is the probability of an event A, giving that we know that some other event B has occurred.
Lectures so far: Today’s lecture: Discrete probability Proving things
Introduction to Cryptography Lecture 9. Public – Key Cryptosystems Each participant has a public key and a private key. It should be infeasible to determine.
CS555Spring 2012/Topic 31 Cryptography CS 555 Topic 3: One-time Pad and Perfect Secrecy.
Cryptography Lecture 2 Arpita Patra. Recall >> Crypto: Past and Present (aka Classical vs. Modern Cryto) o Scope o Scientific Basis (Formal Def. + Precise.
Network Security Lecture 13 Presented by: Dr. Munam Ali Shah.
Chapter 6 Large Random Samples Weiqi Luo ( 骆伟祺 ) School of Data & Computer Science Sun Yat-Sen University :
CS526Topic 2: Classical Cryptography1 Information Security CS 526 Topic 2 Cryptography: Terminology & Classic Ciphers.
Foundations of Network and Computer Security J J ohn Black CSCI 6268/TLEN 5550, Spring 2014.
Cryptography Lecture 3 Arpita Patra © Arpita Patra.
1 Chapter 4 Mathematical Expectation  4.1 Mean of Random Variables  4.2 Variance and Covariance  4.3 Means and Variances of Linear Combinations of Random.
CHAPTER 14 ENCRYPTION AND DECRYPTION Sajina Pradhan
@Yuan Xue CS 285 Network Security Block Cipher Principle Fall 2012 Yuan Xue.
CSE565: Computer Security Lecture 2 Basic Encryption & Decryption
Textbook: Introduction to Cryptography 2nd ed. By J.A. Buchmann
Taehyung Kim HPC Lab. POSTECH
Cryptography Lecture 3.
B504/I538: Introduction to Cryptography
Cryptography Lecture 2 Arpita Patra © Arpita Patra.
Cryptography Lecture 4.
Achieving Perfect Secrecy
Topic 3: Perfect Secrecy
Information-Theoretic Secrecy
Cryptography Lecture 2 Arpita Patra © Arpita Patra.
Cryptography Lecture 3.
Cryptography Lecture 3.
2. Perfect Secret Encryption
CIS 5371 Cryptography 2. Perfect Secret Encryption
Presentation transcript:

Ref. Cryptography: theory and practice Douglas R. Stinson Shannon’s theory Ref. Cryptography: theory and practice Douglas R. Stinson

Shannon’s theory 1949, “Communication theory of Secrecy Systems” in Bell Systems Tech. Journal. Two issues: What is the concept of perfect secrecy? Does there any cryptosystem provide perfect secrecy? It is possible when a key is used for only one encryption How to evaluate a cryptosystem when many plaintexts are encrypted using the same key?

Outline Introduction Elementary probability theory Perfect secrecy One-time pad Elementary probability theory Perfect secrecy Entropy Spurious keys and unicity distance

Categories of cryptosystem (1) Computational security: The best algorithm for breaking a cryptosystem requires at least N operations, where N is a very large number No known practical cryptosystem can be proved to be secure under this definition Study w.r.t certain types of attacks (ex. exhaustive key search) does not guarantee security against other type of attack

Categories of cryptosystem (2) Provable security Reduce the security of the cryptosystem to some well-studied problems that is thought to be difficult Ex. RSA  integer factoring problem Unconditional security A cryptosystem cannot be broken, even with infinite computational resources

One-Time Pad Unconditional security !!! Described by Gilbert Vernam in 1917 Use a random key that was truly as long as the message, no repetitions The One-Time Pad is an evolution of the Vernham cipher, which was invented by Gilbert Vernham in 1918, and used a long tape of random letters to encrypt the message. An Army Signal Corp officer, Joseph Mauborgne, proposed an improvement using a random key that was truly as long as the message, with no repetitions, which thus totally obscures the original message. Since any plaintext can be mapped to any ciphertext given some key, there is simply no way to determine which plaintext corresponds to a specific instance of ciphertext. For ciphertext

Example: one-time pad Given ciphertext with Vigenère Cipher: ANKYODKYUREPFJBYOJDSPLREYIUNOFDOIUERFPLUYTS Decrypt by hacker 1: Ciphertext: ANKYODKYUREPFJBYOJDSPLREYIUNOFDOIUERFPLUYTS Key: pxlmvmsydofuyrvzwc tnlebnecvgdupahfzzlmnyih Plaintext: mr mustard with the candlestick in the hall Decrypt by hacker 2: Ciphertext: ANKYODKYUREPFJBYOJDSPLREYIUNOFDOIUERFPLUYTS Key: pftgpmiydgaxgoufhklllmhsqdqogtewbqfgyovuhwt Plaintext: miss scarlet with the knife in the library Which one?

a b c d e f g h i j k l m n o p q r s t u v w x y z ? B C D E F G H I J K L M N O P Q R S T U V W X Y Z ? A C D E F G H I J K L M N O P Q R S T U V W X Y Z ? A B D E F G H I J K L M N O P Q R S T U V W X Y Z ? A B C E F G H I J K L M N O P Q R S T U V W X Y Z ? A B C D F G H I J K L M N O P Q R S T U V W X Y Z ? A B C D E G H I J K L M N O P Q R S T U V W X Y Z ? A B C D E F H I J K L M N O P Q R S T U V W X Y Z ? A B C D E F G I J K L M N O P Q R S T U V W X Y Z ? A B C D E F G H J K L M N O P Q R S T U V W X Y Z ? A B C D E F G H I K L M N O P Q R S T U V W X Y Z ? A B C D E F G H I J L M N O P Q R S T U V W X Y Z ? A B C D E F G H I J K M N O P Q R S T U V W X Y Z ? A B C D E F G H I J K L N O P Q R S T U V W X Y Z ? A B C D E F G H I J K L M O P Q R S T U V W X Y Z ? A B C D E F G H I J K L M N P Q R S T U V W X Y Z ? A B C D E F G H I J K L M N O Q R S T U V W X Y Z ? A B C D E F G H I J K L M N O P R S T U V W X Y Z ? A B C D E F G H I J K L M N O P Q S T U V W X Y Z ? A B C D E F G H I J K L M N O P Q R T U V W X Y Z ? A B C D E F G H I J K L M N O P Q R S U V W X Y Z ? A B C D E F G H I J K L M N O P Q R S T V W X Y Z ? A B C D E F G H I J K L M N O P Q R S T U W X Y Z ? A B C D E F G H I J K L M N O P Q R S T U V X Y Z ? A B C D E F G H I J K L M N O P Q R S T U V W Y Z ? A B C D E F G H I J K L M N O P Q R S T U V W X Z ? A B C D E F G H I J K L M N O P Q R S T U V W X Y ? A B C D E F G H I J K L M N O P Q R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z ?

Problem with one-time pad Truly random key with arbitrary length? Distribution and protection of long keys The key has the same length as the plaintext! One-time pad was thought to be unbreakable, but there was no mathematical proof until Shannon developed the concept of perfect secrecy 30 years later.

Preview of perfect secrecy (1) When we discuss the security of a cryptosystem, we should specify the type of attack that is being considered Ciphertext-only attack Unconditional security assumes infinite computational time Theory of computational complexity × Probability theory ˇ

Preview of perfect secrecy (2) Definition: A cryptosystem has perfect secrecy if Pr[x|y] = Pr[x] for all xP, yC Idea: Oscar can obtain no information about the plaintext by observing the ciphertext Alice Bob y x Oscar

Outline Introduction Elementary probability theory Perfect secrecy One-time pad Elementary probability theory Perfect secrecy Entropy Spurious keys and unicity distance

Discrete random variable (1) Def: A discrete random variable, say X, consists of a finite set X and a probability distribution defined on X. The probability that the random variable X takes on the value x is denoted Pr[X=x] or Pr[x] 0≤Pr[x] for all xX,

Discrete random variable (2) Ex. Consider a coin toss to be a random variable defined on {head, tails} , the associated probabilities Pr[head]=Pr[tail]=1/2 Ex. Throw a pair of dice. It is modeled by Z={(1,1), (1,2), …, (2,1), (2,2), …, (6,6)} where Pr[(i,j)]=1/36 for all i, j. sum=4 corresponds to {(1,3), (2,2), (3,1)} with probability 3/36

Joint and conditional probability X and Y are random variables defined on finite sets X and Y, respectively. Def: the joint probability Pr[x, y] is the probability that X=x and Y=y Def: the conditional probability Pr[x|y] is the probability that X=x given Y=y Pr[x, y] =Pr[x|y]Pr[y]= Pr[y|x]Pr[x]

Bayes’ theorem If Pr[y] > 0, then Ex. Let X denote the sum of two dice. Y is a random variable on {D, N}, Y=D if the two dice are the same. (double)

Outline Introduction Elementary probability theory Perfect secrecy One-time pad Elementary probability theory Perfect secrecy Entropy Spurious keys and unicity distance

Definitions Assume a cryptosystem (P,C,K,E,D) is specified, and a key is used for one encryption Plaintext is denoted by random variable x Key is denoted by random variable K Ciphertext is denoted by random variable y Plaintext Ciphertext y x K

Perfect secrecy Definition: A cryptosystem has perfect secrecy if Pr[x|y] = Pr[x] for all xP, yC Idea: Oscar can obtain no information about the plaintext by observing the ciphertext Alice Bob y x Oscar

Relations among x, K, y Ciphertext is a function of x and K y is the ciphertext, given that x is the plaintext

Relations among x, K, y x is the plaintext, given that y is the ciphertext

Ex. Shift cipher has perfect secrecy (1) Shift cipher: P=C=K=Z26 , encryption is defined as Ciphertext:

Ex. Shift cipher has perfect secrecy (2) Pr[y|x] Apply Bayes’ theorem Perfect secrecy

Perfect secrecy when |K|=|C|=|P| (P,C,K,E,D) is a cryptosystem where |K|=|C|=|P|. The cryptosystem provides perfect secrecy iff every keys is used with equal probability 1/|K| For every xP, yC, there is a unique key K such that Ex. One-time pad in Z2

Outline Introduction Elementary probability theory Perfect secrecy One-time pad Elementary probability theory Perfect secrecy Entropy Spurious keys and unicity distance How about the security when many plaintexts are encrypted using one key?

Preview (1) We want to know: Plaintext Ciphertext xn yn K We want to know: the average amount of ciphertext required for an opponent to be able to uniquely compute the key, given enough computing time

Preview (2) We want to know: How much information about the key is revealed by the ciphertext = conditional entropy H(K|Cn) We need the tools of entropy

Entropy (1) Suppose we have a discrete random variable X What is the information gained by the outcome of an experiment? Ex. Let X represent the toss of a coin, Pr[head]=Pr[tail]=1/2 For a coin toss, we could encode head by 1, and tail by 0 => i.e. 1 bit of information

Entropy (2) Ex. Random variable X with Pr[x1]=1/2, Pr[x2]=1/4, Pr[x3]=1/4 The most efficient encoding is to encode x1 as 0, x2 as 10, x3 as 11. Notice: probability 2-n => n bits p => -log2 p The average number of bits to encode X

Entropy: definition Suppose X is a discrete random variable which takes on values from a finite set X. Then, the entropy of the random variable X is defined as

Entropy : example Let P={a, b}, Pr[a]=1/4, Pr[b]=3/4. K={K1, K2, K3}, Pr[K1]=1/2, Pr[K2]=Pr[K3]= 1/4. encryption matrix: a b K1 1 2 K2 3 K3 4 H(P)= H(K)=1.5, H(C)=1.85

Conditional entropy Known any fixed value y on Y, information about random variable X Conditional entropy: the average amount of information about X that is revealed by Y Theorem: H(X,Y)=H(Y)+H(X|Y)

Theorem (1) Let (P,C,K,E,D) be a cryptosystem, then H(K|C) = H(K) + H(P) – H(C) Proof: H(K,P,C) = H(C|K,P) + H(K,P) Since key and plaintext uniquely determine the ciphertext H(C|K,P) = 0 H(K,P,C) = H(K,P) = H(K) + H(P) Key and plaintext are independent

Theorem (2) We have Similarly, Now, H(K,P,C) = H(K,P) = H(K) + H(P) H(K,P,C) = H(K,C) = H(K) + H(C) H(K|C)= H(K,C)-H(C) = H(K,P,C)-H(C) = H(K)+H(P)-H(C)