System.Security.Cryptography.HpkeSender
Represents an HPKE sender context for encrypting multiple messages and exporting secrets.
Gets the cipher suite associated with this sender.
Initializes a new instance of the HpkeSender class with the specified cipher suite.
Releases all resources used by the HpkeSender class.
Releases the unmanaged resources used by this sender and optionally releases its managed resources.
Derives an exported secret from this sender context.
Derives an exported secret from this sender context.
Derives an exported secret from this sender context into the provided buffer.
When overridden in a derived class, derives an exported secret from this sender context.
Encrypts and authenticates a message using this sender context.
Encrypts and authenticates a message using this sender context.
public void Seal(ReadOnlySpan<byte> plaintext, Span<byte> ciphertext, ReadOnlySpan<byte> associatedData = default)
Encrypts and authenticates a message into the provided buffer using this sender context.
protected abstract void SealCore(ReadOnlySpan<byte> plaintext, Span<byte> ciphertext, ReadOnlySpan<byte> associatedData)
When overridden in a derived class, encrypts and authenticates a message using this sender context.