C# Class OpenRA.FileFormats.Blowfish

Mostra file Open project: pchote/OpenRA Class Usage Examples

Public Methods

Method Description
Blowfish ( byte key )
Decrypt ( uint data ) : uint[]
Encrypt ( uint data ) : uint[]

Private Methods

Method Description
ConvertBFtoF ( uint x ) : uint
Decrypt ( uint &a, uint &b ) : void
Encrypt ( uint &a, uint &b ) : void
Round ( uint &a, uint b, int n ) : void
RunCipher ( uint data, CipherFunc f ) : uint[]
S ( uint x, int i ) : uint
SwapBytes ( uint i ) : uint

Method Details

Blowfish() public method

public Blowfish ( byte key )
key byte

Decrypt() public method

public Decrypt ( uint data ) : uint[]
data uint
return uint[]

Encrypt() public method

public Encrypt ( uint data ) : uint[]
data uint
return uint[]