AesCcm 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.
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. |
- 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
.NET 9 and other versions
Product | Versions |
---|---|
.NET | Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Standard | 2.1 |
- 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
.NET 9 and other versions
Product | Versions |
---|---|
.NET | Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Standard | 2.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: