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

A class that provides a basic DES engine.
Inheritance: IBlockCipher
Mostrar archivo Open project: nonorganic/dssnet Class Usage Examples

Public Methods

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

Protected Methods

Method Description
GenerateWorkingKey ( bool encrypting, byte key ) : int[]

Private Methods

Method Description
DesFunc ( int wKey, byte input, int inOff, byte outBytes, int outOff ) : void

Method Details

GenerateWorkingKey() protected static method

protected static GenerateWorkingKey ( bool encrypting, byte key ) : int[]
encrypting bool
key byte
return int[]

GetBlockSize() public method

public GetBlockSize ( ) : int
return int

GetWorkingKey() public method

public GetWorkingKey ( ) : 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