<PackageReference Include="Microsoft.Bcl.Cryptography" Version="11.0.0-rc.2.26504.105" />

System.Security.Cryptography.HpkeSuite

public sealed class HpkeSuite : IEquatable<HpkeSuite>
Represents a Hybrid Public Key Encryption (HPKE) cipher suite.
public HpkeAead AeadAlgorithm { get; }

Gets the authenticated encryption with associated data (AEAD) algorithm for the cipher suite.

public int AeadTagSizeInBytes { get; }

Gets the size of the authentication tag for the cipher suite, in bytes.

public int DecapsulationKeySizeInBytes { get; }

Gets the size of the decapsulation key for the cipher suite, in bytes.

public int EncapsulatedSecretSizeInBytes { get; }

Gets the size of an encapsulated secret for the cipher suite, in bytes.

public int EncapsulationKeySizeInBytes { get; }

Gets the size of the encapsulation key for the cipher suite, in bytes.

public HpkeKdf KdfAlgorithm { get; }

Gets the key derivation function (KDF) for the cipher suite.

public HpkeKem KemAlgorithm { get; }

Gets the key encapsulation mechanism (KEM) for the cipher suite.

public string Name { get; }

Gets the name of the cipher suite.

public HpkeSuite(HpkeKem kem, HpkeKdf kdf, HpkeAead aead)

Initializes a new instance of the HpkeSuite class with the specified algorithms.

public static bool op_Equality(HpkeSuite left, HpkeSuite right)

Determines whether two HpkeSuite objects specify the same algorithms.

public static bool op_Inequality(HpkeSuite left, HpkeSuite right)

Determines whether two HpkeSuite objects do not specify the same algorithms.

public bool Equals(HpkeSuite other)

Compares two HpkeSuite objects.

public int GetCiphertextLength(int plaintextLength)

Gets the length of the ciphertext produced by encrypting a plaintext of the specified length.