DuoKey
Resources
Article

Threshold Cryptography for Key Management: How t-of-n Keys Work

How threshold cryptography protects keys: t-of-n shares, signing without rebuilding the key, the key lifecycle, NIST's threshold work and when to use it.

DuoKey Team··9 min read

Threshold cryptography key management splits a cryptographic key into shares held by several independent parties, so that any t of the n parties can sign or decrypt together, while fewer than t can do nothing. Done properly, the full key is never rebuilt, not when it is generated, not when it is used. It removes the single place where a key can be stolen, copied or seized.

NIST describes threshold schemes as applying "principles of secure multiparty computation (MPC)" to cryptographic primitives (NIST Multi-Party Threshold Cryptography project). In key management, that means the key behaves like one key to the outside world (one public key, one signature, one decryption), while custody is spread across people, machines, data centres or organisations.


Table of Contents

  1. Secret sharing is not the same as threshold cryptography
  2. How a t-of-n threshold scheme works
  3. The key lifecycle under threshold cryptography
  4. Threshold cryptography vs HSM, multisig and Shamir
  5. Standards: where NIST stands
  6. Where threshold key management fits
  7. Design choices that matter
  8. How DuoKey applies it
  9. FAQ

Secret sharing is not the same as threshold cryptography

The two ideas are often mixed up.

Secret sharing splits a secret into pieces. Adi Shamir's 1979 scheme (How to Share a Secret) uses polynomial interpolation: any k pieces rebuild the secret, and k − 1 pieces reveal nothing about it. To use the secret, you have to put it back together somewhere.

Threshold cryptography goes further. The parties run a joint protocol that produces the result (a signature, a decrypted value, a wrapped key) directly from their shares. The secret is never put back together.

The difference matters for key management. HashiCorp Vault and OpenBao use Shamir secret sharing for their default seal: operators submit shares, and the unseal key is rebuilt in the server's memory. That protects the key at rest, not in use. A threshold scheme protects it in use as well.


How a t-of-n threshold scheme works

Take a 2-of-3 setup, the most common pattern in enterprise key management.

  1. Distributed key generation. Three nodes each generate random material and exchange commitments. Each node ends up with its own share. Together they define one public key, but no node ever sees the private key.
  2. A request arrives. An application asks to sign or decrypt. The request is sent to the nodes.
  3. Partial operations. At least two nodes compute a partial result with their share and exchange messages defined by the protocol.
  4. Combine. The partial results are combined into one ordinary signature or plaintext. Anyone can verify the signature with the public key, without knowing it came from a threshold scheme.

What this buys you:

  • One stolen share is useless. An attacker who compromises one node, one operator laptop or one cloud account gets a share that cannot sign or decrypt.
  • One lost node is survivable. With 2-of-3, the system keeps working if one node is down.
  • Separation of duties is enforced by maths. If the nodes sit with different teams or organisations, no single team can use the key alone.

The key lifecycle under threshold cryptography

NIST SP 800-57 describes keys moving through pre-operational, operational, post-operational and destroyed phases (SP 800-57 Part 1). Each step of that lifecycle looks different with threshold keys:

PhaseSingle-holder key (HSM or KMS)Threshold key
GenerationInside one moduleDistributed key generation; the full key never exists
StorageOne module or cluster, often with an exported backupEach share stored separately, under different administrators
UseThe module performs the operationt parties run a joint protocol
Backup and recoveryEncrypted export or HSM cloningShares backed up separately; a lost share can be replaced by resharing
RotationNew key, re-encrypt or re-signNew key, or refresh shares while the public key stays the same
Revocation and destructionDelete in the moduleRevoke in the policy layer; destroying enough shares makes the key unusable

Share refresh is the part with no equivalent in a single-holder model. The parties can replace their shares with new ones that still define the same key. A share stolen before the refresh becomes useless after it, so an attacker has to break t nodes within one refresh period rather than over years.


Threshold cryptography vs HSM, multisig and Shamir

ApproachWhere the key livesSingle point of compromiseWhat verifiers see
HSMWhole key inside one certified module (or cluster)The module and its administratorsOrdinary signatures
Shamir secret sharingShares at rest; key rebuilt in memory to useThe machine where it is rebuiltOrdinary signatures
MultisigSeveral independent keys, each completeEach key is a target on its own; the policy needs t of themt separate signatures and a policy
Threshold cryptography (MPC)Shares only; key never rebuiltNone below the thresholdOne ordinary signature

