Class Aes192
- Namespace
- CryptoHives.Foundation.Security.Cryptography.Cipher
- Assembly
- CryptoHives.Foundation.Security.Cryptography.dll
AES-192 symmetric cipher implementation.
public sealed class Aes192 : SymmetricCipher, IDisposable
- Inheritance
-
Aes192
- Implements
- Inherited Members
Remarks
AES-192 uses a 192-bit (24-byte) key with 12 rounds of encryption. It provides a balance between security and performance.
Security level: 192 bits (quantum: 96 bits with Grover's algorithm)
Note: AES-192 is less commonly used than AES-128 or AES-256. Some standards and implementations do not support it.
Constructors
Aes192()
Initializes a new instance of the Aes192 class.
public Aes192()
Fields
KeySizeBits
Key size in bits for AES-192.
public const int KeySizeBits = 192
Field Value
KeySizeBytes
Key size in bytes for AES-192.
public const int KeySizeBytes = 24
Field Value
Properties
AlgorithmName
Gets the name of the cipher algorithm.
public override string AlgorithmName { get; }
Property Value
Examples
"AES-256", "ChaCha20", "AES-256-GCM"
IVSize
Gets the required IV/nonce size in bytes for the current mode.
public override int IVSize { get; }
Property Value
Methods
Create()
Creates a new instance of the Aes192 cipher.
public static Aes192 Create()
Returns
- Aes192
A new AES-192 cipher instance.
CreateCipherDecryptor(ReadOnlySpan<byte>, ReadOnlySpan<byte>)
Creates a decryptor transform using the specified key and IV.
protected override ICipherTransform CreateCipherDecryptor(ReadOnlySpan<byte> key, ReadOnlySpan<byte> iv)
Parameters
keyReadOnlySpan<byte>The secret key.
ivReadOnlySpan<byte>The initialization vector or nonce.
Returns
- ICipherTransform
A new cipher decryptor transform.
CreateCipherEncryptor(ReadOnlySpan<byte>, ReadOnlySpan<byte>)
Creates an encryptor transform using the specified key and IV.
protected override ICipherTransform CreateCipherEncryptor(ReadOnlySpan<byte> key, ReadOnlySpan<byte> iv)
Parameters
keyReadOnlySpan<byte>The secret key.
ivReadOnlySpan<byte>The initialization vector or nonce.
Returns
- ICipherTransform
A new cipher encryptor transform.