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