C# Class DotNetCrypt.SerpentManagedTransform

Performs a cryptographic transformation of data using the Serpent algorithm. This class cannot be inherited.
Inheritance: ManagedTransformBase
Datei anzeigen Open project: drizzt/KeePass-SerpentCipher

Protected Methods

Method Description
DecryptBlock ( byte block ) : void

Decrypts a single block of bytes, writing the result into the provided array.

EncryptBlock ( byte block ) : void

Encrypts a single block of bytes, writing the result into the provided array.

Reset ( ) : void

Clears all potentially sensitive data stores.

Private Methods

Method Description
ComputeKeySchedule ( ) : void
Decrypt ( uint cipher ) : void
Encrypt ( uint plain ) : void
GetBit ( uint x, int p, int offset ) : uint
GetFullLengthKey ( ) : uint[]
SerpentManagedTransform ( ISymmetricAlgorithm algorithm, byte rgbKey, byte rgbIv, TransformDirection transformDirection ) : System

Method Details

DecryptBlock() protected method

Decrypts a single block of bytes, writing the result into the provided array.
protected DecryptBlock ( byte block ) : void
block byte /// The block of bytes to be decrypted. ///
return void

EncryptBlock() protected method

Encrypts a single block of bytes, writing the result into the provided array.
protected EncryptBlock ( byte block ) : void
block byte /// The block of bytes to be encrypted. ///
return void

Reset() protected method

Clears all potentially sensitive data stores.
protected Reset ( ) : void
return void