Table of Contents

Class KuznyechikGcm

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

Kuznyechik-GCM authenticated encryption (GOST R 34.12-2015).

public sealed class KuznyechikGcm : GcmCipher, IAeadCipher, IDisposable
Inheritance
KuznyechikGcm
Implements
Inherited Members

Constructors

KuznyechikGcm(ReadOnlySpan<byte>)

Initializes a new instance of the KuznyechikGcm class.

public KuznyechikGcm(ReadOnlySpan<byte> key)

Parameters

key ReadOnlySpan<byte>

The 32-byte Kuznyechik key.

Exceptions

ArgumentException

The key has the wrong length.

Properties

AlgorithmName

Gets the algorithm name.

public override string AlgorithmName { get; }

Property Value

string

Methods

Create(ReadOnlySpan<byte>)

Creates a new Kuznyechik-GCM instance.

public static KuznyechikGcm Create(ReadOnlySpan<byte> key)

Parameters

key ReadOnlySpan<byte>

The 32-byte Kuznyechik key.

Returns

KuznyechikGcm

A new Kuznyechik-GCM instance.