C# Class Org.BouncyCastle.Crypto.Engines.Cast5Engine

Inheritance: IBlockCipher
Mostra file Open project: nonorganic/dssnet Class Usage Examples

Public Methods

Method Description
Cast5Engine ( ) : System
GetBlockSize ( ) : int
Init ( bool forEncryption, ICipherParameters parameters ) : void
ProcessBlock ( byte input, int inOff, byte output, int outOff ) : int
Reset ( ) : void

Private Methods

Method Description
Bits32ToInts ( uint inData, int b, int offset ) : void
CAST_Decipher ( uint L16, uint R16, uint result ) : void
CAST_Encipher ( uint L0, uint R0, uint result ) : void
DecryptBlock ( byte src, int srcIndex, byte dst, int dstIndex ) : int
EncryptBlock ( byte src, int srcIndex, byte dst, int dstIndex ) : int
F1 ( uint D, uint Kmi, int Kri ) : uint
F2 ( uint D, uint Kmi, int Kri ) : uint
F3 ( uint D, uint Kmi, int Kri ) : uint
IntsTo32bits ( int b, int i ) : uint
SetKey ( byte key ) : void

Method Details

Cast5Engine() public method

public Cast5Engine ( ) : System
return System

GetBlockSize() public method

public GetBlockSize ( ) : int
return int

Init() public method

public Init ( bool forEncryption, ICipherParameters parameters ) : void
forEncryption bool
parameters ICipherParameters
return void

ProcessBlock() public method

public ProcessBlock ( byte input, int inOff, byte output, int outOff ) : int
input byte
inOff int
output byte
outOff int
return int

Reset() public method

public Reset ( ) : void
return void