Docsity

IPSec Virtual Private Networks: Understanding Security, Encryption, and Authentication, Slides of Computer Networks

Partial preview of the text

Download IPSec Virtual Private Networks: Understanding Security, Encryption, and Authentication and more Slides Computer Networks in PDF only on Docsity!

Introduction to IPSec Virtual Private Networks

IPSec (Internet Protocol Security)

Loss of Privacy

Security Threats

Impersonation

Loss of Integrity

Denial of Service

m-y-p-a-s-s-w-o-r-d

d-a-n

telnet foo.bar.orgtelnet

foo.bar.org

username:username: dan

dan

password:password:

Deposit Rs 100,

Bank

Customer

Deposit Rs 1000

I’m Bob, Send Me

all Corporate

Correspondence

with PTCL

Bob

6

CPU CPU

Docsity.com

Encryptor and decryptor use differentmathematical functions

Encryptor and decryptor use different keys

Example: public key algorithms(RSA, Diffie-Hellman)

Generate a secret key

Public Key

DecryptionDecryption

Private Key

Networkers Networkers

&^$!@#l:{Q &^$!@#l:{Q

Networkers Networkers

Asymmetric or Public-Key

Encryption

Encryption Encryption

Authentication and Integrity -

Message-Digest Algorithms

Message

“

“Secret

Secret

Key Key”

”

Hash

Hash

FunctionFunction

Also known as hash algorithms

Secret key and message arehashed together

Re-computation of digest verifiesthat message originated with peerand that message was not alteredin transit

Also used in Digital Signatures

Examples HMAC-MD5, HMAC-SHA

Hash

Signature Verification

Message

AliceAlice

Hash Hash

Function Function

Decrypt the

Received

Signature

Decrypt Using

Alice’s Public Key

Hash of

Message

Hash Message

Message with

Appended

Signature

If Hashes are

Equal, Signature

is Authentic

Re-Hash theReceivedMessage

Message

Signature Signature

SignatureSignature

Diffie-Hellman Key Exchange

By Openly Exchanging

By Openly Exchanging

Non

Non-

-Secret Numbers, Two

Secret Numbers, Two

People Can Compute a Unique

People Can Compute a Unique

Shared Secret Number Known

Shared Secret Number Known

Only to Them

Only to Them

Using Certificates

Certificate Authority (CA) verifies identity

CA signs digital certificate containingdevice’s public key

Certificate equivalent to an ID card

Internet Internet

B A N K

  • A digital certificate

contains:

•Serial number of thecertificate•Issuer algorithm information•Valid to/from date•User public key information•Signature of issuingauthority

Digital Certificate

00001230000123 RSA, 3837829RSA, 3837829…

…

1/1/93 to 12/31/981/1/93 to 12/31/98Alice Smith, Acme CorpAlice Smith, Acme CorpRSA, 3813710…RSA, 3813710

…

Acme Corporation, Security Dept.Acme Corporation, Security Dept.RSA, 2393702347…RSA, 2393702347

…

All Data in Clear Text

Router

Firewall

Authentication Header

  • Data integrity—no twiddling of bits• Origin authentication—definitely

came from Router

  • Uses keyed-hash mechanism• Does NOT provide confidentiality• Replay protection
AH
AH

Authentication

Data (00ABCDEF)

Authentication

Data (00ABCDEF)

IP Header + Data

IP Header + Data

Router

Firewall

IP HDR
IP HDR

DataData

AH Authentication and Integrity

Authentication Algorithms

MD

SHA-

Digest Length

128 bits

160 bits

Basic UnitProcessing

512 bits

512 bits

Number of Steps

64 (4 rounds of16)

80 (4 rounds of 20)

Max. message size

Infinite

2^64 – 1 bits

Encapsulating Security Payload

Data confidentiality

Limited traffic flow confidentiality

Data integrity

Data origin authentication

Anti-replay protection

Does not protect IP Header

IPSec Encapsulating Security Payload

Header (ESP)

ESP header is prependedto IP datagram

Confidentiality throughencryption of IP datagram

Integrity through keyedhash function

Security Parameter Index (SPI) Security Parameter Index (SPI)

Sequence Number Field Sequence Number Field

Padding (If Any) Padding (If Any)

Pad

Length

Pad

Length

Next

Header

Next

Header

Initialization Vector Initialization Vector

Authentication Data Authentication Data

Payload Data Payload Data

ESP Algorithms

  • DES-CBC - 56 bit applied to 64 bit blocks

of plain text

  • 3DES - 3 x 56 bit keys applied to a 64 bit

block of plain text yields a 168 bit key.

  • Add MD5 or SHA-1 - to add integrity to the

cyphertext