Uredi

Deli z drugimi prek


AesCcm Constructors

Definition

Overloads

AesCcm(Byte[])

Initializes a new instance of the AesCcm class with a provided key.

AesCcm(ReadOnlySpan<Byte>)

Initializes a new instance of the AesCcm class with a provided key.

AesCcm(Byte[])

Source:
AesCcm.cs
Source:
AesCcm.cs
Source:
AesCcm.cs

Initializes a new instance of the AesCcm class with a provided key.

public:
 AesCcm(cli::array <System::Byte> ^ key);
public AesCcm (byte[] key);
new System.Security.Cryptography.AesCcm : byte[] -> System.Security.Cryptography.AesCcm
Public Sub New (key As Byte())

Parameters

key
Byte[]

The secret key to use for this instance.

Exceptions

The key parameter is null.

The key parameter length is other than 16, 24, or 32 bytes (128, 192, or 256 bits).

Applies to

AesCcm(ReadOnlySpan<Byte>)

Source:
AesCcm.cs
Source:
AesCcm.cs
Source:
AesCcm.cs

Initializes a new instance of the AesCcm class with a provided key.

public:
 AesCcm(ReadOnlySpan<System::Byte> key);
public AesCcm (ReadOnlySpan<byte> key);
new System.Security.Cryptography.AesCcm : ReadOnlySpan<byte> -> System.Security.Cryptography.AesCcm
Public Sub New (key As ReadOnlySpan(Of Byte))

Parameters

key
ReadOnlySpan<Byte>

The secret key to use for this instance.

Exceptions

The key parameter length is other than 16, 24, or 32 bytes (128, 192, or 256 bits).

Applies to