Inhaltsverzeichnis
CryptoConfig Class
Static configuration class for global PQ crypto settings.
Definition
namespace WvdS.System.Security.Cryptography public static class CryptoConfig
Properties
| Name | Type | Description |
|---|---|---|
| DefaultMode | CryptoMode | Global crypto mode for all operations. Default: CryptoMode.Classic |
| OpenSslPath | string? | Optional path to OpenSSL 3.6 library |
Methods
| Name | Description |
|---|---|
| EnablePostQuantum(CryptoMode) | Enables PQ cryptography and initializes OpenSSL |
Remarks
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";
Thread Safety
Changes to DefaultMode and OpenSslPath are thread-safe. Ideally, change these values only at application startup.
See Also
Wolfgang van der Stille @ EMSR DATA d.o.o. - Post-Quantum Cryptography Professional
Zuletzt geändert: on 2026/01/29 at 11:21 PM