Table of Contents

Class AesGcm128

Namespace
CryptoHives.Foundation.Security.Cryptography.Cipher
Assembly
CryptoHives.Foundation.Security.Cryptography.dll

AES-128-GCM authenticated encryption.

public sealed class AesGcm128 : AesGcm, IAeadCipher, IDisposable
Inheritance
AesGcm128
Implements
Inherited Members

Constructors

AesGcm128(ReadOnlySpan<byte>)

Initializes a new instance of the AesGcm128 class.

public AesGcm128(ReadOnlySpan<byte> key)

Parameters

key ReadOnlySpan<byte>

The 16-byte AES key.

Fields

KeySize

Key size in bytes for AES-128-GCM.

public const int KeySize = 16

Field Value

int

Properties

AlgorithmName

Gets the algorithm name.

public override string AlgorithmName { get; }

Property Value

string

Methods

Create(ReadOnlySpan<byte>)

Creates a new AES-128-GCM instance.

public static AesGcm128 Create(ReadOnlySpan<byte> key)

Parameters

key ReadOnlySpan<byte>

The 16-byte key.

Returns

AesGcm128

A new AES-128-GCM instance.