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 ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για