KEM
The key encapsulation mechanisms to use in HPKE.
- iOS
- 13+
- macOS
- 10.15+
- Mac Catalyst
- 13+
- tvOS
- 13+
- visionOS
- 1.0+
- watchOS
- 6+
enum KEMThe key encapsulation mechanisms to use in HPKE.
enum KEMimport CryptoA cryptography library for Swift.
enum HPKEA container for hybrid public key encryption (HPKE) operations.
case P256_HKDF_SHA256A key encapsulation mechanism using NIST P-256 elliptic curve key agreement and SHA-2 hashing with a 256-bit digest.
case P384_HKDF_SHA384A key encapsulation mechanism using NIST P-384 elliptic curve key agreement and SHA-2 hashing with a 384-bit digest.
case P521_HKDF_SHA512A key encapsulation mechanism using NIST P-521 elliptic curve key agreement and SHA-2 hashing with a 512-bit digest.
case Curve25519_HKDF_SHA256A key encapsulation mechanism using X25519 elliptic curve key agreement and SHA-2 hashing with a 256-bit digest.
struct CiphersuiteCipher suites to use in hybrid public key encryption.
enum AEADThe authenticated encryption with associated data (AEAD) algorithms to use in HPKE.
enum KDFThe key derivation functions to use in HPKE.
enum DHKEMA container for Diffie-Hellman key encapsulation mechanisms (KEMs).
enum ErrorsHybrid public key encryption (HPKE) errors that CryptoKit uses.
struct RecipientA type that represents the receiving side of an HPKE message exchange.
struct SenderA type that represents the sending side of an HPKE message exchange.
protocol CaseIterableA type that provides a collection of all of its values.
protocol EquatableA type that can be compared for value equality.
protocol Hashable : EquatableA type that can be hashed into a Hasher to produce an integer hash value.
static func != (lhs: Self, rhs: Self) -> Bool Returns a Boolean value indicating whether two values are not equal.