Cyberstudy
1.4 3.2 In progress

Transport Encryption and Key Exchange

18 flashcards

Summary

Transport encryption protects data while it moves across a network. Protocols such as TLS, IPsec and WPA3 first agree on fresh session keys, then use fast symmetric encryption for the traffic and message authentication codes or authenticated encryption for integrity.

In plain words

Data on the move is protected by WPA (Wi-Fi), IPsec (VPNs) and TLS (web, email). Because asymmetric crypto is slow, it's used to exchange a symmetric session key, which then encrypts the actual traffic.

Detailed explanation

  • Transport encryption: Encrypting data in transit between systems.
    • Examples: Transport Layer Security (TLS) for web and app traffic, Internet Protocol Security (IPsec) for VPNs, Wi-Fi Protected Access 3 (WPA3) for wireless and Secure Shell (SSH) for remote administration.
  • Key exchange: The process that lets two parties establish a shared symmetric session key.
    • Key transport: One side creates the session key and encrypts it with the other's public key; this is called a digital envelope.
    • Key agreement: Both sides contribute values and derive the same secret, as in Diffie-Hellman.
  • Session key: A temporary symmetric key used for one session only.

Integrity and authenticity in transit

  • Hash-based message authentication code (HMAC): A hash computed with a secret key that proves a message came from a key holder and wasn't changed.
  • Authenticated encryption (AE): A cipher mode that provides confidentiality and integrity together, such as AES-GCM or ChaCha20-Poly1305.
  • AEAD: Authenticated encryption with associated data, which also protects unencrypted headers.

Important terms

taken from the text above
Transport encryption
Encrypting data in transit between systems.
Key exchange
The process that lets two parties establish a shared symmetric session key.
Key transport
One side creates the session key and encrypts it with the other's public key; this is called a digital envelope.
Key agreement
Both sides contribute values and derive the same secret, as in Diffie-Hellman.
Session key
A temporary symmetric key used for one session only.
Hash-based message authentication code (HMAC)
A hash computed with a secret key that proves a message came from a key holder and wasn't changed.
Authenticated encryption (AE)
A cipher mode that provides confidentiality and integrity together, such as AES-GCM or ChaCha20-Poly1305.
AEAD
Authenticated encryption with associated data, which also protects unencrypted headers.

Examples & real-world scenarios

  • HTTPS: TLS protecting web traffic.
  • A site-to-site VPN using IPsec.
  • HMAC or authenticated encryption making sure data wasn't altered.

Scenario

Staff at a hotel use public Wi-Fi. A company VPN (IPsec or TLS-based) wraps their traffic in encryption, so the untrusted network only sees encrypted packets going to the VPN gateway.

Common mistakes

  • Thinking TLS encrypts everything with the server's public key. It exchanges a session key, then uses symmetric encryption.
  • Forgetting integrity. Encryption without authentication can still be tampered with.

Practical skills

  • Explain the 'digital envelope' in plain words.

What I should remember

  • Session key: A short-lived symmetric key for one connection.
  • Key exchange: Uses asymmetric methods to establish the session key.
  • HMAC: Keyed hash that provides integrity and authenticity.
  • AES-GCM: Authenticated encryption used in modern TLS.