kdf
The key derivation function (KDF) for deriving the symmetric key.
- iOS
- 13+
- macOS
- 10.15+
- Mac Catalyst
- 13+
- tvOS
- 13+
- visionOS
- 1.0+
- watchOS
- 6+
let kdf: HPKE.KDFThe key derivation function (KDF) for deriving the symmetric key.
let kdf: HPKE.KDFimport CryptoA cryptography library for Swift.
struct CiphersuiteCipher suites to use in hybrid public key encryption.
enum HPKEA container for hybrid public key encryption (HPKE) operations.
enum KDFThe key derivation functions to use in HPKE.
init(kem: HPKE.KEM, kdf: HPKE.KDF, aead: HPKE.AEAD) Creates an HPKE cipher suite.
static let Curve25519_SHA256_ChachaPoly: HPKE.CiphersuiteA cipher suite for HPKE that uses X25519 elliptic curve key agreement, SHA-2 key derivation with a 256-bit digest, and the ChaCha20 stream cipher with the Poly1305 message authentication code.
static let P256_SHA256_AES_GCM_256: HPKE.CiphersuiteA cipher suite for HPKE that uses NIST P-256 elliptic curve key agreement, SHA-2 key derivation with a 256-bit digest, and the Advanced Encryption Standard cipher in Galois/Counter Mode with a key length of 256 bits.
static let P384_SHA384_AES_GCM_256: HPKE.CiphersuiteA cipher suite that you use for HPKE using NIST P-384 elliptic curve key agreement, SHA-2 key derivation with a 384-bit digest, and the Advanced Encryption Standard cipher in Galois/Counter Mode with a key length of 256 bits.
static let P521_SHA512_AES_GCM_256: HPKE.CiphersuiteA cipher suite for HPKE that uses NIST P-521 elliptic curve key agreement, SHA-2 key derivation with a 512-bit digest, and the Advanced Encryption Standard cipher in Galois/Counter Mode with a key length of 256 bits.
let aead: HPKE.AEADThe authenticated encryption with additional data (AEAD) algorithm for encrypting and decrypting messages.
let kem: HPKE.KEMThe key encapsulation mechanism (KEM) for encapsulating the symmetric key.