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

System.Security.Cryptography.HpkeRecipient

public abstract class HpkeRecipient : IDisposable
Represents an HPKE recipient context for decrypting multiple messages and exporting secrets.
namespace System.Security.Cryptography { public abstract class HpkeRecipient : IDisposable { public HpkeSuite Suite { get; } protected HpkeRecipient(HpkeSuite suite); public byte[] Open(ReadOnlySpan<byte> ciphertext, ReadOnlySpan<byte> associatedData = default(ReadOnlySpan<byte>)); public byte[] Open(byte[] ciphertext, byte[] associatedData = null); public void Open(ReadOnlySpan<byte> ciphertext, Span<byte> plaintext, ReadOnlySpan<byte> associatedData = default(ReadOnlySpan<byte>)); protected abstract void OpenCore(ReadOnlySpan<byte> ciphertext, Span<byte> plaintext, ReadOnlySpan<byte> associatedData); public byte[] Export(ReadOnlySpan<byte> exporterContext, int length); public byte[] Export(byte[] exporterContext, int length); public void Export(ReadOnlySpan<byte> exporterContext, Span<byte> destination); protected abstract void ExportCore(ReadOnlySpan<byte> exporterContext, Span<byte> destination); public void Dispose(); protected virtual void Dispose(bool disposing); } }