A modern system-on-chip is a small city. The CPU cores are downtown, where most of the work happens. Memory controllers are at the edges, where data flows in and out. Caches sit in between, mediating the flow. Peripheral interfaces, USB controllers, networking blocks, display engines, and graphics cores fill in the rest. Somewhere in this layout, often quietly, sits the cryptographic IP block.
Where the crypto block sits, what bus connects it to the rest of the chip, and how it shares memory with the CPU all matter for security and performance. With post-quantum algorithms moving into silicon, integration choices that worked for AES and RSA need to be reconsidered. ML-KEM and ML-DSA have larger keys, larger ciphertexts, and different computational profiles than the classical algorithms they are augmenting.
This article walks through the integration choices that SoC designers face when adding post-quantum cryptography. The threading runs from bus topology through memory protection to side-channel hardening. We finish with practical guidance on what an integrator should expect from a current-generation crypto IP block.
Why placement matters
A cryptographic operation usually has three phases. The host loads inputs into the crypto block, the block processes them, and the host reads results back out. Latency is dominated by the input and output phases for short operations and by the processing phase for long ones. Where the block sits on the bus determines how fast inputs and outputs move.
Placing the crypto block on the same coherent bus as the CPU means it can read CPU memory directly. This is fast for small operations because the data is already in cache. It is slow for large operations because cache pollution slows down the CPU. Placing the crypto block on a separate bus, with its own memory, requires DMA transfers that add latency for small operations but free the CPU during long ones.
For ML-KEM-768, encapsulation involves polynomial multiplication over thousands of coefficients. Decapsulation has the same cost plus the unpacking overhead. Both fit in tens of kilobytes of working memory. ML-DSA is similar in scale. Neither algorithm needs gigabytes of RAM, so dedicated memory inside the crypto block is feasible. The choice becomes whether the chip can spend the silicon area on dedicated SRAM or whether it would rather time-share with system memory.
Bus topologies in modern SoCs
ARM-based SoCs typically use AMBA, the Advanced Microcontroller Bus Architecture. The AXI bus connects high-throughput components like CPU cores and memory controllers. The APB bus, slower and simpler, connects peripherals. Crypto blocks usually sit on AXI when they handle large data flows and on APB when they only handle short control operations.
The Open Core Protocol, popular on some embedded processors, has similar tiering. The OpenTitan project, which we cover later, uses TileLink, an open bus protocol from the SiFive ecosystem. Each bus protocol has different bandwidth, latency, and security characteristics, and crypto blocks must fit the chosen protocol.
Bus interface choices have security implications. A crypto block that shares its bus with untrusted peripherals might leak information through bus arbitration timing. A block that has a dedicated bus is harder for attackers to observe but uses more silicon. Some designs include a private memory port that bypasses the main bus entirely, used only for sensitive material like long-term keys.
The Trusted Computing Group's TPM specifications, which we cover in detail in PQC and TPM 2.0, illustrate one extreme. The TPM has its own bus, its own memory, and minimal communication with the host. The trade-off is that operations are slow because every input and output crosses the bus boundary.
Memory protection and isolation
A crypto block needs to handle keys without exposing them to attackers who control other parts of the chip. The standard approach is hardware isolation. Secret material lives in registers or SRAM inside the crypto block, behind permission checks that block reads from non-privileged software. When secret data must cross the bus, for example to be loaded from a one-time programmable fuse array, the path is dedicated and cannot be observed by other masters.
ARM's TrustZone divides the chip into Secure World and Normal World. Crypto blocks typically sit in Secure World, accessible only to trusted firmware. RISC-V's Physical Memory Protection unit, PMP, gives finer-grained control. The OpenTitan project uses PMP to isolate the crypto subsystem from the rest of the chip while still using the same memory pool.
For ML-KEM and ML-DSA, the secret key is the most sensitive material. ML-KEM-768 secret keys are around 2400 bytes. ML-DSA-65 secret keys are around 4000 bytes. The crypto block needs space for these in protected SRAM, plus working memory for intermediate computations. Total dedicated SRAM is typically 16 to 64 kilobytes for a complete post-quantum crypto block.
Memory protection extends to ephemeral state. During an ML-KEM encapsulation, the block computes a shared secret that must not leak. After the operation, the working memory should be zeroized. Many crypto blocks include automatic zeroization on operation completion, hardware-enforced rather than relying on software to do the right thing.
Crypto coprocessor versus accelerator versus instruction extension
There is a spectrum of integration choices. At the loosest end, a crypto coprocessor is a separate processor with its own instruction stream, communicating with the host CPU through a shared queue. At the tightest end, a crypto instruction extension adds new opcodes to the host CPU, executing crypto in the same pipeline as everything else.
Coprocessors give the most flexibility because firmware updates can change algorithms without silicon changes. They have higher latency for short operations because of communication overhead. Accelerators sit in between, exposing fixed functions to the host but running them faster than software. Instruction extensions are the fastest for short operations but lock the chip to specific algorithms.
For ML-KEM and ML-DSA, the dominant operation is the number-theoretic transform, NTT. An NTT instruction extension would benefit any lattice-based algorithm. RISC-V working groups are discussing such extensions as part of the cryptographic extension specification. ARM has hinted at similar additions in future architectures. As of this writing, most production crypto blocks for post-quantum are accelerators rather than instruction extensions.
QNSQY runs entirely in software on commodity x86-64 CPUs and does not depend on PQC acceleration. Its cryptography is compiled into the binary rather than taken from system libraries, so new NTT or lattice hardware would only speed QNSQY up if support for it were added to QNSQY.
Side-channel hardening at the silicon level
Software side-channel mitigations like constant-time implementation are necessary but not sufficient. At the silicon level, additional defenses are required. Power analysis attacks observe the power draw of the chip during a cryptographic operation. Electromagnetic emanation attacks observe the radio-frequency leakage. Both can recover secret keys if the implementation is not hardened.
Differential power analysis countermeasures include masking, where every secret value is split into two or more shares that are combined only at the end of the computation. Hiding techniques add noise or change the timing pattern to make analysis harder. At the silicon level, dual-rail logic and balanced clocking reduce the data dependence of power consumption.
For lattice cryptography, masking is more complex than for AES because the operations are arithmetic over polynomial rings, not bit-level XORs. Researchers have published masked implementations of ML-KEM and ML-DSA, but the performance cost is significant, often 2x to 5x slower than unmasked. Silicon implementations of masked lattice crypto are still rare in commodity products.
Side-channel countermeasures on embedded PQC covers the algorithmic and silicon-level defenses in more depth.
Integration patterns for hybrid cryptography
QNSQY's hybrid modes pair ML-KEM with X25519 and, on Pro and Business, ML-DSA with Ed25519. From a silicon integration perspective, this means a chip needs both classical and post-quantum acceleration to get the full benefit. Most modern SoCs already have AES and elliptic curve hardware. Adding ML-KEM and ML-DSA hardware completes the picture.
The hybrid construction has a useful property for SoC designers. The classical and post-quantum components are independent, so they can run in parallel on separate hardware blocks if available. A clever design can hide the post-quantum latency behind the classical operation, reducing the wall-clock time for a key agreement to little more than the slower of the two.
Hybrid encryption covers the cryptographic construction. The integration angle is that the two halves share little state and can be physically separate on the chip, which simplifies side-channel analysis and isolation.
Power and thermal considerations
Mobile and embedded SoCs operate in tight power budgets. A smartphone might allocate hundreds of milliwatts for cryptographic operations during active use, and much less during standby. An IoT sensor might allocate microwatts. ML-KEM and ML-DSA, even in optimized silicon implementations, draw more power than AES because the operations are arithmetic-heavy.
Power gating is the standard mitigation. The crypto block is powered off when not in use, then powered up briefly for an operation. Wakeup time matters because cold-start the first time after power-up is slow. Modern designs use retention SRAM that keeps state during low-power modes without full power consumption.
For battery-operated devices, the energy per operation matters more than the raw speed. Vendors increasingly publish energy-per-operation numbers in their datasheets. For a sensor that wakes up once per hour to send a signed reading, total annual energy budget includes the wakeup overhead, the cryptographic operation, and the radio transmission. Optimizing for energy rather than speed gives different design choices than optimizing for throughput.
Random number generation
A crypto block is only as good as its random number source. ML-KEM and ML-DSA both consume large amounts of randomness during key generation and signing. ML-DSA in particular uses rejection sampling, where the algorithm draws random values until it finds ones that satisfy specific constraints. This means the random number generator must keep up with the crypto block.
Most SoCs include a true random number generator, TRNG, based on ring oscillators, thermal noise, or other physical entropy sources. NIST SP 800-90B describes the validation requirements for entropy sources. The TRNG output is typically conditioned through a deterministic random bit generator, DRBG, conforming to NIST SP 800-90A.
For ML-DSA, randomness consumption can be hundreds of bytes per signature, more if rejection sampling has to retry. The TRNG and DRBG combination must produce randomness at least as fast as the crypto block can consume it, otherwise the signing operation stalls waiting for entropy.
Test access and debug
Silicon test access ports, JTAG and similar, are used during chip debug and manufacturing. They are notoriously difficult to secure because they need to access internal state. A crypto block with a poorly secured test access port can leak keys through scan chains.
NIST guidance and Common Criteria evaluations both address test access. The standard approach is to disable test access permanently after manufacturing, by blowing fuses that cut the test signals. This works for static keys provisioned during manufacturing. For runtime-generated keys, the approach is to ensure that scan chains cannot read register values containing live secrets, by adding gating logic that clears the register before allowing scan-out.
For post-quantum crypto blocks, the same principles apply. The larger key sizes mean more registers to protect, but the architectural approach is unchanged.
What integrators should ask their crypto IP vendors
When evaluating a post-quantum crypto IP block, integrators should ask several specific questions. Which NIST FIPS revisions does the implementation target, and has it passed the corresponding test vectors? What side-channel countermeasures are included, and have they been validated against power and electromagnetic analysis? What is the silicon area, energy per operation, and worst-case latency?
Documentation should include the bus interface specification, register map, and integration guide. Reference test bench code should exercise the block against NIST test vectors. The vendor should commit to maintenance for the silicon's expected lifetime, which for embedded products can be a decade or more.
Frequently asked questions
Where do crypto blocks usually sit on a modern SoC? On the high-performance bus alongside CPU cores and memory controllers, with a control interface on a slower peripheral bus. Some designs use dedicated buses for higher security.
Do post-quantum algorithms require new silicon? Software implementations work on existing silicon, but performance is much better with NTT accelerators. Silicon support for ML-KEM and ML-DSA is starting to appear in new SoC designs.
What memory protection do crypto blocks need? Hardware isolation of secret material from non-privileged software, automatic zeroization on operation completion, and protection against bus snooping by other masters.
Are crypto instruction extensions better than coprocessors? For short, frequent operations, instruction extensions are faster. For longer operations or when flexibility matters, coprocessors win. Most current post-quantum silicon uses accelerators, a middle option.
How does hybrid encryption affect SoC integration? The classical and post-quantum components can run in parallel on separate hardware blocks, hiding latency. The two halves share little state, which simplifies side-channel analysis.
Sources
- ARM AMBA Specification, https://developer.arm.com/documentation/ihi0022/latest/
- TileLink Specification SiFive, https://www.sifive.com/documentation
- NIST FIPS 203, Module-Lattice-Based Key-Encapsulation Mechanism Standard, https://csrc.nist.gov/pubs/fips/203/final
- NIST FIPS 204, Module-Lattice-Based Digital Signature Standard, https://csrc.nist.gov/pubs/fips/204/final
- NIST SP 800-90A Recommendation for Random Number Generation Using Deterministic Random Bit Generators, https://csrc.nist.gov/pubs/sp/800/90/a/r1/final
- NIST SP 800-90B Recommendation for the Entropy Sources Used for Random Bit Generation, https://csrc.nist.gov/pubs/sp/800/90/b/final
- OpenTitan Documentation, https://opentitan.org/
Related Articles
- Side-channel countermeasures on embedded PQC
- PQC and TPM 2.0
- Hybrid encryption
- ML-KEM explained
- What is post-quantum cryptography
- PQC Stack Memory Footprint Comparison
- PQC on Smart Cards: ROM, RAM, and Cycle Budgets
- 6G Research and PQC: ITU-T and 3GPP Direction
- PQC on Satellite Hardware: Radiation and Verify Costs
Protect Your Data Before Q-Day Arrives
QNSQY's NIST-standardized post-quantum encryption protects files against both current and quantum-era threats.