ChaCha20Poly1305 Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應