AesCcm 類別

定義

表示要搭配 CBC-MAC (CCM) 模式作業計數器使用的進階加密標準 (AES) 金鑰。

public ref class AesCcm sealed : IDisposable
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public sealed class AesCcm : IDisposable
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public sealed class AesCcm : IDisposable
public sealed class AesCcm : IDisposable
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
type AesCcm = class
    interface IDisposable
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
type AesCcm = class
    interface IDisposable
type AesCcm = class
    interface IDisposable
Public NotInheritable Class AesCcm
Implements IDisposable
繼承
AesCcm
屬性
實作

建構函式

AesCcm(Byte[])

使用提供的金鑰,初始化 AesCcm 類別的新執行個體。

AesCcm(ReadOnlySpan<Byte>)

使用提供的金鑰,初始化 AesCcm 類別的新執行個體。

屬性

IsSupported

取得值,這個值表示目前平臺上是否支援演算法。

NonceByteSizes

取得這個執行個體支援的 nonce 大小 (以位元組為單位)。

TagByteSizes

取得這個執行個體支援的標記大小 (以位元組為單位)。

方法

Decrypt(Byte[], Byte[], Byte[], Byte[], Byte[])

如果可對驗證標記進行驗證,則將加密文字解密至提供的目的地緩衝區。

Decrypt(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Span<Byte>, ReadOnlySpan<Byte>)

如果可對驗證標記進行驗證,則將加密文字解密至提供的目的地緩衝區。

Dispose()

AesCcm 類別的目前執行個體所使用的資源釋出。

Encrypt(Byte[], Byte[], Byte[], Byte[], Byte[])

將純文字加密至加密文字目的地緩衝區,並在另一個緩衝區中產生驗證標記。

Encrypt(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Span<Byte>, Span<Byte>, ReadOnlySpan<Byte>)

將純文字加密至加密文字目的地緩衝區,並在另一個緩衝區中產生驗證標記。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於