C# Класс SupportClass.MessageDigestSupport, csharp-ldap

Encapsulates the functionality of message digest algorithms such as SHA-1 or MD5.
Показать файл Открыть проект

Открытые методы

Метод Описание
GetInstance ( System algorithm ) : MessageDigestSupport

Generates a new instance of the MessageDigestSupport class using the specified algorithm

MessageDigestSupport ( System algorithm ) : System

Creates a message digest using the specified name to set Algorithm property.

Reset ( ) : void

Resets the digest data to the initial state.

ToString ( ) : string

Returns a string representation of the Message Digest

Update ( byte newData ) : void

Updates the digest data with the specified array of bytes by making an append operation in the internal array of data.

Update ( byte newData, int offset, int count ) : void

Updates the specified count of bytes with the input array of bytes starting at the input offset.

Приватные методы

Метод Описание
DigestData ( ) : sbyte[]
DigestData ( byte newData ) : sbyte[]
EquivalentDigest ( System firstDigest, System secondDigest ) : bool

Описание методов

GetInstance() публичный статический Метод

Generates a new instance of the MessageDigestSupport class using the specified algorithm
public static GetInstance ( System algorithm ) : MessageDigestSupport
algorithm System The name of the algorithm to use
Результат MessageDigestSupport

MessageDigestSupport() публичный Метод

Creates a message digest using the specified name to set Algorithm property.
public MessageDigestSupport ( System algorithm ) : System
algorithm System The name of the algorithm to use
Результат System

Reset() публичный Метод

Resets the digest data to the initial state.
public Reset ( ) : void
Результат void

ToString() публичный Метод

Returns a string representation of the Message Digest
public ToString ( ) : string
Результат string

Update() публичный Метод

Updates the digest data with the specified array of bytes by making an append operation in the internal array of data.
public Update ( byte newData ) : void
newData byte The array of bytes for the update operation
Результат void

Update() публичный Метод

Updates the specified count of bytes with the input array of bytes starting at the input offset.
public Update ( byte newData, int offset, int count ) : void
newData byte The array of bytes for the update operation
offset int The initial position to start from in the array of bytes
count int The number of bytes fot the update
Результат void