Cryptography · Study deck
Elliptic-Curve Cryptography for IoT
Picture a small tracker that must prove who sent an update without carrying a large key.
Shield Shelly is your guide for this deck.

After studying this chapter
Learning objectives
You will be able to:
- Explain: Deterministic nonce generation protects the private-key calculation, but approval also depends on signing the intended bytes, mapping the verification key to the real authority, and enforcing identity, rollback, and expiry.
- Explain: ECDH output is raw key material: validate the peer's public key, then derive scoped keys through a context-bound KDF, and use ephemeral keys (ECDHE) for forward secrecy.
- Explain: A large-scale quantum computer would break ECC, so long-lived devices should plan a post-quantum or hybrid migration (NIST ML-KEM and ML-DSA).
- Explain: The raw ECDH result is never used directly.
Major section
Overview: Strong Public-Key Security in a Small Package
ECDH or X25519 establishes session material; ECDSA or EdDSA approves artifacts or identities.
- This route connects ECC's compact representation to an evidence-backed lifecycle rather than a benchmark-only decision.
Major section
Practitioner: Pick the Role, the Curve, and the Validation
Validation rejects the wrong group or malformed value before computation; the KDF binds transcript, role, and endpoint context; and separate outputs become scoped session keys.
- The raw ECDH result is never used directly.
- This sequence connects the mathematical agreement to the authenticated, purpose-bound channel the system actually needs.
Major section
Under the Hood: The Hard Problem, the Curves, and the Sharp Edges
Deterministic nonce generation protects the private-key calculation, but approval also depends on signing the intended bytes, mapping the verification key to the real authority, and enforcing identity, rollback, and expiry.
- The visual connects the nonce hazard to the complete evidence chain rather than letting one correct signature equation stand in for policy.
Major section
Fit a Signed Update Into the Radio Budget
The private signing key never needs to travel with the update.
- An X25519 public key is 32 bytes on the wire.
- A P-256 point instead needs 33 bytes in compressed form or 65 bytes uncompressed.
- ECC security also depends on validating inputs and using the operation correctly.
Major section
Summary
Key agreement (ECDH, X25519) and signatures (ECDSA, EdDSA) are separate roles that should use separate keys.
- ECDH output is raw key material: validate the peer's public key, then derive scoped keys through a context-bound KDF, and use ephemeral keys (ECDHE) for forward secrecy.
- ECDSA needs a unique, unpredictable per-signature nonce; reuse leaks the private key, so prefer deterministic ECDSA (RFC 6979) or EdDSA (Ed25519).
- A large-scale quantum computer would break ECC, so long-lived devices should plan a post-quantum or hybrid migration (NIST ML-KEM and ML-DSA).
Deck summary
Key takeaways
ECDH or X25519 establishes session material; ECDSA or EdDSA approves artifacts or identities.
- Validation rejects the wrong group or malformed value before computation; the KDF binds transcript, role, and endpoint context; and separate outputs become scoped session keys.
- Deterministic nonce generation protects the private-key calculation, but approval also depends on signing the intended bytes, mapping the verification key to the real authority, and enforcing identity, rollback, and expiry.
- The private signing key never needs to travel with the update.
- Key agreement (ECDH, X25519) and signatures (ECDSA, EdDSA) are separate roles that should use separate keys.
Retrieval practice
Recall check 1 of 5

Shield Shelly says: answer from memory, then check your reasoning.
Q1Why is ECC often preferred over RSA on small, battery-powered IoT devices?
Show answer
Answer: B For a given security level an elliptic-curve key is far smaller than an RSA key, which is exactly the advantage constrained devices need.
Retrieval practice
Recall check 2 of 5

Shield Shelly says: answer from memory, then check your reasoning.
Q2A device and cloud service need an elliptic-curve group. What makes the selection reviewable?
Show answer
Answer: D Each participating endpoint must support the group; a forwarding gateway and the CA have different cryptographic roles.
Retrieval practice
Recall check 3 of 5

Shield Shelly says: answer from memory, then check your reasoning.
Q3A device and a cloud endpoint need fresh session keys for an authenticated transport session. A KDF will bind shared-secret material to the transcript and roles to derive scoped traffic keys. Which ECC role supplies that starting material?
Show answer
Answer: A Key agreement sets up the shared secret, and the KDF, bound to transcript and role, turns it into separate, scoped session keys.
Retrieval practice
Recall check 4 of 5

Shield Shelly says: answer from memory, then check your reasoning.
Q4A long-lived device fleet may need a new curve or trust anchor later. What should its design include now?
Show answer
Answer: C Migration keeps a fielded device from depending forever on one cryptographic choice.
Retrieval practice
Recall check 5 of 5

Shield Shelly says: answer from memory, then check your reasoning.
Q5A constrained device signs messages with ECDSA but its weak random generator produces the same per-signature value for two different messages. What is the consequence?
Show answer
Answer: D ECDSA's security depends on a unique, unpredictable nonce per signature.
Print reference
Answers 1 of 2
Answer key.
- B · For a given security level an elliptic-curve key is far smaller than an RSA key, which is exactly the advantage constrained devices need.
- D · Each participating endpoint must support the group; a forwarding gateway and the CA have different cryptographic roles.
- A · Key agreement sets up the shared secret, and the KDF, bound to transcript and role, turns it into separate, scoped session keys.
- C · Migration keeps a fielded device from depending forever on one cryptographic choice.
Print reference
Answers 2 of 2
Answer key.
- D · ECDSA's security depends on a unique, unpredictable nonce per signature.