Share via


ISpanAuthenticatedEncryptor Interface

Definition

Provides an authenticated encryption and decryption routine via a span-based API.

public interface ISpanAuthenticatedEncryptor : Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.IAuthenticatedEncryptor
type ISpanAuthenticatedEncryptor = interface
    interface IAuthenticatedEncryptor
Public Interface ISpanAuthenticatedEncryptor
Implements IAuthenticatedEncryptor
Implements

Methods

Name Description
Decrypt(ArraySegment<Byte>, ArraySegment<Byte>)

Validates the authentication tag of and decrypts a blob of encrypted data.

(Inherited from IAuthenticatedEncryptor)
Decrypt<TWriter>(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, TWriter)

Validates the authentication tag of and decrypts a blob of encrypted data, writing the result to a buffer writer.

Encrypt(ArraySegment<Byte>, ArraySegment<Byte>)

Encrypts and tamper-proofs a piece of data.

(Inherited from IAuthenticatedEncryptor)
Encrypt<TWriter>(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, TWriter)

Encrypts and authenticates a piece of plaintext data and writes the result to a buffer writer.

Applies to