Method | Description | |
---|---|---|
CreateDecryptor ( byte key, byte iv ) : ICryptoTransform |
Creates an object that supports ICryptoTransform that can be used to decrypt data using the Twofish encryption algorithm.
|
|
CreateEncryptor ( byte key, byte iv ) : ICryptoTransform |
Creates an object that supports ICryptoTransform that can be used to encrypt data using the Twofish encryption algorithm.
|
|
GenerateIV ( ) : void |
Generates a random initialization Vector (IV).
|
|
GenerateKey ( ) : void |
Generates a random Key. This is only really useful in testing scenarios.
|
|
Twofish ( ) : System |
This is the Twofish constructor.
|
public CreateDecryptor ( byte key, byte iv ) : ICryptoTransform | ||
key | byte | A byte array that contains a key. The length of this key should be equal to the KeySize property |
iv | byte | A byte array that contains an initialization vector. The length of this IV should be equal to the BlockSize property |
return | ICryptoTransform |
public CreateEncryptor ( byte key, byte iv ) : ICryptoTransform | ||
key | byte | A byte array that contains a key. The length of this key should be equal to the KeySize property |
iv | byte | A byte array that contains an initialization vector. The length of this IV should be equal to the BlockSize property |
return | ICryptoTransform |