Method | Description | |
---|---|---|
CreateDecryptor ( byte rgbKey, byte rgbIV ) : ICryptoTransform |
Creates a symmetric decryptor object with the specified SymmetricAlgorithm.Key property and initialization vector (SymmetricAlgorithm.IV).
|
|
CreateEncryptor ( byte rgbKey, byte rgbIV ) : ICryptoTransform |
Creates a symmetric encryptor object with the specified SymmetricAlgorithm.Key property and initialization vector (SymmetricAlgorithm.IV).
|
|
GenerateIV ( ) : void |
Generates a random initialization vector (SymmetricAlgorithm.IV) to use for the algorithm.
|
|
GenerateKey ( ) : void |
Generates a random key (SymmetricAlgorithm.Key) to use for the algorithm.
|
|
Salsa20 ( ) : System |
Initializes a new instance of the Salsa20 class.
|
Method | Description | |
---|---|---|
CheckValidIV ( byte iv, string paramName ) : void | ||
GetRandomBytes ( int byteCount ) : byte[] | ||
ValidKeySize ( int size ) : bool |
public CreateDecryptor ( byte rgbKey, byte rgbIV ) : ICryptoTransform | ||
rgbKey | byte | The secret key to use for the symmetric algorithm. |
rgbIV | byte | The initialization vector to use for the symmetric algorithm. |
return | ICryptoTransform |
public CreateEncryptor ( byte rgbKey, byte rgbIV ) : ICryptoTransform | ||
rgbKey | byte | The secret key to use for the symmetric algorithm. |
rgbIV | byte | The initialization vector to use for the symmetric algorithm. |
return | ICryptoTransform |