Class AesCcm128
- Namespace
- CryptoHives.Foundation.Security.Cryptography.Cipher
- Assembly
- CryptoHives.Foundation.Security.Cryptography.dll
AES-128-CCM authenticated encryption.
public sealed class AesCcm128 : AesCcm, IAeadCipher, IDisposable
- Inheritance
-
AesCcm128
- Implements
- Inherited Members
Remarks
AES-128-CCM uses a 128-bit (16-byte) key with CCM mode for authenticated encryption.
Constructors
AesCcm128(ReadOnlySpan<byte>)
Initializes a new instance of the AesCcm128 class.
public AesCcm128(ReadOnlySpan<byte> key)
Parameters
keyReadOnlySpan<byte>The 16-byte key.
Fields
KeySizeBytesConst
Key size in bytes for AES-128.
public const int KeySizeBytesConst = 16
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-128-CCM instance.
public static AesCcm128 Create(ReadOnlySpan<byte> key)
Parameters
keyReadOnlySpan<byte>The 16-byte key.
Returns
- AesCcm128
A new AES-128-CCM instance.