
Most of the encryption protecting mobile money, internet banking, VPNs and software updates in East Africa relies on public-key algorithms that a large, fault-tolerant quantum computer could break. Such a machine does not exist today, but adversaries can record encrypted traffic now and decrypt it later, and migrating a bank's cryptography takes years. This article explains exactly what quantum computers threaten and what they do not, summarises the NIST post-quantum standards published in August 2024, and lays out a practical migration roadmap for a bank, SACCO, fintech or SME in the region.
Key takeaways
- Shor's algorithm breaks RSA, Diffie-Hellman and elliptic-curve cryptography (ECDH, ECDSA, EdDSA) on a sufficiently large fault-tolerant quantum computer. These underpin TLS, VPNs, code signing and PKI.
- Grover's algorithm only weakens symmetric ciphers and hashes quadratically. AES-256 and SHA-256/SHA-384 remain sound choices.
- Harvest now, decrypt later makes the threat current for data with long confidentiality requirements.
- NIST published FIPS 203 (ML-KEM), FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA) in August 2024. These are the algorithms to plan around.
- The real work is crypto-agility: knowing where cryptography lives in your estate and being able to change it without rewriting systems.
What quantum computers actually break
Shor's algorithm
Peter Shor's 1994 algorithm efficiently solves two problems that classical computers find intractable at large sizes: integer factorisation and the discrete logarithm problem, including over elliptic curves. Nearly all deployed public-key cryptography depends on one of these:
- RSA (key exchange in older TLS, signatures, certificates)
- Finite-field Diffie-Hellman
- Elliptic-curve cryptography: ECDH and X25519 for key exchange; ECDSA and Ed25519 for signatures
On a cryptographically relevant quantum computer (CRQC), increasing key sizes does not help meaningfully; Shor's algorithm scales polynomially. The algorithms must be replaced.
Resource estimates for breaking RSA-2048 have fallen over time as algorithms and error correction improve. A 2019 estimate by Gidney and Ekerå put it at around 20 million noisy physical qubits for about eight hours; a 2025 paper by Gidney revised that to fewer than one million noisy qubits running for under a week. Current machines are orders of magnitude smaller, but the direction of travel is clear.
Grover's algorithm
Lov Grover's 1996 algorithm speeds up unstructured search from N steps to about √N. Applied to brute-forcing a symmetric key, it notionally halves the effective key length in bits: a 128-bit key offers roughly 64-bit security against an idealised Grover attack.
In practice, Grover's algorithm parallelises poorly and requires long, deep, error-corrected circuits, so the real-world threat to AES-128 is much smaller than the simple halving implies. Even so, the common guidance is straightforward: use AES-256 for new long-lived systems, and SHA-256 or SHA-384 for hashing. Symmetric cryptography does not need replacing; it needs sensible key sizes.
Summary of impact
| Primitive | Examples | Quantum impact | Action |
|---|---|---|---|
| Public-key encryption / key exchange | RSA, DH, ECDH, X25519 | Broken by Shor | Migrate to ML-KEM (FIPS 203), initially in hybrid mode |
| Digital signatures | RSA, ECDSA, Ed25519 | Broken by Shor | Migrate to ML-DSA (FIPS 204) or SLH-DSA (FIPS 205) |
| Symmetric encryption | AES-128, AES-256, ChaCha20 | Weakened by Grover (quadratic) | Prefer AES-256 for long-lived data |
| Hash functions | SHA-256, SHA-384, SHA-3 | Modestly weakened | Use SHA-256 or stronger |
| Password hashing | Argon2, bcrypt, PBKDF2 | Minimal practical change | Keep strong parameters |
Quantum processors operate near absolute zero inside cryostats like this one.
Harvest now, decrypt later
An adversary does not need a quantum computer today to benefit from one tomorrow. Encrypted traffic and stolen encrypted databases can be stored cheaply and decrypted once a CRQC exists. If your data must remain confidential for longer than the time it takes to build such a machine, plus the time it takes you to migrate, the risk is already live. This reasoning is often summarised as Mosca's inequality: if shelf life of data + migration time > time until a CRQC, you are late.
For East African organisations, consider:
- Banking and fintech: customer identity documents, KYC records and transaction histories with long retention periods.
- Health: patient records that remain sensitive for a lifetime.
- Government and legal: contracts, land records and investigations.
- Telecoms: subscriber data and interconnect traffic.
Signatures are different. A forged signature only matters once a CRQC exists, so the urgency lies in long-lived trust anchors: root certificates, firmware signing keys for devices with long service lives, and documents that must remain verifiable for decades.
The NIST post-quantum standards
After a public process that began in 2016, NIST published three post-quantum cryptography standards on 13 August 2024:
- FIPS 203: ML-KEM (Module-Lattice-Based Key-Encapsulation Mechanism), derived from CRYSTALS-Kyber. Used to establish shared secrets, replacing ECDH and RSA key exchange. Parameter sets ML-KEM-512, ML-KEM-768 and ML-KEM-1024.
- FIPS 204: ML-DSA (Module-Lattice-Based Digital Signature Algorithm), derived from CRYSTALS-Dilithium. The general-purpose signature replacement. Parameter sets ML-DSA-44, ML-DSA-65 and ML-DSA-87.
- FIPS 205: SLH-DSA (Stateless Hash-Based Digital Signature Algorithm), derived from SPHINCS+. Security rests on hash functions alone, making it a conservative backup to lattice schemes, at the cost of larger signatures and slower signing.
Further work is in progress. A signature standard based on FALCON (FN-DSA) has been in development, and in March 2025 NIST selected HQC as an additional key-encapsulation algorithm built on different mathematics from ML-KEM. NIST has also published draft guidance on transition timelines that proposes deprecating quantum-vulnerable algorithms such as RSA and ECC around 2030 and disallowing them by 2035. Check the NIST post-quantum cryptography project for the current status of these documents.
Practical differences to plan for
Post-quantum algorithms have different performance profiles from what your systems are tuned for:
- Larger keys and ciphertexts. An ML-KEM-768 public key is 1,184 bytes, against 32 bytes for X25519.
- Larger signatures. An ML-DSA-65 signature is several kilobytes; SLH-DSA signatures are larger still. Certificate chains grow accordingly.
- Speed is generally good. ML-KEM is fast; the bigger cost is bandwidth and message size.
These matter in East Africa where many users connect over mobile networks with variable quality, and where USSD and SMS channels have strict size limits. Larger TLS handshakes can increase failure rates on poor connections, and constrained devices such as POS terminals and smart meters may need firmware or hardware upgrades.
Hybrid mode
Most early deployments combine a classical and a post-quantum algorithm, so that security holds if either remains unbroken. In TLS, the hybrid key exchange X25519MLKEM768 is already supported by major browsers and large CDN and cloud providers. OpenSSL added ML-KEM, ML-DSA and SLH-DSA support in its 3.5 release. Check the versions in your own stack; support in load balancers, HSMs and Java or .NET runtimes is arriving at different speeds.
Crypto-agility: the real objective
Crypto-agility means you can change algorithms, key sizes and libraries through configuration and routine releases rather than emergency rewrites. Organisations that hard-coded RSA key lengths, certificate formats or cipher suites in dozens of places will find migration slow and risky.
Signs of an agile estate:
- Cryptography is consumed through a small number of maintained libraries and services, not ad-hoc code.
- Certificates and keys are discovered and managed centrally, with automated renewal.
- Protocols negotiate algorithms, and configuration controls the allowed set.
- Vendors contractually commit to supporting NIST PQC standards on a stated timeline.
Security and performance both depend on what happens at the hardware level.
Migration roadmap for an East African bank or SME
This roadmap is written for a mid-sized bank or SACCO and scales down for an SME. Align it with regulatory expectations, including the Central Bank of Kenya's cybersecurity guidance for regulated institutions and your obligations under the Kenya Data Protection Act 2019.
Phase 1: Governance and awareness (first 3 months)
- Assign an executive owner, typically the CISO, with a sponsor from the board risk committee.
- Brief the board on harvest-now-decrypt-later risk in business terms.
- Add quantum-vulnerable cryptography to the enterprise risk register.
- Ask your critical vendors (core banking, card processor, HSM supplier, mobile banking provider, cloud provider) for their post-quantum roadmaps in writing.
Phase 2: Cryptographic inventory (3 to 9 months)
- Discover all TLS endpoints, internal and external, and record protocol versions and key exchange groups.
- Inventory certificates and PKI hierarchies, including expiry dates and key types.
- Identify cryptography in applications: libraries, hard-coded algorithms, JWT signing, database encryption.
- Map HSM usage, key ceremonies and firmware capabilities.
- Catalogue integration points: M-Pesa and other mobile money APIs, card networks, interbank connections, KRA eTIMS integrations, partner VPNs.
- Classify data by confidentiality lifetime to prioritise.
The output is a cryptographic bill of materials (CBOM) that tells you what to migrate first.
Phase 3: Prioritise and prepare (6 to 18 months)
- Prioritise systems that protect long-lived confidential data and those exposed to the internet.
- Upgrade TLS stacks and enable hybrid post-quantum key exchange where your load balancers, CDNs and libraries support it. Test against real mobile connections across Safaricom, Airtel and Telkom networks.
- Set AES-256 as the default for new data-at-rest encryption.
- Update procurement policy: new systems must support NIST PQC algorithms or have a committed roadmap.
- Engage HSM vendors on firmware support for ML-KEM and ML-DSA.
Phase 4: Migrate and verify (18 months onwards)
- Migrate internal VPNs and site-to-site links, which often carry the most sensitive traffic.
- Introduce post-quantum or hybrid certificates in internal PKI first, then public-facing services as CA and browser support matures.
- Plan signing-key migration for firmware, mobile apps and documents with long verification lifetimes.
- Re-run discovery to confirm no quantum-vulnerable algorithms remain in critical paths.
- Treat crypto-agility as an ongoing capability, not a one-off project.
Scaling down for an SME
An SME rarely runs its own PKI or HSMs. Its practical steps are shorter:
- Keep operating systems, browsers, VPN clients and web servers updated so post-quantum support arrives automatically.
- Prefer SaaS, cloud and payment providers that publish post-quantum plans.
- Use AES-256 for backups and encrypted archives.
- Replace end-of-life firewalls and VPN appliances that will never receive updates.
- Ask your IT provider for a simple inventory of where encryption is used.
Common mistakes
- Waiting for a CRQC announcement. By then, harvested data is already exposed and migration will take years.
- Treating it as a single project. Post-quantum migration is a programme that touches every system that uses cryptography.
- Buying proprietary "quantum-proof" products. Insist on NIST-standardised algorithms and validated implementations.
- Forgetting constrained channels. USSD, SMS and low-bandwidth device links may not accommodate larger keys and signatures.
- Panicking about AES. Symmetric cryptography is fine with adequate key sizes; focus on public-key systems.
- Overrating quantum key distribution. QKD requires specialised hardware and links and does not replace post-quantum cryptography for most organisations.
FAQ
Is RSA broken today?
No. No existing quantum computer can break RSA-2048 or elliptic-curve keys used in practice. The concern is future capability and data harvested now for later decryption.
What are FIPS 203, 204 and 205?
They are NIST standards published in August 2024. FIPS 203 specifies ML-KEM for key establishment, FIPS 204 specifies ML-DSA for signatures, and FIPS 205 specifies SLH-DSA, a hash-based signature scheme.
Do we need to replace AES?
No. Grover's algorithm only offers a quadratic speed-up. Use AES-256 for long-lived data, and keep using it.
How long will migration take a bank?
It depends on the size and age of the estate, but for a bank with many integrations it is realistically a multi-year programme. The inventory phase alone can take months.
Does this affect M-Pesa integrations?
Any integration using TLS and certificates will eventually migrate. Monitor provider documentation such as the Safaricom Daraja portal at developer.safaricom.co.ke, keep client libraries and TLS stacks current, and avoid pinning to specific algorithms in your code.
How TechBytes can help
We run cryptographic inventories, assess TLS and PKI configurations, and build phased post-quantum migration plans aligned with regulatory expectations. Our cybersecurity team can start with a discovery exercise across your internet-facing services and critical integrations, and our consultancy team can brief your board. For background, see what quantum computing is.

