Course contentsShow
← Security
Lesson 2797 of 3,05252. Embedded and IoT SecurityFree lesson

Authentication Protocols for Constrained Environments

Study OSCORE, EDHOC, and other protocols specifically designed for lightweight authentication in IoT scenarios.

Authentication Protocols for Constrained Environments

What you'll learn: How specialized protocols like OSCORE and EDHOC enable secure, efficient authentication on resource-limited IoT devices.

Why Standard Authentication Isn't Enough

Traditional authentication protocols (like full TLS handshakes) assume devices have ample CPU, memory, and battery. IoT sensors running on coin-cell batteries with 8-bit microcontrollers can't afford that luxury. It's like asking someone to carry a full toolbox when they only need a screwdriver—the overhead kills performance and drains power.

OSCORE: Object Security for Constrained RESTful Environments

OSCORE builds on CoAP (which you've studied) to provide end-to-end encryption at the application layer, not transport. Think of it as wrapping each CoAP message in a protective envelope rather than securing the entire communication channel.

  • Uses COSE (CBOR Object Signing and Encryption) for compact cryptographic operations
  • Protects messages hop-by-hop through proxies and intermediaries
  • Minimal overhead: authentication and encryption with ~13 bytes added per message
  • Derives keys from pre-shared secrets or certificates you've already provisioned

EDHOC: Ephemeral Diffie-Hellman Over COSE

EDHOC is a lightweight key exchange protocol designed specifically for constrained devices. It replaces the TLS/DTLS handshake with something far leaner:

  • Uses elliptic curve cryptography (which you studied) for compact public keys
  • Supports multiple authentication methods: PSK, certificates, or raw public keys
  • Completes in 1-3 round trips with minimal processing
  • Establishes session keys for OSCORE to use

Analogy: If DTLS is like showing your passport, scanning documents, and filling out forms at a border crossing, EDHOC is showing a pre-verified ID card and waving through.

Other Constrained Protocols

ACE-OAuth extends OAuth concepts to IoT, letting devices get authorization tokens from constrained servers using CoAP instead of HTTPS.

Key Takeaway: OSCORE and EDHOC deliver strong authentication and encryption with minimal resource consumption by leveraging compact encodings, elliptic curve crypto, and application-layer security—essential for battery-powered IoT devices that can't afford traditional protocol overhead.