C# 클래스 CASCExplorer.Salsa20

Implements the Salsa20 stream encryption cipher, as defined at http://cr.yp.to/snuffle.html.
상속: System.Security.Cryptography.SymmetricAlgorithm
파일 보기 프로젝트 열기: WoW-Tools/CASCExplorer

공개 메소드들

메소드 설명
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

메소드 상세

CreateDecryptor() 공개 메소드

Creates a symmetric decryptor object with the specified SymmetricAlgorithm.Key property and initialization vector (SymmetricAlgorithm.IV).
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

CreateEncryptor() 공개 메소드

Creates a symmetric encryptor object with the specified SymmetricAlgorithm.Key property and initialization vector (SymmetricAlgorithm.IV).
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

GenerateIV() 공개 메소드

Generates a random initialization vector (SymmetricAlgorithm.IV) to use for the algorithm.
public GenerateIV ( ) : void
리턴 void

GenerateKey() 공개 메소드

Generates a random key (SymmetricAlgorithm.Key) to use for the algorithm.
public GenerateKey ( ) : void
리턴 void

Salsa20() 공개 메소드

Initializes a new instance of the Salsa20 class.
The implementation of the class derived from the symmetric algorithm is not valid.
public Salsa20 ( ) : System
리턴 System