C# Class Metropass.Core.PCL.Cipher.Salsa20Cipher

ファイルを表示 Open project: TheAngryByrd/MetroPass Class Usage Examples

Public Methods

Method Description
Encrypt ( byte m, int nByteCount, bool bXor ) : void
Salsa20Cipher ( byte pbKey32, byte pbIV8 ) : System

Private Methods

Method Description
IvSetup ( byte pbIV ) : void
KeySetup ( byte k ) : void
NextOutput ( ) : void
Rotl32 ( uint x, int b ) : uint
U8To32Little ( byte pb, int iOffset ) : uint

Method Details

Encrypt() public method

public Encrypt ( byte m, int nByteCount, bool bXor ) : void
m byte
nByteCount int
bXor bool
return void

Salsa20Cipher() public method

public Salsa20Cipher ( byte pbKey32, byte pbIV8 ) : System
pbKey32 byte
pbIV8 byte
return System