Initializes a new instance of the AesCipher class.
Namespace: Renci.SshNet.Security.Cryptography.CiphersAssembly: Renci.SshNet (in Renci.SshNet.dll) Version: 0.1.0.0 (1.0.0.0)
Syntax
public AesCipher( byte[] key, CipherMode mode, CipherPadding padding )
Parameters
- key
- Type:
System Byte
The key.
- mode
- Type: Renci.SshNet.Security.Cryptography.Ciphers CipherMode
The mode.
- padding
- Type: Renci.SshNet.Security.Cryptography.Ciphers CipherPadding
The padding.
Exceptions
| Exception | Condition |
|---|---|
| key is null. | |
| Keysize is not valid for this algorithm. |
See Also