Class AesCcm256
- Namespace
- CryptoHives.Foundation.Security.Cryptography.Cipher
- Assembly
- CryptoHives.Foundation.Security.Cryptography.dll
AES-256-CCM authenticated encryption.
public sealed class AesCcm256 : AesCcm, IAeadCipher, IDisposable
- Inheritance
-
AesCcm256
- Implements
- Inherited Members
Remarks
AES-256-CCM uses a 256-bit (32-byte) key with CCM mode for authenticated encryption.
Constructors
AesCcm256(ReadOnlySpan<byte>)
Initializes a new instance of the AesCcm256 class.
public AesCcm256(ReadOnlySpan<byte> key)
Parameters
keyReadOnlySpan<byte>The 32-byte key.
Fields
KeySizeBytesConst
Key size in bytes for AES-256.
public const int KeySizeBytesConst = 32
Field Value
Properties
AlgorithmName
Gets the algorithm name.
public override string AlgorithmName { get; }
Property Value
KeySizeBytes
Gets the key size in bytes.
public override int KeySizeBytes { get; }
Property Value
Methods
Create(ReadOnlySpan<byte>)
Creates a new AES-256-CCM instance.
public static AesCcm256 Create(ReadOnlySpan<byte> key)
Parameters
keyReadOnlySpan<byte>The 32-byte key.
Returns
- AesCcm256
A new AES-256-CCM instance.