====== Imenski prostor WvdS.System.Security.Cryptography.KeyDerivation ====== Vsebuje razrede za izpeljavo ključev (KDF) s podporo PQ. ---- ===== Razredi ===== ^ Razred ^ Opis ^ | [[.:keyderivationextensions|KeyDerivationExtensions]] | Funkcije KDF (HKDF, PBKDF2, Argon2id) | | [[.:hybridkeymaterial|HybridKeyMaterial]] | Vsebnik za izpeljane ključe | | [[.:tlskeymaterial|TlsKeyMaterial]] | Ključni material v stilu TLS | | [[.:tls13keyschedule|Tls13KeySchedule]] | Razpored ključev TLS 1.3 | ---- ===== Podprte funkcije KDF ===== ^ Funkcija ^ Standard ^ Uporaba ^ | HKDF | RFC 5869((RFC 5869: https://datatracker.ietf.org/doc/html/rfc5869)) | Sejni ključi iz skupne skrivnosti | | PBKDF2 | RFC 8018((RFC 8018: https://datatracker.ietf.org/doc/html/rfc8018)) | Ključi na podlagi gesla | | Argon2id | RFC 9106((RFC 9106: https://datatracker.ietf.org/doc/html/rfc9106)) | KDF, odporen na pomnilnik | ---- ===== Primer ===== using WvdS.System.Security.Cryptography.KeyDerivation; byte[] sharedSecret = /* iz ML-KEM */; byte[] salt = RandomNumberGenerator.GetBytes(32); // HKDF za sejne ključe byte[] aesKey = KeyDerivationExtensions.DeriveKey( sharedSecret, outputLength: 32, salt: salt, info: Encoding.UTF8.GetBytes("AES-256-GCM")); // Hibridna izpeljava ključev byte[] hybridKey = KeyDerivationExtensions.DeriveHybridKey( classicSecret: ecdhSecret, pqSecret: mlKemSecret, outputLength: 32); ---- ===== Glejte tudi ===== * [[..:keyexchange:start|Imenski prostor KeyExchange]] * [[..:encryption:start|Imenski prostor Encryption]] * [[..:start|Pregled API]] {{tag>namespace kdf hkdf pbkdf2 argon2id}} ---- //Wolfgang van der Stille @ EMSR DATA d.o.o. - Post-Quantum Cryptography Professional//