an interface and algorithms for authenticated encryption (rfc 5116)

16
An Interface and Algorithms for Authenticated Encryption (RFC 5116) David McGrew [email protected]

Upload: colton

Post on 05-Jan-2016

93 views

Category:

Documents


2 download

DESCRIPTION

An Interface and Algorithms for Authenticated Encryption (RFC 5116). David McGrew [email protected]. Authenticated Encryption with Associated Data (AEAD). Single algorithm provides confidentiality and authenticity/integrity protection Useful abstraction for ‘ideal’ encryption - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: An Interface and Algorithms for Authenticated Encryption (RFC 5116)

An Interface and Algorithms for Authenticated

Encryption (RFC 5116)

David [email protected]

Page 2: An Interface and Algorithms for Authenticated Encryption (RFC 5116)

Authenticated Encryption with Associated Data (AEAD)

• Single algorithm provides confidentiality and authenticity/integrity protection

• Useful abstraction for ‘ideal’ encryption

• Block cipher modes– GCM, CCM, SIV, and others

• Dedicated algorithms– Phelix, SOBER-128

Page 3: An Interface and Algorithms for Authenticated Encryption (RFC 5116)

RFC 5116

• Defines interface to AEAD algorithms

• Defines four algorithms– AES GCM, AES CCM

• Defines IANA registry for algorithms

Page 4: An Interface and Algorithms for Authenticated Encryption (RFC 5116)

Example: Packet Protection

Header Payload

Needs Authentication

Needs Confidentiality

Page 5: An Interface and Algorithms for Authenticated Encryption (RFC 5116)

Plaintext

Header Payload

AEADEncryption

Plaintext

Plaintext is encrypted and authenticated

Page 6: An Interface and Algorithms for Authenticated Encryption (RFC 5116)

Associated Data

Header Payload

AEADEncryption

Associated Data Plaintext

Associated Data is only authenticated

Page 7: An Interface and Algorithms for Authenticated Encryption (RFC 5116)

Secret key

Header Payload

KeyAEAD

Encryption

Associated Data Plaintext

Page 8: An Interface and Algorithms for Authenticated Encryption (RFC 5116)

Nonce

Header Payload

Key

Nonce

AEADEncryption

Associated Data Plaintext

Each encryption operation MUST have a distinct nonce

Page 9: An Interface and Algorithms for Authenticated Encryption (RFC 5116)

(Authenticated) Ciphertext

Header Payload

Key

Nonce

AEADEncryption

Associated Data Plaintext

Ciphertext

Page 10: An Interface and Algorithms for Authenticated Encryption (RFC 5116)

Using AEAD

Header Payload

Key

Nonce

AEADEncryption

Associated Data Plaintext

Ciphertext

Header Protected PayloadNonce

Page 11: An Interface and Algorithms for Authenticated Encryption (RFC 5116)

Example: ESP

P = RestOfPayloadData || TFCpadding || Padding || PadLength ||

NextHeader

N = Salt || IV

A = SPI || SequenceNumber

ESP = SPI || SequenceNumber || IV || C

Page 12: An Interface and Algorithms for Authenticated Encryption (RFC 5116)

AEAD Benefits

• Interface hides algorithm details from application

• Application designer relieved of crypto issues

• Promotes algorithm agility

• Admits crypto optimizations

• Simplifies analysis and testing

Page 13: An Interface and Algorithms for Authenticated Encryption (RFC 5116)

RFC 5116 Uses

• ESP– Backwards compatible with RFC 4106

• TLS– ecc-new-mac, rsa-aes-gcm

• IKE– draft-black-ikev2-aead-modes

• SRTP, SSH work underway• 802.1AE

Page 14: An Interface and Algorithms for Authenticated Encryption (RFC 5116)

AEAD Algorithms

• AES Galois/Counter Mode (GCM)

• AES Counter & CBC-MAC (CCM)– AEAD_AES_128_CCM_SHORT

• AES Synthetic IV (SIV)– draft-harkins-tls-rsa-aes-siv-00

• AES CBC, HMAC-SHA1– draft-mcgrew-aead-aes-cbc-hmac-sha-00

Page 15: An Interface and Algorithms for Authenticated Encryption (RFC 5116)

Issues & Future Work

• Nonces aren’t user friendly– Security and usability

• No nonceless algorithms in registry yet

Page 16: An Interface and Algorithms for Authenticated Encryption (RFC 5116)

Acknowledgements

• Thanks are due to: Hal Finney, Greg Rose, Russ Housley, Alfred Hines, John Wilkinson, Jack Lloyd, Scott Fluhrer, David Wagner, Ken Raeburn, Wei Dai, Aaron Christensen, Phil Rogaway, and Dan Harkins

• IRTF CFRG participants