ChaCha20Poly1305 Constructors
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.
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. |
- 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
.NET 10 i druge verzije
Proizvod | Verzije |
---|---|
.NET | 6, 7, 8, 9, 10 |
- 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
.NET 10 i druge verzije
Proizvod | Verzije |
---|---|
.NET | 6, 7, 8, 9, 10 |
Povratne informacije o proizvodu .NET
.NET je projekt otvorenog koda. Odaberite vezu za slanje povratnih informacija: