Class CamelliaGcm
- Namespace
- CryptoHives.Foundation.Security.Cryptography.Cipher
- Assembly
- CryptoHives.Foundation.Security.Cryptography.dll
Camellia-GCM authenticated encryption (Camellia per RFC 3713; used in TLS by RFC 6367).
public sealed class CamelliaGcm : GcmCipher, IAeadCipher, IDisposable
- Inheritance
-
CamelliaGcm
- Implements
- Inherited Members
Constructors
CamelliaGcm(ReadOnlySpan<byte>)
Initializes a new instance of the CamelliaGcm class.
public CamelliaGcm(ReadOnlySpan<byte> key)
Parameters
keyReadOnlySpan<byte>The 16, 24, or 32-byte Camellia key.
Exceptions
- ArgumentException
The key has the wrong length.
Properties
AlgorithmName
Gets the algorithm name.
public override string AlgorithmName { get; }
Property Value
Methods
Create(ReadOnlySpan<byte>)
Creates a new Camellia-GCM instance.
public static CamelliaGcm Create(ReadOnlySpan<byte> key)
Parameters
keyReadOnlySpan<byte>The 16, 24, or 32-byte Camellia key.
Returns
- CamelliaGcm
A new Camellia-GCM instance.