Docsity

Network Security: Encryption Algorithms, Authentication Protocols, and Message Integrity, Slides of Computer Networks

Partial preview of the text

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

1

Security

Outline

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

2

Overview

  • Cryptography functions
    • Secret key (e.g. DES)
    • Public key (e.g. RSA)
    • Message digest (e.g. MD5)
  • Security services
    • Privacy: preventing unauthorized release of information
    • Authentication: verifying identity of the remote participant
    • Integrity: making sure message has not been altered

4

Secret Key Encryption

5

Secret Key Encryption (DES)

Plaintext

Encrypt with secret key

Ciphertext

Plaintext

Decrypt with secret key

7

Expansion Phase of DES

4-bit chunk

Expanded to 6 bits by stealing a bit from left and right chunks

โ–  โ–  โ– 

โ–  โ–  โ–  (^) โ–  โ–  โ– 

โ–  โ–  โ– 

8

Secret Key Encryption

Plaintext Block 3 Plaintext Block 2 Plaintext Block 1 Plaintext Block 0

Initialization Vector

(For block 0 only)

Encryption Function Blocks of Ciphertext

10

Public Key Encryption

11

Public Key Authentication

13

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 - 1) ร— ( q - 1) are relatively prime. - Two numbers are relatively prime if they have no common factor greater than one

14

RSA (cont)

  • Compute decryption key d such that

d = e -1 mod (( p - 1) ร— ( q - 1))

  • Construct public key as ( e , n )
  • Construct private key as ( d , n )
  • Discard (do not disclose) original primes p and q

16

Message Digest

  • One-way function
    • Given a cryptographic checksum for a message, it is virtually impossible to figure out what message produced that checksum; it is not computationally feasible to find two messages that hash to the same cryptographic checksum.

17

Message Digest

  • Relevance
    • If you are given a checksum for a message and you are able to compute exactly the same checksum for that message, then it is highly likely this message produced the checksum you were given.

19

Authentication Protocols

  • Three-way handshake Client Server

20

  • Trusted third party (Kerberos)

Third Party Authentication

S A B A, B