語言

ISpanAuthenticatedEncryptor 介面

定義

透過基於 span 的 API 提供經過認證的加密與解密程序。

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

方法

名稱 Description
Decrypt(ArraySegment<Byte>, ArraySegment<Byte>)

驗證認證標籤並解密一組加密資料。

(繼承來源 IAuthenticatedEncryptor)
Decrypt<TWriter>(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, TWriter)

驗證認證標籤並解密一組加密資料,將結果寫入緩衝區寫入器。

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

加密並防篡改資料。

(繼承來源 IAuthenticatedEncryptor)
Encrypt<TWriter>(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, TWriter)

加密並認證一段明文資料,並將結果寫入緩衝區寫入器。

適用於