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

System.Security.Cryptography.HpkeSender

public abstract class HpkeSender : IDisposable
Represents an HPKE sender context for encrypting multiple messages and exporting secrets.
namespace System.Security.Cryptography { public abstract class HpkeSender : IDisposable { public HpkeSuite Suite { get; } protected HpkeSender(HpkeSuite suite); public byte[] Seal(ReadOnlySpan<byte> plaintext, ReadOnlySpan<byte> associatedData = default(ReadOnlySpan<byte>)); public byte[] Seal(byte[] plaintext, byte[] associatedData = null); public void Seal(ReadOnlySpan<byte> plaintext, Span<byte> ciphertext, ReadOnlySpan<byte> associatedData = default(ReadOnlySpan<byte>)); protected abstract void SealCore(ReadOnlySpan<byte> plaintext, Span<byte> ciphertext, 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); } }