C# Class Microsoft.Protocols.TestSuites.SharedAdapter.RDCSignatureGenerator

A class implements MD4 algorithm to generate RDC signature.
Inheritance: System.Security.Cryptography.HashAlgorithm
Datei anzeigen Open project: OfficeDev/Interop-TestSuites Class Usage Examples

Public Methods

Method Description
Initialize ( ) : void

Initializes an implementation of the System.Security.Cryptography.HashAlgorithm class.

RDCSignatureGenerator ( ) : System

Initializes a new instance of the RDCSignatureGenerator class

Protected Methods

Method Description
HashCore ( byte array, int start, int size ) : void

Routes data written to the object into the hash algorithm for computing the hash.

HashFinal ( ) : byte[]

Finalizes the hash computation after the last data is processed by the cryptographic stream object.

Private Methods

Method Description
MD4Transform ( ) : void

MD4 basic transformation. Transforms state based on block.

Padding ( ) : byte[]

Get the padding byte array.

ProcessMessage ( byte array ) : void

Computes the hash value for the specified region of the input byte.

RotateLeft ( uint rotatedData, int n ) : uint

Rotate specify data left n bits .

Round1 ( uint a, uint b, uint c, uint d, uint inputData, int s ) : uint

The operation for round1.

Round2 ( uint a, uint b, uint c, uint d, uint inputData, int s ) : uint

The operation for round2.

Round3 ( uint a, uint b, uint c, uint d, uint inputData, int s ) : uint

The operation for round3.

Method Details

HashCore() protected method

Routes data written to the object into the hash algorithm for computing the hash.
protected HashCore ( byte array, int start, int size ) : void
array byte The input to compute the hash code for.
start int The offset into the byte array from which to begin using data.
size int The number of bytes in the byte array to use as data.
return void

HashFinal() protected method

Finalizes the hash computation after the last data is processed by the cryptographic stream object.
protected HashFinal ( ) : byte[]
return byte[]

Initialize() public method

Initializes an implementation of the System.Security.Cryptography.HashAlgorithm class.
public Initialize ( ) : void
return void

RDCSignatureGenerator() public method

Initializes a new instance of the RDCSignatureGenerator class
public RDCSignatureGenerator ( ) : System
return System