C# 클래스 SupportClass.MessageDigestSupport, csharp-ldap

Encapsulates the functionality of message digest algorithms such as SHA-1 or MD5.
파일 보기 프로젝트 열기: EventStore/csharp-ldap

공개 메소드들

메소드 설명
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