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

Inheritance: IAsymmetricBlockCipher
Show file Open project: red-gate/iTextSharp-4.1.6 Class Usage Examples

Public Methods

Method Description
AddCryptedBlocks ( byte block1, byte block2 ) : byte[]
Encrypt ( BigInteger plain ) : byte[]
GetInputBlockSize ( ) : int
GetOutputBlockSize ( ) : int
Init ( bool forEncryption, ICipherParameters parameters ) : void
ProcessBlock ( byte inBytes, int inOff, int length ) : byte[]
ProcessData ( byte data ) : byte[]

Private Methods

Method Description
chineseRemainder ( ArrayList congruences, ArrayList primes ) : BigInteger

Method Details

AddCryptedBlocks() public method

public AddCryptedBlocks ( byte block1, byte block2 ) : byte[]
block1 byte
block2 byte
return byte[]

Encrypt() public method

public Encrypt ( BigInteger plain ) : byte[]
plain Org.BouncyCastle.Math.BigInteger
return byte[]

GetInputBlockSize() public method

public GetInputBlockSize ( ) : int
return int

GetOutputBlockSize() public method

public GetOutputBlockSize ( ) : 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 inBytes, int inOff, int length ) : byte[]
inBytes byte
inOff int
length int
return byte[]

ProcessData() public method

public ProcessData ( byte data ) : byte[]
data byte
return byte[]