====== 5. API-Referenz ====== Vollständige API-Dokumentation für WvdS.System.Security.Cryptography. ---- ===== Übersicht ===== Die **WvdS.System.Security.Cryptography** Bibliothek erweitert ''System.Security.Cryptography''((Microsoft .NET Cryptography: https://learn.microsoft.com/dotnet/api/system.security.cryptography)) von Microsoft mit Post-Quantum-Kryptographie basierend auf OpenSSL 3.6((OpenSSL 3.6: https://www.openssl.org/)). **Ziel-Framework:** .NET 8.0+\\ **Plattformen:** Windows, Linux, macOS, Blazor WebAssembly ---- ===== Kern-Typen ===== ^ Typ ^ Beschreibung ^ | [[.:cryptomode|CryptoMode]] | Enum: Classic, Hybrid, PostQuantum | | [[.:cryptoconfig|CryptoConfig]] | Globale Konfiguration | ---- ===== Namespaces ===== ^ Namespace ^ Beschreibung ^ | [[.:providers:start|WvdS.System.Security.Cryptography.Providers]] | Krypto-Provider (Native, WASM) | | [[.:x509certificates:start|WvdS.System.Security.Cryptography.X509Certificates]] | Zertifikat-Extensions | | [[.:signatures|WvdS.System.Security.Cryptography.Signatures]] | Signatur-Extensions | | [[.:keyexchange|WvdS.System.Security.Cryptography.KeyExchange]] | Schlüsselaustausch (ML-KEM) | | [[.:encryption|WvdS.System.Security.Cryptography.Encryption]] | Verschlüsselung | | [[.:keyderivation|WvdS.System.Security.Cryptography.KeyDerivation]] | Schlüsselableitung | ---- ===== Algorithmen ===== ==== ML-DSA (Signaturen) ==== NIST FIPS 204((NIST FIPS 204: https://csrc.nist.gov/pubs/fips/204/final)) standardisierte digitale Signaturen. ^ Variante ^ OID ^ Sicherheitsniveau ^ | ML-DSA-44 | 2.16.840.1.101.3.4.3.16 | NIST Level 1 | | ML-DSA-65 | 2.16.840.1.101.3.4.3.17 | NIST Level 3 | | ML-DSA-87 | 2.16.840.1.101.3.4.3.18 | NIST Level 5 | ==== ML-KEM (Schlüsselaustausch) ==== NIST FIPS 203((NIST FIPS 203: https://csrc.nist.gov/pubs/fips/203/final)) standardisierte Key Encapsulation. ^ Variante ^ OID ^ Sicherheitsniveau ^ | ML-KEM-512 | 2.16.840.1.101.3.4.4.1 | NIST Level 1 | | ML-KEM-768 | 2.16.840.1.101.3.4.4.2 | NIST Level 3 | | ML-KEM-1024 | 2.16.840.1.101.3.4.4.3 | NIST Level 5 | ---- ===== Schnellstart ===== using WvdS.System.Security.Cryptography; // PQ-Modus aktivieren CryptoConfig.DefaultMode = CryptoMode.Hybrid; // Bestehender Code funktioniert automatisch mit PQ var cert = request.CreateSelfSigned(notBefore, notAfter); ---- ===== Siehe auch ===== * [[.:de:int:pqcrypt:start|PQ-Crypto Übersicht]] * [[https://learn.microsoft.com/dotnet/api/system.security.cryptography|System.Security.Cryptography (Microsoft)]] {{tag>api referenz namespace}} ---- //Wolfgang van der Stille @ EMSR DATA d.o.o. - Post-Quantum Cryptography Professional//