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

Inheritance: IWrapper
Mostrar archivo Open project: nonorganic/dssnet Class Usage Examples

Public Methods

Method Description
Init ( bool forWrapping, ICipherParameters parameters ) : void
Unwrap ( byte input, int inOff, int length ) : byte[]
Wrap ( byte input, int inOff, int length ) : byte[]

Private Methods

Method Description
CalculateCmsKeyChecksum ( byte key ) : byte[]
CheckCmsKeyChecksum ( byte key, byte checksum ) : bool

Method Details

Init() public method

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

Unwrap() public method

public Unwrap ( byte input, int inOff, int length ) : byte[]
input byte
inOff int
length int
return byte[]

Wrap() public method

public Wrap ( byte input, int inOff, int length ) : byte[]
input byte
inOff int
length int
return byte[]