Inhaltsverzeichnis
CryptoMode Enum
Defines the cryptographic mode for all operations.
Definition
namespace WvdS.System.Security.Cryptography public enum CryptoMode
Fields
| Name | Value | Description |
|---|---|---|
| Classic | 0 | Classic algorithms only (RSA, ECDSA). No PQ extensions. |
| Hybrid | 1 | Classic + PQ combined. RSA/ECDSA signature plus ML-DSA signature. Recommended. |
| PostQuantum | 2 | PQ algorithms only (ML-DSA, ML-KEM). No classic algorithms. |
Remarks
Classic
Uses only standard .NET cryptography. No change to the behavior of extended methods.
Hybrid
Creates hybrid signatures and certificates:
- Classic signature (RSA/ECDSA) for backward compatibility
- PQ signature (ML-DSA) as X.509 extension
Classic clients can validate hybrid certificates (ignoring the PQ extension).
PostQuantum
Uses exclusively PQ algorithms. Only for environments where all participants are PQ-capable.
Example
using WvdS.System.Security.Cryptography; // Set globally CryptoConfig.DefaultMode = CryptoMode.Hybrid; // Or per operation var cert = request.CreateSelfSigned( notBefore, notAfter, CryptoMode.PostQuantum);
See Also
Wolfgang van der Stille @ EMSR DATA d.o.o. - Post-Quantum Cryptography Professional
Zuletzt geändert: on 2026/01/29 at 11:14 PM