Multisig is common in blockchains, where the ledger checks several signatures. Outside blockchains, most systems (TLS, X.509, code signing, cloud KMS APIs, PKCS#11 applications) expect a single key and a single signature. Threshold cryptography gives them exactly that, which is why it suits enterprise key management. The broader HSM comparison is in MPC vs HSM.


Standards: where NIST stands

NIST has been working on threshold schemes since its 2019 report NIST IR 8214, which looked at the challenges of standardizing and validating threshold cryptography. Its Multi-Party Threshold Cryptography (MPTC) project:

  • published the NIST First Call for Multi-Party Threshold Schemes (NIST IR 8214C) on 20 January 2026, after public drafts;
  • covers threshold schemes for signatures, public-key encryption and decryption, ciphers, hashing, fully homomorphic encryption and key generation;
  • held a workshop on multi-party threshold schemes from 26 to 29 January 2026, followed by preview talks for submissions.

Source: NIST MPTC project page.

In short: the building blocks (the signature algorithms, AES, the security proofs) are well studied, but there is no NIST standard for threshold schemes yet. Today, buyers assess threshold products on the published protocol, independent reviews, and the vendor's certifications for the service as a whole. If a regulation names a specific certified hardware module, threshold cryptography can sit alongside it rather than replace it.


Where threshold key management fits

  • Certificate authority keys. A CA key that only signs when two of three nodes agree removes the classic "steal the CA key" scenario.
  • Secrets platform unseal keys. Vault and OpenBao can unseal through PKCS#11 against a key that is never assembled. See the Vault HSM auto-unseal guide.
  • Root and key-encryption keys for KMS. Keys that protect cloud or database encryption keys, where no cloud provider or operator should hold the whole key.
  • Signing authority for AI agents and payments. An agent that can spend or approve should not hold a complete key in its own process. See AI agent key management.
  • Cross-organisation custody. Shares held by different legal entities or jurisdictions, so no single party can be compelled to hand over a usable key.

It fits less well where an operation needs the lowest possible latency inside one data centre, because every operation involves network messages between nodes.


Design choices that matter

Choose t and n for both risks. A higher t makes theft harder; a higher n − t makes outages easier to survive. 2-of-3 is a common balance. 3-of-5 suits cases with more parties.

Make the parties really independent. Elliptic's guide to threshold key management makes the point that weak programmes usually fail through organisational lapses rather than weak cryptography (Elliptic). Three nodes run by the same administrator, with the same credentials, on the same cloud account, behave like one.

Plan recovery before you need it. Decide how a lost share is replaced, who approves it and how it is logged.

Keep policy outside the nodes' callers. Limits, approvals and allow-lists should be enforced where the shares live, not inside the application that requests the operation.

Check the network path. Nodes must reach each other with low and stable latency. Test under load and during a node failure.


How DuoKey applies it

DuoKey builds its key management on multi-party computation with threshold operations:

  • 2-of-3 threshold signing. Per the DuoKey KMS page, a request reaches all key shards and two need to respond. No shard, operator or cloud provider holds enough of the key to act alone, and the combine step never rebuilds the private key.
  • Distributed generation and rotation. Keys are generated across independent parties, and rotation and revocation replace shards without rebuilding the key.
  • Deployment across independent locations. DuoKey's documentation describes three nodes across separate cloud providers, data centres or a mix, with a separate administrative team per node.
  • HSM-style interfaces. DuoKey SD-HSM exposes the MPC vault through PKCS#11 for OpenBao auto-unseal and Vault Enterprise, and the same Cockpit manages HSM and software vaults where a customer needs them.

FAQ

Q: What is threshold cryptography in simple terms?

It is a way to split a key among several parties so that a minimum number of them (the threshold) must work together to use it. Fewer than the threshold can do nothing, and the key is never assembled in one place.

Q: Is threshold cryptography the same as MPC?

Threshold cryptography is a specific use of multi-party computation: the parties jointly compute a cryptographic operation (signing, decryption, key generation) on a shared key. MPC is the broader field of computing any function on private inputs.

Q: How is it different from Shamir's Secret Sharing?

Shamir's scheme splits a secret into shares, but the secret must be rebuilt before it can be used. Threshold cryptography performs the operation directly on the shares, so the key is never rebuilt, even during use.

Q: Is threshold cryptography standardized?

Not yet as a NIST standard. NIST published its First Call for Multi-Party Threshold Schemes (NIST IR 8214C) in January 2026 and is collecting submissions for signatures, encryption, key generation and other primitives. The underlying algorithms, such as ECDSA, EdDSA and AES, are standardized.

Q: What threshold should I choose?

2-of-3 is the usual starting point: one share can be lost or compromised without losing the key or exposing it. Use a larger setup, such as 3-of-5, when more independent parties must be involved.

Q: Does threshold cryptography replace an HSM?

For many key management tasks it removes the need for one appliance that holds the whole key. Where a regulation requires a specific certified hardware module, the two are used together: some keys stay in the HSM, others are held with MPC.


References

Share

Written by

DuoKey Team

Discuss the decisions that matter most to your security programme.

Tell us where control is difficult today. We will help you identify a practical next step.