18
1 Information Transmission Chapter 6 Cryptology OVE EDFORS ELECTRICAL AND INFORMATION TECHNOLOGY

OVE EDFORS ELECTRICAL AND INFORMATION TECHNOLOGY

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: OVE EDFORS ELECTRICAL AND INFORMATION TECHNOLOGY

1

Information TransmissionChapter 6 Cryptology

OVE EDFORS

ELECTRICAL AND INFORMATION TECHNOLOGY

Page 2: OVE EDFORS ELECTRICAL AND INFORMATION TECHNOLOGY

2

Learning outcomes

● After this lecture the student should

– undertand what cryptology is and how it is used,

– be familiar with the crypto models of systems for secrecy and authentication,

– understand what makes a crypto system secure,

– be able to perform encryption, decryption and cryptanalysis on simple ciphers,

– understand how Cesar, Viginere and Vernam ciphers work, and

– understand the principle of perfect security.

Page 3: OVE EDFORS ELECTRICAL AND INFORMATION TECHNOLOGY

3

Cryptology

“The science concerned with data communication and storage in secure and usually secret form” – Encyclopaedia Britannica

Legitimate users obtain security by using a secret key that is known only to them.

The area is often subdivided into the two disciplines:

• Cryptography

• Cryptanalysis

Page 4: OVE EDFORS ELECTRICAL AND INFORMATION TECHNOLOGY

4

Model of a cryptosystem for secrecy

Page 5: OVE EDFORS ELECTRICAL AND INFORMATION TECHNOLOGY

5

Security of the cipher

• The security of the cipher should reside entirely in the secret key.

• The designer of a cryptosystem should always assume that the enemy ``by hook or by crook'' can get hold of a detailed description of the cryptosystem; the only thing that is hidden from the cryptanalyst is the actual value of the key.

• Although this is an old principle formulated by Auguste Kerckhoffs already in 1883, it is still valid

Page 6: OVE EDFORS ELECTRICAL AND INFORMATION TECHNOLOGY

6

Model of a cryptosystem for authentication

Page 7: OVE EDFORS ELECTRICAL AND INFORMATION TECHNOLOGY

7

Impersonation and substitution

The impersonation attack is successful if the receiver accepts the ciphertext C* that is chosen by the intruder without knowledge about the genuine ciphertext C

In the substitution attack the intruder first observes the genuine ciphertext C, then he chooses a ciphertext C* that he hopes will be accepted by the receiver.

Page 8: OVE EDFORS ELECTRICAL AND INFORMATION TECHNOLOGY

8

Probability of a successful impersonation attack

Simmons showed a combinatorial lower bound on the probability of a successful impersonation attack, namely,

where and are the numbers of plaintexts and ciphertexts, respectively.

Page 9: OVE EDFORS ELECTRICAL AND INFORMATION TECHNOLOGY

9

Caesar and Vigenère ciphers

Caesar shifted the cipher alphabet three steps such that

A is encrypted as D

B is encrypted as E

C is encrypted as F

As an example we have

Caesar used always a shift of three steps, but nowadays a cipher obtained by any shift is called a Caesar cipher. The number of steps in the shift is the key; that is, the classical Caesar cipher has key K=3.

plaintext ciphertext

CAESAR FDHVDU

Page 10: OVE EDFORS ELECTRICAL AND INFORMATION TECHNOLOGY

10

10

Page 11: OVE EDFORS ELECTRICAL AND INFORMATION TECHNOLOGY

11

Mono-alphabetic substitution ciphers

The Caesar cipher is a special case of a mono-alphabetic substitution cipher: An arbitrary permutation of the English alphabet is used as the key for a substitution done letter by letter.

For example, the mapping

is a key that enciphers the plaintext WOODSTOCK as the ciphertext OQQAWIQUR.

Plaintext alphabet ABCDEFGHIJKLMNOPQRSTUVWXYZCipher alphabet XGUACDTBFHRSLMQVYZWIEJOKNP

Page 12: OVE EDFORS ELECTRICAL AND INFORMATION TECHNOLOGY

12

The Vigenère cipher

To make a cipher less vulnerable to statistical attacks we can try to conceal the varying relative frequencies for the plaintext letters by using more than one substitution alphabet.

A popular example of a so called polyalphabetic substitution cipher is the Vigenère cipher named after the French cryptographer Blaisede Vigenère (1523--1596).

For a couple of centuries his cipher was known as le chiffre indéchiffrable, the ”unbreakable cipher''.

Page 13: OVE EDFORS ELECTRICAL AND INFORMATION TECHNOLOGY

13

13

Page 14: OVE EDFORS ELECTRICAL AND INFORMATION TECHNOLOGY

14

The Vigenère cipher

The key consists of a word that is repeated periodically. For example, if the key is THOMPSON and the plaintext is FOR WOODSTOCK MY FRIEND OF FRIENDS, then we obtain the ciphertext as follows:

Page 15: OVE EDFORS ELECTRICAL AND INFORMATION TECHNOLOGY

15

Breaking the Vigenère cipher

The cryptanalyst looks for such repetitions in the ciphertext. In our example we find the repeated string TEBLBP:

Page 16: OVE EDFORS ELECTRICAL AND INFORMATION TECHNOLOGY

16

The Vernam cipher

Page 17: OVE EDFORS ELECTRICAL AND INFORMATION TECHNOLOGY

17

Perfect secrecy

Shannon defined a cryptosystem to provide perfect secrecy if the plaintext and the ciphertext are independent random variables.

For such systems we will obtain no information at all about the plaintext by observing only the ciphertext. We might do as well just by guessing the plaintext without observing the ciphertext and by doing so trust our luck!

Page 18: OVE EDFORS ELECTRICAL AND INFORMATION TECHNOLOGY

18