Static configuration class for global PQ crypto settings.
namespace WvdS.System.Security.Cryptography public static class CryptoConfig
| Name | Type | Description |
|---|---|---|
| DefaultMode | CryptoMode | Global crypto mode for all operations. Default: CryptoMode.Classic |
| OpenSslPath | string? | Optional path to OpenSSL 3.6 library |
| Name | Description |
|---|---|
| EnablePostQuantum(CryptoMode) | Enables PQ cryptography and initializes OpenSSL |
CryptoConfig is the central configuration point for the entire library. Settings apply globally to all threads.
// Recommended initialization in Program.cs or Startup CryptoConfig.DefaultMode = CryptoMode.Hybrid; CryptoConfig.OpenSslPath = @"C:\OpenSSL\bin\libcrypto-3-x64.dll";
Changes to DefaultMode and OpenSslPath are thread-safe. Ideally, change these values only at application startup.
Wolfgang van der Stille @ EMSR DATA d.o.o. - Post-Quantum Cryptography Professional