AesCryptor Constructor
Definition
- Namespace
- Cuemon.Security.Cryptography
- Assemblies
- Cuemon.Security.Cryptography.dll
AesCryptor()
Initializes a new instance of the AesCryptor class.
public AesCryptor()
AesCryptor(byte[], byte[])
Initializes a new instance of the AesCryptor class.
public AesCryptor(byte[] key, byte[] initializationVector)
Parameters
keybyte[]The secret key of this instance.
initializationVectorbyte[]The initialization vector (IV) of this instance.
Exceptions
- ArgumentNullException
keycannot be null -or-initializationVectorcannot be null.- CryptographicException
keydoes not meet the required fixed size of either 128 bits, 192 bits or 256 bits -or-initializationVectordoes not meet the required fixed size of 128 bits.