====== Quick Reference ====== Compact code examples for quick start. For detailed explanations, see the linked scenarios. ---- ===== PKI & Certificates ===== ^ Example ^ Description ^ Details ^ | [[.:pki-aufbau|PKI Infrastructure]] | Root CA, Intermediate CA, hierarchy | [[en:int:pqcrypt:szenarien:pki:start|-> PKI Scenarios]] | | [[.:csr|Create CSR]] | Server, client, code signing | [[en:int:pqcrypt:szenarien:csr:start|-> CSR Scenarios]] | | [[.:zertifikat-verwaltung|Certificate Management]] | Renew, re-key, revoke | [[en:int:pqcrypt:szenarien:verwaltung:start|-> Management Scenarios]] | | [[.:validierung|Validation]] | Chain, hostname, key usage | [[en:int:pqcrypt:szenarien:validierung:start|-> Validation Scenarios]] | ---- ===== Signatures ===== ^ Example ^ Description ^ Details ^ | [[.:signaturen|Digital Signatures]] | RSA, ECDSA, CMS hybrid | [[en:int:pqcrypt:szenarien:signaturen:start|-> Signature Scenarios]] | ---- ===== Key Exchange & Encryption ===== ^ Example ^ Description ^ Details ^ | [[.:verschluesselung|Encryption]] | ML-KEM, hybrid, AES-GCM | [[en:int:pqcrypt:szenarien:verschluesselung:start|-> Encryption Scenarios]] | | [[.:schluessel|Key Management]] | Generation, rotation, backup | [[en:int:pqcrypt:szenarien:schluessel:start|-> Key Scenarios]] | ---- ===== Import/Export ===== ^ Example ^ Description ^ Details ^ | [[.:import-export|Import/Export]] | PEM, PFX, PKCS#7 | [[en:int:pqcrypt:szenarien:import_export:start|-> Import/Export Scenarios]] | ---- ===== Quick Start: Complete Workflow ===== using WvdS.System.Security.Cryptography; using WvdS.System.Security.Cryptography.KeyExchange; using WvdS.System.Security.Cryptography.Encryption; // 1. Configuration CryptoConfig.DefaultMode = CryptoMode.Hybrid; // 2. Key Exchange using var mlKem = MlKem.Create(MlKemParameterSet.MlKem768); byte[] publicKey = mlKem.ExportPublicKey(); // Sender: Encapsulate var encap = MlKem.Encapsulate(publicKey); byte[] ciphertext = encap.Ciphertext; byte[] senderSecret = encap.SharedSecret; // Receiver: Decapsulate byte[] receiverSecret = mlKem.Decapsulate(ciphertext); // 3. Key Derivation byte[] aesKey = KeyDerivationExtensions.DeriveKey( receiverSecret, outputLength: 32, info: Encoding.UTF8.GetBytes("AES-256-GCM")); // 4. Encryption var aes = new Aes256Gcm(aesKey); byte[] encrypted = aes.Encrypt(plaintext); byte[] decrypted = aes.Decrypt(encrypted); ---- ===== Further Reading ===== * [[en:int:pqcrypt:szenarien:start|All Scenarios]] - Detailed documentation * [[en:int:pqcrypt:api:start|API Reference]] - Complete method signatures * [[en:int:pqcrypt:konzepte:algorithmen|Algorithms]] - ML-DSA, ML-KEM explained ---- //Wolfgang van der Stille @ EMSR DATA d.o.o. - Post-Quantum Cryptography Professional// {{tag>quickreference examples code quickstart}}