What Is BYOK? Bring Your Own Key Encryption Explained
Jan 15, 2025
ArticleBYOK explained for security and risk leaders: when customer-held keys reduce cloud concentration risk and when provider-managed encryption is not enough.
Read article
Compare MPC and HSM key management for cloud programmes: single points of failure, TCO and how CISOs choose when resilience and sovereignty matter.
When evaluating enterprise key management strategies, the debate between MPC vs HSM represents one of the most consequential architectural decisions security teams face today. Hardware Security Modules (HSMs) have anchored cryptographic operations for decades, earning trust through physical tamper resistance and regulatory certifications. Yet the rise of multi-party computation (MPC) encryption introduces a fundamentally different paradigm, one that distributes cryptographic secrets across multiple parties, eliminating the single points of failure that increasingly concern CISOs operating in cloud-first environments.
This comparison matters more than ever. The 2024 IBM Cost of a Data Breach Report found that organisations using advanced encryption and key management reduced breach costs by an average of $252,000. Meanwhile, regulatory frameworks like NIS2 and DORA are tightening requirements around cryptographic key control, pushing enterprises to reassess whether their current HSM infrastructure meets evolving compliance expectations.
This article provides a technical and strategic comparison of HSM key management versus MPC key management, examining security architecture, performance characteristics, cloud compatibility, regulatory alignment and total cost of ownership. By the end, you will have a clear framework for determining which approach, or which combination, best protects your enterprise.
Hardware Security Modules are dedicated physical devices designed to generate, store and manage cryptographic keys within a tamper-resistant boundary. These appliances have formed the backbone of enterprise key management since the 1970s, when financial institutions first deployed them to protect PIN verification systems.
An HSM operates as a cryptographic black box. Keys are generated inside the module using certified random number generators and they never leave the device in plaintext form. Cryptographic operations, signing, decryption, key wrapping, occur entirely within the HSM's secure enclave. If someone attempts to physically breach the device, tamper sensors trigger automatic key destruction.
Modern HSMs connect to enterprise systems via network interfaces (PKCS#11, JCE, Microsoft CNG) or direct PCIe attachment. They typically support a wide range of algorithms, including RSA, ECC, AES and increasingly, post-quantum candidates. Leading vendors include Thales (Luna HSMs), Entrust (nShield), Utimaco and Futurex.
HSMs earn enterprise trust through rigorous certification programmes:
These certifications provide auditable proof of security controls, which compliance teams value when demonstrating due diligence to regulators.
In conventional deployments, enterprises maintain HSMs in on-premises data centres, often in geographically distributed pairs for high availability. Banking systems, certificate authorities and government agencies have historically relied on this model. The HSM serves as the ultimate root of trust, the single location where master keys reside and from which all downstream keys derive their security.
This centralisation creates operational clarity but also introduces risk concentration. If an attacker compromises the HSM (through insider access, supply chain attack, or sophisticated physical breach), the entire cryptographic hierarchy collapses.
Multi-party computation represents a cryptographic breakthrough that enables multiple parties to jointly compute a function over their inputs while keeping those inputs private from each other. When applied to key management, MPC distributes cryptographic key material across independent nodes, ensuring that no single party ever possesses the complete key.
MPC protocols emerged from Yao's garbled circuits (1986) and subsequent work by Goldreich, Micali and Wigderson. The core insight is that secret values can be split into shares such that individual shares reveal nothing about the original secret, but combining shares through specific protocols enables cryptographic operations without reconstructing the key.
In the context of distributed key management, this means:
Modern MPC key management systems deploy key shares across organisationally and geographically separated nodes. For example, DuoKey's architecture distributes key shares across Swiss data centres and customer-controlled environments, ensuring that neither DuoKey nor any cloud provider can independently access complete keys.
When an application requests a cryptographic operation, the MPC protocol orchestrates a secure computation across the distributed nodes. Each node contributes its share to the calculation without revealing that share to other participants. The final result, a signature, a decrypted payload, emerges without the key ever being reassembled.
MPC key management typically employs threshold signatures (t-of-n schemes), where operations require a minimum number of participants from a larger pool. This provides both security redundancy (surviving node failures) and operational flexibility (enabling governance policies like multi-party approval for high-value transactions).
The fundamental distinction between HSM and MPC approaches lies in their trust architecture. HSMs consolidate trust in a single hardened device; MPC distributes trust across multiple independent parties. Each model presents different risk profiles that enterprises must evaluate against their threat models.
HSM security depends on the physical and logical integrity of the device. The tamper-resistant boundary provides strong protection against external attackers, but several threat vectors warrant consideration:
Insider Threats: Administrators with HSM access credentials represent a significant risk vector. The 2019 Capital One breach demonstrated how privileged access misuse can bypass even sophisticated controls.
Supply Chain Attacks: Concerns about nation-state interference in hardware manufacturing have intensified. If an HSM arrives compromised from the factory, all subsequent key material is potentially exposed.
Single Point of Failure: Despite clustering capabilities, HSM architectures ultimately depend on identical key material existing in each clustered device. Compromising one reveals the same secrets as compromising all.
Backup and Recovery Exposure: HSM key backup procedures often create moments of vulnerability when key material must be exported (typically wrapped with backup keys) for disaster recovery purposes.
MPC architectures fundamentally restructure the attack surface. An adversary must simultaneously compromise multiple independent nodes, operating in different jurisdictions, managed by different parties and protected by different security controls, to obtain complete key material.
Threshold Security: In a 2-of-3 MPC configuration, compromising any single node yields nothing cryptographically useful. The attacker obtains a key share that cannot decrypt, sign, or derive any secrets independently.
Jurisdictional Distribution: Placing nodes across different legal jurisdictions (e.g., Switzerland, EU, customer premises) creates legal and operational barriers that pure technical attacks cannot overcome.
Eliminated Key Exposure: Because the complete key never exists, not during generation, not during operations, not during backup, there is no moment of vulnerability when key material could be extracted.
Collusion Resistance: Properly designed MPC systems maintain security even if some threshold of nodes collude, as long as the attacker controls fewer than the required threshold.
| Threat Vector | HSM Risk Level | MPC Risk Level |
|---|---|---|
| External network attack | Low | Low |
| Physical tampering | Low | Low (distributed) |
| Insider with admin access | Medium-High | Low |
| Supply chain compromise | Medium | Low |
| Single device failure | Medium (requires clustering) | Low |
| Nation-state compulsion | High (single jurisdiction) | Low (multi-jurisdiction) |
| Backup/recovery exposure | Medium | Low |
For enterprises operating in regulated industries with sophisticated threat models, financial services, automotive, healthcare, the distributed trust architecture of MPC provides measurable security advantages that traditional HSMs cannot match.
Security architecture matters, but production systems must also meet performance requirements. HSMs and MPC systems exhibit different characteristics across latency, throughput and scaling behaviour.
Modern HSMs deliver impressive cryptographic performance through purpose-built hardware accelerators. A high-end network-attached HSM can execute thousands of RSA-2048 signatures per second and tens of thousands of AES operations per second.
Latency: HSM operations typically complete in 1-10 milliseconds for standard cryptographic operations, depending on algorithm complexity and network distance.
Throughput: Enterprise HSMs scale vertically, more expensive models offer higher transaction rates. Horizontal scaling requires careful architectural design to distribute load across clustered devices.
Bottleneck Risk: Because HSMs concentrate cryptographic operations, they can become throughput bottlenecks in high-volume environments. Payment processors and certificate authorities often require significant HSM investments to meet peak load requirements.
MPC systems introduce additional computational and communication overhead compared to single-party cryptography. The protocol requires multiple rounds of interaction between nodes and each node performs partial computations on its key share.
Latency: MPC operations typically complete in 50-200 milliseconds for threshold signatures, depending on network latency between nodes and protocol efficiency. Recent protocol improvements have significantly reduced this overhead.
Throughput: MPC systems scale horizontally more naturally than HSMs. Adding computational capacity to each node increases overall throughput without requiring key material redistribution.
Network Dependency: MPC latency depends heavily on network connectivity between participating nodes. Geographically distributed deployments trade increased latency for security benefits.
For most enterprise key management use cases, API authentication, document signing, data encryption key management, both approaches deliver acceptable performance. The relevant question is whether the application can tolerate MPC's higher latency in exchange for its security advantages.
| Use Case | HSM Suitability | MPC Suitability |
|---|---|---|
| High-frequency trading | Excellent | Limited |
| Payment card processing | Excellent | Good |
| Document signing | Excellent | Excellent |
| Cloud KMS operations | Good | Excellent |
| API gateway authentication | Good | Good |
| Batch encryption | Excellent | Excellent |
Enterprises requiring sub-millisecond cryptographic operations (algorithmic trading, real-time payment authorisation) may find HSM performance characteristics essential. For the majority of enterprise workloads, cloud data protection, regulatory compliance, document encryption, MPC performance is more than adequate.
The shift to cloud infrastructure has fundamentally changed key management requirements. Applications distributed across AWS, Azure and Google Cloud need cryptographic services that integrate seamlessly with cloud-native architectures while maintaining security guarantees.
Cloud providers offer HSM services (AWS CloudHSM, Azure Dedicated HSM, Google Cloud HSM) that place dedicated hardware in provider data centres. These services maintain the HSM security model but introduce operational complexities:
Cloud Lock-in: Cloud-provider HSM services tie key material to that provider's infrastructure. Migrating keys between clouds requires careful key export/import procedures and often leaves copies in the original location.
Limited Sovereignty: Even with dedicated HSMs, the cloud provider maintains physical access to the hardware hosting your keys. For enterprises under strict data sovereignty requirements, this may not satisfy regulatory expectations.
Operational Burden: Managing HSM clusters across multiple cloud regions and providers creates significant operational complexity. Each deployment requires independent provisioning, patching and monitoring.
Cost Accumulation: Cloud HSM services carry substantial hourly charges (AWS CloudHSM starts at approximately $1.45/hour per device) and high-availability deployments require multiple devices per region.
MPC key management was designed for distributed, cloud-native environments. The architecture aligns naturally with modern deployment patterns:
Multi-Cloud by Design: Because MPC distributes key shares across independent nodes, placing nodes in different cloud providers creates both technical resilience and vendor independence. Your keys are not tied to any single provider.
True Data Sovereignty: With MPC, you can deploy key shares in jurisdictions and environments you control. DuoKey's architecture, for example, enables customers to maintain key shares on-premises while other shares reside in Swiss data centres, ensuring no single party can access complete keys.
SaaS Integration: MPC systems integrate with cloud applications (Microsoft 365, Salesforce, ServiceNow) through external key management interfaces. DuoKey provides certified connectors for Microsoft 365 Double Key Encryption, Salesforce Shield BYOK and AWS External Key Store.
API-First Architecture: Modern MPC platforms expose RESTful APIs that integrate with DevOps toolchains, infrastructure-as-code frameworks and container orchestration platforms.
Many enterprises operate hybrid environments combining on-premises infrastructure with multiple cloud providers. MPC architectures accommodate this reality:
This flexibility enables gradual cloud migration while maintaining consistent key management across environments, something traditional HSM architectures struggle to achieve.
Regulatory compliance increasingly drives encryption and key management decisions. European frameworks, in particular, emphasise data sovereignty and demonstrable control over cryptographic material.
The General Data Protection Regulation does not mandate specific encryption technologies, but Article 32 requires "appropriate technical and organisational measures" to ensure security appropriate to risk. Encryption is explicitly cited as an example measure and recital 83 notes that encryption can render data unintelligible to unauthorised parties.
HSM Compliance: HSMs satisfy GDPR encryption requirements when properly implemented. However, if the HSM resides in a jurisdiction accessible to non-EU authorities (under CLOUD Act compulsion, for example), questions arise about whether the controller truly maintains control.
MPC Compliance: Distributed key management strengthens GDPR compliance by demonstrating that no single party, including cloud providers subject to foreign jurisdiction, can access decryption keys. This architecture provides documentable evidence for Data Protection Impact Assessments.
The Network and Information Security Directive 2 (NIS2), effective October 2024, significantly expands cybersecurity requirements for essential and important entities across the EU. Article 21 mandates "policies and procedures regarding the use of cryptography and, where appropriate, encryption."
Key NIS2 considerations for key management include:
MPC architectures align well with NIS2's emphasis on supply chain risk reduction and operational resilience. Distributing key material across multiple independent parties reduces single-vendor dependency risks that NIS2 explicitly addresses.
ISO 27001:2022 includes updated cryptographic controls under Annex A:
Both HSM and MPC approaches can satisfy ISO 27001 requirements when properly documented and implemented. DuoKey maintains ISO 27001 certification for its MPC-based key management platform, demonstrating that distributed architectures meet international security management standards.
The Digital Operational Resilience Act (DORA), effective January 2025, imposes specific ICT risk management requirements on EU financial entities. Key management falls within DORA's scope for ICT security policies and cryptographic controls.
DORA's emphasis on third-party risk management creates particular considerations for cloud-hosted HSM services. Financial institutions must demonstrate ongoing monitoring and control over cryptographic infrastructure, regardless of where it resides.
Enterprise technology decisions require financial justification. HSM and MPC approaches present different cost structures that compound differently over time.
Capital Expenditure:
Operational Expenditure:
Scaling Costs:
Cloud HSM services reduce capital expenditure but introduce ongoing consumption charges that compound with scale. AWS CloudHSM, for example, charges approximately $1.45/hour per cluster instance, exceeding $12,000 annually for a minimal high-availability configuration.
Infrastructure Costs:
Operational Costs:
Total Cost Comparison:
| Cost Category | On-Premises HSM | Cloud HSM Service | MPC Platform |
|---|---|---|---|
| Initial capital | High ($40,000-$200,000+) | None | Low to none |
| Annual operating | 15-20% of hardware cost | $12,000-$50,000+ | Subscription-based |
| Scaling model | Step-function (hardware) | Per device/hour | Gradual/linear |
| Admin overhead | High (specialist staff) | Medium | Low (managed service) |
| Multi-cloud coverage | Complex | Provider-locked | Native |
For many organisations, particularly those without existing HSM infrastructure or in-house cryptographic expertise, MPC platforms deliver a lower total cost of ownership while providing stronger architectural security guarantees.
The MPC vs HSM decision ultimately depends on four factors: your threat model, regulatory environment, deployment architecture and operational capacity.
Choose HSM when:
Choose MPC when:
Consider a hybrid approach when:
DuoKey's MPC-based key management platform addresses the structural weaknesses of traditional HSM infrastructure while preserving compatibility with established interfaces. DuoKey MPC Vault integrates with:
This positions MPC not as a wholesale replacement for every HSM use case, but as the architecturally superior choice for organisations requiring cloud-native, multi-jurisdictional and operationally efficient key management.
The MPC vs HSM debate is not a binary choice between old and new, it is a question of matching cryptographic architecture to threat model, regulatory requirement and operational reality.
Hardware Security Modules remain valuable for high-throughput, latency-sensitive operations and for environments where specific certifications are mandated. Their decades of deployment history and regulatory recognition represent genuine advantages in certain contexts.
Multi-Party Computation, however, addresses the fundamental architectural weakness of centralised cryptographic trust. By distributing key material across independent parties, MPC eliminates the single point of compromise that represents the most consequential risk in enterprise key management, the scenario where one breach, one insider, or one legal order exposes everything.
For enterprises building cloud-first, multi-cloud, or hybrid key management infrastructure and for those navigating the growing demands of GDPR, NIS2, DORA and data sovereignty regulations, MPC represents not just a viable alternative to HSMs, but architecturally the more appropriate foundation for modern cryptographic security.
Written by
DuoKey
Related Resources
Tell us where control is difficult today. We will help you identify a practical next step.