====== CryptoConfig Klasse ======
Statische Konfigurationsklasse für globale PQ-Crypto-Einstellungen.
----
===== Definition =====
namespace WvdS.System.Security.Cryptography
public static class CryptoConfig
----
===== Eigenschaften =====
^ Name ^ Typ ^ Beschreibung ^
| [[.:defaultmode|DefaultMode]] | CryptoMode | Globaler Krypto-Modus für alle Operationen. Standard: ''CryptoMode.Classic'' |
| [[.:opensslpath|OpenSslPath]] | string? | Optionaler Pfad zur OpenSSL 3.6 Library |
----
===== Methoden =====
^ Name ^ Beschreibung ^
| [[.:enablepostquantum|EnablePostQuantum(CryptoMode)]] | Aktiviert PQ-Kryptographie und initialisiert OpenSSL |
----
===== Hinweise =====
''CryptoConfig'' ist der zentrale Konfigurationspunkt für die gesamte Bibliothek. Einstellungen gelten global für alle Threads.
// Empfohlene Initialisierung in Program.cs oder Startup
CryptoConfig.DefaultMode = CryptoMode.Hybrid;
CryptoConfig.OpenSslPath = @"C:\OpenSSL\bin\libcrypto-3-x64.dll";
----
===== Thread-Sicherheit =====
Änderungen an ''DefaultMode'' und ''OpenSslPath'' sind thread-sicher. Ändern Sie diese Werte idealerweise nur beim Anwendungsstart.
----
===== Siehe auch =====
* [[..:cryptomode|CryptoMode Enum]]
* [[de:int:pqcrypt:api:wvds-system-security-cryptography:providers:start|Providers Namespace]]
{{tag>klasse konfiguration static}}
----
//Wolfgang van der Stille @ EMSR DATA d.o.o. - Post-Quantum Cryptography Professional//