메소드 | 설명 | |
---|---|---|
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.
|
메소드 | 설명 | |
---|---|---|
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. |
리턴 | 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. |
리턴 | ICryptoTransform |