Class CipherInfo
Holds information about key size and cipher to use.
public class CipherInfo
- Inheritance
-
CipherInfo
- Inherited Members
Constructors
CipherInfo(int, Func<byte[], byte[], Cipher>, bool)
Initializes a new instance of the CipherInfo class.
public CipherInfo(int keySize, Func<byte[], byte[], Cipher> cipher, bool isAead = false)
Parameters
keySize
intSize of the key.
cipher
Func<byte[], byte[], Cipher>The cipher.
isAead
booltrue to indicate the cipher is AEAD, false to indicate the cipher is not AEAD.
Properties
Cipher
Gets the cipher.
public Func<byte[], byte[], Cipher> Cipher { get; }
Property Value
IsAead
Gets a value indicating whether the cipher is AEAD (Authenticated Encryption with Associated data).
public bool IsAead { get; }
Property Value
KeySize
Gets the size of the key.
public int KeySize { get; }
Property Value
- int
The size of the key.