====== 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|DefaultMode]] | CryptoMode | Global crypto mode for all operations. Default: ''CryptoMode.Classic'' |
| [[.:opensslpath|OpenSslPath]] | string? | Optional path to OpenSSL 3.6 library |
----
===== Methods =====
^ Name ^ Description ^
| [[.:enablepostquantum|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 =====
* [[..:cryptomode|CryptoMode Enum]]
* [[en:int:pqcrypt:api:wvds-system-security-cryptography:providers:start|Providers Namespace]]
{{tag>class configuration static}}
----
//Wolfgang van der Stille @ EMSR DATA d.o.o. - Post-Quantum Cryptography Professional//