Docsity

Network Security: Encryption, Authentication, Message Integrity, and Key Distribution, Slides of Computer Networks

Partial preview of the text

Download Network Security: Encryption, Authentication, Message Integrity, and Key Distribution and more Slides Computer Networks in PDF only on Docsity!

2

Lecture No. 40

3

Security

Outline

  • Encryption Algorithms– Authentication Protocols– Message Integrity Protocols– Key Distribution– Firewalls

5

Taxonomy of Network Security

Security

Cryptography

algorithms

Public

key

(e.g. RSA)

Secret

key

(e.g. DES)

Message

digest

(e.g. MD5)

Securityservices

Authentication

Privacy

Messageintegrity

6

Secret Key Encryption

8

DES Algorithm

64-bit key (56-bits + 8-bit parity)

16 rounds

  • Each Round

F +

L

─i

(^1)

R

─i

(^1) R

i

K

i

L

i

Initial permutation

Round 1 Round 2 Round 16

56-bitkey
Final permutation

9

Expansion Phase of DES

4-bit chunk
Expanded to 6 bits by stealinga bit from left and right chunks

■ ■ ■ ■ ■ ■

■ ■ ■ ■ ■ ■

11

Repeat for larger messages

Cipher Block Chaining (CBC)

Block

1

IV

DES Cipher

1

Block

2

DES

Block

3

DES

Block

4

DES

Cipher

2

Cipher

3

Cipher

4

12

Public Key Encryption

14

Public Key Encryption (RSA)

-^

Encryption & Decryption

c

m

e^ mod n

m

c

d mod n

Plaintext Encrypt with

public key

Ciphertext

Plaintext Decrypt with

private key

15

RSA (cont)

  • Choose two large prime numbers

p

and

q

(each 256 bits)

  • Multiply

p

and

q

together to get

n

  • Choose the encryption key

e

, such that

e

and (

p

×

(

q

    1. are relatively prime.
    • Two numbers are relatively prime if they

have no common factor greater than one

17

Message Digest

  • Cryptographic checksum
    • Just as a regular checksum protects the

receiver from accidental changes to themessage, a cryptographic checksumprotects the receiver from maliciouschanges to the message.

18

Message Digest

  • One-way function
    • Given a cryptographic checksum for a

message, it is virtually impossible tofigure out what message produced thatchecksum; it is not computationallyfeasible to find two messages that hash tothe same cryptographic checksum.

20

Overview of Message Digest Operation

Transform

Initial “digest”
(constant)

Message (padded)

Transform Transform

Message digest
512 bits
512 bits
512 bits

■ ■ ■

21

Authentication Protocols

Three-way handshake

Client

Server