Chapter 8
Constrained and Embedded Device Migration
In this chapter
PQC at the Physical Edge
Most PQC migration guidance assumes enterprise hardware: servers with gigabytes of RAM, modern CPUs with cryptographic acceleration, reliable network connectivity, and the ability to push software updates on demand. A large and growing portion of the federal attack surface does not look like that at all.
IoT sensors, programmable logic controllers, SCADA remote terminal units, embedded navigation systems, and single-board computers operate under severe constraints: kilobytes of RAM rather than gigabytes, microcontrollers running at tens or hundreds of megahertz rather than multicore server CPUs, battery power budgets measured in milliampere-hours, and physical deployment in locations where a firmware update requires a truck roll. These devices face the same quantum cryptographic threat as enterprise servers — but cannot follow the same migration playbook.
This chapter covers what actually works at the constrained edge: which PQC algorithms are feasible on which hardware classes, the gateway architecture pattern that allows severely constrained devices to benefit from PQC-quality key material without running quantum-safe algorithms locally, SCADA and ICS-specific security considerations, and a hands-on lab exercise demonstrating PQC on a Raspberry Pi.
| What You Will Learn RAM, compute, power, and connectivity constraints that govern embedded PQC feasibility. Which PQC parameter sets are achievable on ARM Cortex-M4, Cortex-A class, and Raspberry Pi hardware. The gateway architecture pattern for severely constrained devices. SCADA, ICS, and OT-specific security considerations for PQC migration. Lab exercise: install liboqs on a Raspberry Pi, benchmark ML-KEM, and establish a hybrid TLS connection. |
|---|
8.1 The Constrained Hardware Challenge: RAM, Compute, Power
Before selecting a PQC migration approach for any embedded device, you need to know which constraints actually bind. Not all constrained devices are constrained in the same way. A Raspberry Pi 4 with 4 GB of RAM is constrained relative to a server but is fully capable of running all NIST PQC algorithms at acceptable performance. A Cortex-M4 microcontroller with 256 KB of RAM faces fundamentally different constraints. A battery-powered LoRaWAN sensor node with 64 KB of RAM and a sub-mW power budget is in a completely different category again.
The Four Constraint Dimensions
| Constraint | Impact on PQC | Key Question |
|---|---|---|
| RAM | ML-KEM-768 needs ~3 KB working memory. ML-DSA-65 signing needs ~38 KB. ML-DSA-87 needs ~56 KB. Devices with < 64 KB RAM cannot run ML-DSA signing without careful memory management or algorithm selection. | How much RAM is available for cryptographic operations? |
| Compute | ML-KEM-768 key generation takes ~1.2 ms on Cortex-M4 at 168 MHz — acceptable. ML-DSA-65 signing takes ~9.8 ms. For real-time control systems with strict timing requirements, signing latency must be evaluated against the control loop period. | What is the maximum acceptable cryptographic operation latency? |
| Power | ML-KEM-768 encapsulation consumes approximately 22 μJ on Cortex-M4 at 3.3V. Battery-powered devices performing frequent key exchange may see measurable battery life reduction. AES-256-GCM encryption of a 1 KB payload uses only 0.8 μJ. | What is the device’s power budget for cryptographic operations? |
| Connectivity | PQC key sizes are larger than classical equivalents. ML-KEM-1024 public keys are 1,568 bytes. On low-bandwidth links (LoRaWAN: 250 bps – 50 kbps; LPWAN; RS-485), key material transmission time may be a bottleneck. | What is the available bandwidth on the device’s communication link? |
Device Class Reference
| Device Class | Example Devices | Typical RAM | Clock Speed | PQC Feasibility |
|---|---|---|---|---|
| Class A — Full capability | Raspberry Pi 4/5, Intel NUC, embedded Linux SBCs | 1–8 GB | 1.0–2.0 GHz | Full PQC suite. All NIST algorithms at all parameter levels. Run liboqs or OpenSSL 3.5 directly. |
| Class B — Linux capable | Raspberry Pi Zero 2W, BeagleBone, older SBCs | 256–512 MB | 400–700 MHz | Full PQC suite with performance caveats. ML-DSA signing is slow (~100–300 ms). Suitable for session-establishment operations, not high-frequency signing. |
| Class C — RTOS / bare metal (capable) | STM32H7, NXP i.MX RT, Cortex-M7 | 512 KB – 1 MB RAM | 100–600 MHz | ML-KEM-512/768 feasible. ML-DSA-65 feasible with careful RAM management. Gateway pattern recommended for ML-DSA-87. |
| Class D — Microcontroller (constrained) | STM32F4 (Cortex-M4), Nordic nRF52 | 64–256 KB RAM | 64–168 MHz | ML-KEM-512/768 feasible. ML-DSA-65 marginal (38 KB RAM). ML-DSA-87 not feasible. FN-DSA-512 preferred for signing. Gateway pattern recommended. |
| Class E — Ultra-constrained | ATmega, MSP430, low-power IoT MCUs | 2–32 KB RAM | 8–32 MHz | Classical PQC algorithms not feasible. Gateway pattern required. AES-256 symmetric operations are feasible. |
8.2 PQC Algorithm Selection for Constrained Devices
Chapter 4 provided the master algorithm decision table for enterprise environments. This section provides the constrained-device overlay: which algorithms are feasible at which device class, and what the engineering tradeoffs are.
Key Exchange on Constrained Hardware
| Algorithm | RAM (KB) | Time (ms, Cortex-M4) | Energy (μJ) | Feasible Class | Notes |
|---|---|---|---|---|---|
| ML-KEM-512 KeyGen | 2.5 | 0.8 | 12 | C, D, E (marginal) | Level 1 security. Not CNSA 2.0. Suitable for low-power IoT where Level 1 is acceptable. |
| ML-KEM-512 Encaps | 2.5 | 1.0 | 15 | C, D, E (marginal) | Smallest PQC key exchange. Public key: 800 bytes. |
| ML-KEM-768 KeyGen | 3.0 | 1.2 | 18 | C, D | Level 3 security. FCEB standard. Public key: 1,184 bytes. |
| ML-KEM-768 Encaps | 3.0 | 1.5 | 22 | C, D | Best balance of security and size for constrained devices. |
| ML-KEM-1024 KeyGen | 4.0 | 2.1 | 32 | C, D (marginal) | CNSA 2.0 required. Public key: 1,568 bytes. Verify RAM headroom. |
| ML-KEM-1024 Encaps | 4.0 | 2.6 | 39 | C, D (marginal) | Acceptable latency even on constrained hardware for session establishment. |
| X25519 (classical, reference) | < 1 | 0.4 | 6 | All classes | Classical reference. Faster and smaller but quantum-vulnerable. |
Signing on Constrained Hardware
| Algorithm | RAM (KB) | Sign (ms) | Verify (ms) | Sig Size (bytes) | Feasible Class | Notes |
|---|---|---|---|---|---|---|
| ML-DSA-44 | 28 | 6.1 | 3.4 | 2,420 | C, D (marginal) | Level 2. Not recommended for new deployments. Memory tight on Class D. |
| ML-DSA-65 | 38 | 9.8 | 5.2 | 3,309 | C, D (tight) | Level 3. FCEB standard. 38 KB RAM requirement excludes many Class D devices. |
| ML-DSA-87 | 56 | 14.2 | 7.8 | 4,627 | C only | CNSA 2.0. 56 KB RAM requirement excludes Class D. Gateway pattern for Class D/E. |
| FN-DSA-512 | 12 | 6.4 | 3.2 | 666 | C, D | Level 1. Compact signatures ideal for bandwidth-constrained links. RAM-efficient. |
| FN-DSA-1024 | 22 | 12.1 | 6.0 | 1,280 | C, D (marginal) | Level 5. Still smaller signatures than ML-DSA. Good for CNSA 2.0 scope + bandwidth constraint. |
| SLH-DSA-SHA2-128f | 8 | 820 | 28 | 17,088 | C, D (verify only) | Verify only on constrained devices — signing too slow for real-time use. Large signature size a concern. |
| ECDSA P-256 (classical reference) | < 1 | 0.8 | 1.2 | 64 | All classes | Classical reference. Fast and small but quantum-vulnerable. |
Algorithm Selection Decision Guide for Constrained Devices
Use the following decision sequence for each constrained device in your CBOM:
- Determine the device class (A through E) using the table in Section 8.1.
- For Class A and B: deploy standard PQC (ML-KEM-768 or ML-KEM-1024, ML-DSA-65 or ML-DSA-87) using liboqs or OpenSSL 3.5. No special accommodation required.
- For Class C: ML-KEM at all parameter levels is feasible. ML-DSA-65 is feasible. ML-DSA-87 requires careful RAM profiling. FN-DSA-512 is preferred for signing if bandwidth is constrained.
- For Class D: ML-KEM-768 for key exchange is the standard choice. For signing, choose between ML-DSA-65 (if 38 KB RAM is available) and FN-DSA-512 (if RAM is tight or bandwidth is constrained). ML-KEM-1024 and ML-DSA-87 require gateway pattern for CNSA 2.0 compliance.
- For Class E: Gateway pattern required. The device handles AES-256-GCM symmetric encryption using keys delivered by the gateway. No asymmetric PQC operations run on the device itself.
| The Symmetric Key Bridge For Class E devices that cannot run any PQC asymmetric operations, the migration path is: (1) establish PQC-secured communication between the gateway and the backend, (2) deliver AES-256 session keys to the edge device over a physically secured or short-range link, (3) the device uses AES-256-GCM for all payload encryption. The PQC security guarantee applies to the key delivery chain, not the device itself. This is an acceptable interim architecture for the most severely constrained devices. |
|---|
8.3 The Gateway Architecture Pattern
The gateway architecture pattern is the practical solution for deploying PQC-quality security across a mixed estate of capable and constrained devices. The core insight is simple: not every device needs to run PQC algorithms locally. Every device needs to be protected by PQC-quality key material. Those are different requirements.
Architecture Overview
A PQC-capable gateway node sits at the boundary between the enterprise network and the constrained device population. The gateway:
- Terminates PQC-secured connections from the enterprise network. ML-KEM key exchange and ML-DSA authentication with the backend infrastructure. The gateway holds ML-DSA certificates and establishes TLS 1.3 with X25519MLKEM768 hybrid key exchange toward the enterprise.
- Maintains a local pool of PQC-derived symmetric keys. The gateway uses the PQC-secured enterprise connection to derive or receive fresh AES-256 session keys. These keys are stored locally in a hardware-backed secure element or TPM.
- Distributes keys to edge devices over short-range authenticated links. Wired Ethernet, Wi-Fi, Bluetooth LE, Zigbee, or RS-485 — whatever the device natively supports. The key delivery channel is authenticated using a pre-shared symmetric key or a device-specific key derived during device provisioning.
- Manages device identities and access control. The gateway is the policy enforcement point for the constrained device population. It maintains a device registry, authenticates device requests, and controls which devices receive which key material.
Key Delivery Protocol
The key delivery from gateway to constrained device follows a simple request-response pattern:
- The edge device sends a key request to the gateway over the local link, authenticated with its pre-shared device key (HMAC-SHA256 minimum).
- The gateway verifies the device identity and authorization.
- The gateway retrieves a fresh AES-256 session key from its local key pool (derived from PQC-secured backend key material).
- The gateway encrypts the session key for the requesting device using the device’s pre-shared key (AES-256-GCM key wrap).
- The edge device decrypts and uses the session key for AES-256-GCM payload encryption.
- Session keys are rotated on a schedule appropriate to the application — daily for moderate sensitivity, per-session for high sensitivity.
Gateway Sizing and Redundancy
| Deployment Scale | Recommended Gateway Hardware | Key Pool Size | Redundancy |
|---|---|---|---|
| < 50 edge devices | Raspberry Pi 4 (4 GB) or industrial SBC | 1,000 pre-derived keys | Single gateway with manual failover procedure |
| 50–500 edge devices | Industrial PC or small server (i5/i7 class) | 10,000 pre-derived keys | Active-passive gateway pair; automated failover |
| 500–5,000 edge devices | Rack server or VM cluster | 100,000 pre-derived keys | Active-active cluster with load balancing |
| > 5,000 edge devices | Distributed gateway hierarchy | Hierarchical key management | Multi-tier gateway architecture; consult vendor |
Security Properties of the Gateway Pattern
What the gateway pattern provides:
- PQC-quality key material for edge device session encryption — the session keys are derived from PQC-secured backend communication.
- Centralized key management and rotation — edge devices do not need to manage cryptographic state.
- A clear security boundary — the gateway is the cryptographic trust anchor for the constrained device population.
What the gateway pattern does not provide:
- End-to-end PQC security from the backend to the edge device — the last hop (gateway to device) uses symmetric encryption, not PQC asymmetric cryptography.
- Protection against a compromised gateway — the gateway has access to all session keys for the devices it serves. Gateway security is paramount; apply defense-in-depth including HSM-backed key storage, network segmentation, and physical security.
| ⚠ Gateway Physical Security The gateway is the cryptographic trust anchor for all devices it serves. A compromised gateway compromises all device communications. Apply physical security controls (locked enclosures, tamper-evident seals, physical access logging) proportional to the sensitivity of the devices served. For CNSA 2.0-scope edge deployments, gateway key storage must use an HSM. |
|---|
8.4 SCADA and ICS-Specific Considerations
Supervisory Control and Data Acquisition (SCADA) systems and Industrial Control Systems (ICS) present the most challenging PQC migration environment in the federal and critical infrastructure portfolio. These systems combine the constraints of embedded hardware with real-time control requirements, operational technology (OT) protocol stacks that predate modern cryptography, and operational continuity requirements that make downtime for migration extremely costly.
The OT/IT Convergence Challenge
Modern SCADA environments increasingly connect operational technology networks — historically air-gapped or lightly connected — to IT enterprise networks. This convergence creates new pathways for cyber threats but also creates the connectivity infrastructure through which PQC migration can be implemented. The challenge is that OT and IT operate under fundamentally different security assumptions:
| Dimension | IT Environment | OT / ICS Environment |
|---|---|---|
| Availability priority | High — but downtime recoverable | Extreme — downtime may affect safety |
| Patching cadence | Weekly to monthly | Quarterly to annual (or never) |
| Cryptographic protocol | TLS 1.3, SSH, modern PKI | DNP3, Modbus, IEC 61850, ICCP — often no encryption |
| Device lifecycle | 3–5 years typical | 10–30 years common |
| Change management | Agile / continuous deployment | Formal change control; factory acceptance testing |
| Safety implications | Data loss / service disruption | Potential physical consequences |
| Remote access | Standard — VPN, jump hosts | Limited — strict network segmentation |
IEC 62443 Alignment
IEC 62443 is the international standard series for industrial cybersecurity. Security levels SL1–SL4 define the required cryptographic strength for IACS (Industrial Automation and Control Systems) components. PQC migration in ICS environments should align with IEC 62443 security level requirements:
- SL1 (protection against casual or coincidental violation): AES-256 symmetric encryption is sufficient. No immediate PQC asymmetric migration required, but plan for key exchange migration within the device lifecycle.
- SL2 (protection against intentional violation using simple means): ML-KEM-768 or gateway-pattern PQC key delivery recommended. Begin migration planning now.
- SL3 (protection against sophisticated attack): ML-KEM-1024 and ML-DSA-87 required where hardware supports it. Gateway pattern for devices that cannot run these directly. Equivalent to FCEB high-impact system requirements.
- SL4 (protection against state-sponsored attack): CNSA 2.0-equivalent requirements. ML-KEM-1024 and ML-DSA-87 throughout. This level is typically reserved for the most critical national infrastructure.
Protocol-Level PQC for ICS
DNP3 over TLS: DNP3 Secure Authentication Version 5 (SAv5) supports TLS transport. The TLS layer can be migrated to hybrid PQC (X25519MLKEM768) using the standard Chapter 5 TLS recipe. DNP3 application-layer authentication uses HMAC-SHA256 which is already quantum-safe at this key length.
Modbus over TLS: Standard Modbus does not include cryptographic protection. Modbus TCP deployments tunneled over TLS can have the TLS layer migrated to hybrid PQC. For Modbus RS-485 (serial), the gateway pattern is required — the gateway terminates PQC-secured connections from the enterprise and bridges to Modbus serial devices.
IEC 61850 (MMS and GOOSE): IEC 61850 over MMS (Manufacturing Message Specification) uses TCP transport that can be TLS-wrapped with hybrid PQC. GOOSE (Generic Object Oriented Substation Event) messages are typically multicast without TLS — authentication uses IEC 62351-6, which is being updated to include PQC. Monitor IEC TC57 WG15 publications for GOOSE PQC guidance.
OPC UA: OPC UA has an active PQC working group and is expected to publish PQC security policy profiles in 2026–2027. Monitor OPC Foundation publications. OPC UA's security model is TLS-based at the transport layer and can use hybrid PQC TLS as an interim measure today.
The Migration Approach for Long-Lifecycle ICS Devices
For ICS devices with 15–30 year lifecycles that cannot be replaced on a PQC migration timeline, the pragmatic approach is:
- Deploy a PQC-capable gateway at the boundary between the ICS network and the enterprise network. All enterprise-facing connections use hybrid PQC TLS.
- Apply AES-256 encryption at the application layer for device-to-gateway communication wherever the device supports it.
- For devices that support no cryptography: apply physical and network security controls (air gap where possible, strict network segmentation, anomaly detection).
- Include PQC requirements in all future ICS procurement specifications. The device you buy today should be the last classically-signed device you deploy.
- Track IEC 62443 and protocol-specific PQC updates and plan protocol-layer migration during scheduled maintenance windows.
8.5 Lab Exercise: PQC on a Raspberry Pi with liboqs
| Lab Prerequisites Raspberry Pi 4 (2 GB RAM or more) or Raspberry Pi 5, running Raspberry Pi OS (64-bit, Bookworm). Internet connectivity for package installation. A second device (laptop or another Pi) to act as the TLS client. Basic Linux command-line familiarity. Estimated time: 60–90 minutes. This lab demonstrates that PQC is achievable on affordable, widely available hardware — bridging the gap between enterprise deployment and the constrained edge. |
|---|
Step 1: Update the System and Install Dependencies
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install -y \
build-essential cmake ninja-build \
libssl-dev python3 python3-pip \
git curl wget
Step 2: Build and Install liboqs
liboqs is the Open Quantum Safe project’s C library implementing all NIST PQC algorithms. We build it from source to ensure we have the latest version with ARM optimizations:
cd ~
git clone --depth 1 https://github.com/open-quantum-safe/liboqs.git
cd liboqs
mkdir build && cd build
cmake -GNinja \
-DOQS_USE_OPENSSL=ON \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=Release \
..
ninja -j$(nproc)
sudo ninja install
sudo ldconfig
# Verify liboqs installed correctly
ls /usr/local/lib/liboqs*
# Expected: liboqs.so and liboqs.a
Step 3: Install OpenSSL 3.5 with oqs-provider
The oqs-provider plugin connects liboqs to OpenSSL, making all PQC algorithms available through the standard OpenSSL API:
cd ~
git clone --depth 1 https://github.com/open-quantum-safe/oqs-provider.git
cd oqs-provider
mkdir build && cd build
cmake -GNinja \
-Dliboqs_DIR=/usr/local/lib/cmake/liboqs \
-DOPENSSL_ROOT_DIR=/usr \
..
ninja -j$(nproc)
sudo ninja install
# Configure OpenSSL to load oqs-provider
sudo tee -a /etc/ssl/openssl.cnf > /dev/null << 'EOF'
[provider_sect]
default = default_sect
oqsprovider = oqs_sect
[oqs_sect]
module = /usr/local/lib/ossl-modules/oqsprovider.so
activate = 1
EOF
# Verify oqs-provider loads and PQC algorithms are available
openssl list -kem-algorithms -provider oqsprovider | grep -i mlkem
# Expected: ML-KEM-512, ML-KEM-768, ML-KEM-1024
openssl list -signature-algorithms -provider oqsprovider | grep -i mldsa
# Expected: ML-DSA-44, ML-DSA-65, ML-DSA-87
Step 4: Benchmark ML-KEM on the Raspberry Pi
Run the liboqs benchmark tool to measure PQC performance on the Pi’s ARM Cortex-A72 (Pi 4) or Cortex-A76 (Pi 5):
cd ~/liboqs/build
./tests/speed_kem 2>&1 | grep -E 'ML-KEM|keygen|encaps|decaps'
Record the output. You should see results significantly faster than the Cortex-M4 figures in Section 8.2, because the Pi’s Cortex-A-class CPU has hardware acceleration features not available on microcontrollers. Compare your results to the following reference values:
| Operation | Pi 4 (Cortex-A72, 1.8 GHz) | Pi 5 (Cortex-A76, 2.4 GHz) | Notes |
|---|---|---|---|
| ML-KEM-768 KeyGen | ~0.08 ms | ~0.05 ms | Extremely fast on Cortex-A class |
| ML-KEM-768 Encaps | ~0.10 ms | ~0.07 ms | Negligible overhead vs. classical |
| ML-KEM-768 Decaps | ~0.09 ms | ~0.06 ms | |
| ML-KEM-1024 KeyGen | ~0.14 ms | ~0.09 ms | CNSA 2.0 level; still fast |
| ML-DSA-65 Sign | ~0.30 ms | ~0.20 ms | 100x faster than Cortex-M4 |
| ML-DSA-87 Sign | ~0.45 ms | ~0.30 ms | Fully feasible for all use cases |
Step 5: Generate a PQC Key Pair and Certificate on the Pi
mkdir ~/pqc-pi-demo && cd ~/pqc-pi-demo
# Generate ML-KEM-768 key pair
openssl genpkey -algorithm ML-KEM-768 \
-provider oqsprovider -provider default \
-out mlkem768-key.pem
openssl pkey -in mlkem768-key.pem -pubout -out mlkem768-pub.pem
# Generate ML-DSA-65 signing key and self-signed certificate
openssl genpkey -algorithm ML-DSA-65 \
-provider oqsprovider -provider default \
-out mldsa65-key.pem
openssl req -new -x509 \
-key mldsa65-key.pem \
-out mldsa65-cert.pem \
-days 365 \
-provider oqsprovider -provider default \
-subj "/CN=PQC Pi Demo/O=Lab/C=US"
# Verify the certificate uses ML-DSA
openssl x509 -in mldsa65-cert.pem -noout -text \
| grep 'Signature Algorithm'
# Expected: Signature Algorithm: id-ML-DSA-65
Step 6: Run a PQC TLS Server on the Pi
cd ~/pqc-pi-demo
# Start a TLS 1.3 server with ML-DSA certificate and hybrid PQC key exchange
openssl s_server \
-cert mldsa65-cert.pem \
-key mldsa65-key.pem \
-port 4433 \
-tls1_3 \
-groups X25519MLKEM768 \
-provider oqsprovider -provider default \
-www &
# From the Pi itself (or another device), connect as a client
openssl s_client \
-connect localhost:4433 \
-tls1_3 \
-groups X25519MLKEM768 \
-provider oqsprovider -provider default \
-CAfile mldsa65-cert.pem 2>&1 \
| grep -E 'Server Temp Key|Cipher|Verify'
# Expected:
# Server Temp Key: X25519MLKEM768, 1216 bits
# Cipher : TLS_AES_256_GCM_SHA384
# Verify return code: 0 (ok)
Step 7: Measure End-to-End TLS Handshake Performance
# Time 100 TLS handshakes to measure real-world hybrid PQC overhead
time for i in $(seq 1 100); do
openssl s_client \
-connect localhost:4433 \
-tls1_3 -groups X25519MLKEM768 \
-provider oqsprovider -provider default \
-CAfile mldsa65-cert.pem \
-quiet < /dev/null 2>/dev/null
done
# Expected: 100 handshakes in approximately 3-5 seconds on Pi 4
# (30-50 ms per handshake including TCP setup)
Step 8: Simulate the Gateway Key Delivery Pattern
This step demonstrates the gateway pattern from Section 8.3 — a PQC-capable gateway deriving a symmetric key and delivering it to a simulated constrained device:
# On the gateway (Pi running the PQC TLS server):
# Derive a 256-bit session key from a PQC-established shared secret
SHARED_SECRET=$(openssl rand -hex 32)
SESSION_KEY=$(echo -n "$SHARED_SECRET:device-001:$(date +%s)" \
| openssl dgst -sha384 -binary | xxd -p -c 64 | head -c 64)
echo "Session key for device-001: $SESSION_KEY"
# Encrypt a sensor payload using the derived session key
echo 'temperature=23.4,humidity=61.2,timestamp=1720000000' > sensor_payload.txt
openssl enc -aes-256-gcm \
-K $SESSION_KEY \
-iv $(openssl rand -hex 12) \
-in sensor_payload.txt \
-out sensor_encrypted.bin
echo "Encrypted payload size: $(wc -c < sensor_encrypted.bin) bytes"
# The key material is PQC-derived; the encryption is AES-256-GCM
# A Class E device with no PQC capability can decrypt this using only AES
| Lab Takeaway This lab demonstrates three things: 1. PQC algorithms run on a $35–$80 Raspberry Pi at latencies indistinguishable from classical algorithms for most applications. 2. A full hybrid TLS connection with ML-DSA certificates and X25519MLKEM768 key exchange is functional on Class A/B embedded hardware today, with no special accommodation. 3. The gateway pattern provides PQC-quality key material to AES-256-only edge devices without requiring PQC library support on those devices. Quantum computing is not just for expensive aircraft and laboratory systems. It is engineering work that runs on hardware that costs less than a textbook. |
|---|
Chapter 8 Summary
Before moving to Chapter 9, you should be able to answer these questions:
- Have I classified every constrained device in my CBOM by device class (A through E)?
- Have I identified which devices can run PQC algorithms locally and which require the gateway pattern?
- For Class D and E devices, have I designed a gateway architecture with appropriate sizing and redundancy?
- Have I identified the ICS/SCADA protocols in my OT environment and researched their PQC migration paths?
- Have I included PQC requirements in all future embedded hardware procurement specifications?
- Have I completed the lab exercise and confirmed PQC TLS on the Pi?
| Constrained Device Migration Is a Decade-Long Program Many embedded devices in federal and critical infrastructure environments have 10–30 year operational lifetimes. The devices being deployed today will be operating in 2040. Include PQC requirements in every embedded device procurement starting now. The cheapest PQC migration is the one you design in from the beginning. |
|---|
What’s Next
Chapter 9 covers cloud and managed service migration — quantum-safe migration patterns for AWS GovCloud, Azure Government, and hybrid cloud environments. Cloud services touch every other migration in the program: TLS termination at load balancers, key management services, certificate issuance, and API gateways all have PQC migration paths that are largely provider-managed but require engineer configuration and verification.
References
[1] Open Quantum Safe Project. liboqs — Open Quantum Safe C Library. Linux Foundation Post-Quantum Cryptography Alliance. Available at: github.com/open-quantum-safe/liboqs. [ARM Cortex-A and Cortex-M performance benchmarks available at openquantumsafe.org/benchmarking.]
[2] Banegas, G. et al. (2023). “ML-KEM and ML-DSA on Cortex-M4.” IACR ePrint Archive. [Cortex-M4 performance benchmarks referenced in Sections 8.1 and 8.2.]
[3] IEC 62443. (2018–2022). Industrial Automation and Control Systems Security. International Electrotechnical Commission. [Security level definitions referenced in Section 8.4.]
[4] CISA. (2022). ICS-CERT Advisory: Post-Quantum Cryptography Considerations for Industrial Control Systems. Cybersecurity and Infrastructure Security Agency. Available at: cisa.gov/ics-cert.
[5] OPC Foundation. (2025). OPC UA Security for Post-Quantum Cryptography — Working Group Interim Report. Available at: opcfoundation.org. [OPC UA PQC policy profile development timeline.]
[6] IEC TC57 WG15. (2025). IEC 62351-6 Amendment: Post-Quantum Cryptography for GOOSE and Sampled Values. International Electrotechnical Commission. [GOOSE PQC authentication update in development.]
[7] Raspberry Pi Foundation. (2024). Raspberry Pi 4 and 5 Technical Specifications. Available at: raspberrypi.com/products. [ARM Cortex-A72/A76 specifications referenced in lab exercise.]
[8] Open Quantum Safe Project. oqs-provider — OpenSSL 3.x Provider for liboqs. Available at: github.com/open-quantum-safe/oqs-provider. [Lab exercise installation and configuration reference.]