Uredi

Deli z drugimi prek


ChaCha20Poly1305 Constructors

Definition

Overloads

ChaCha20Poly1305(Byte[])

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

ChaCha20Poly1305(ReadOnlySpan<Byte>)

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

ChaCha20Poly1305(Byte[])

Source:
ChaCha20Poly1305.cs
Source:
ChaCha20Poly1305.cs
Source:
ChaCha20Poly1305.cs

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

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

Parameters

key
Byte[]

The secret key to use for this instance.

Exceptions

The key parameter length is not 32 bytes (256 bits).

Applies to

ChaCha20Poly1305(ReadOnlySpan<Byte>)

Source:
ChaCha20Poly1305.cs
Source:
ChaCha20Poly1305.cs
Source:
ChaCha20Poly1305.cs

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

public:
 ChaCha20Poly1305(ReadOnlySpan<System::Byte> key);
public ChaCha20Poly1305 (ReadOnlySpan<byte> key);
new System.Security.Cryptography.ChaCha20Poly1305 : ReadOnlySpan<byte> -> System.Security.Cryptography.ChaCha20Poly1305
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 not 32 bytes (256 bits).

Applies to