Method | Description | |
---|---|---|
AppendData ( byte data ) : void |
Append the entire contents of data to the data already processed in the hash or HMAC.
|
|
AppendData ( byte data, int offset, int count ) : void |
Append count bytes of data, starting at offset, to the data already processed in the hash or HMAC.
|
|
CreateHMAC ( HashAlgorithmName hashAlgorithm, byte key ) : |
Create an IncrementalHash for the Hash-based Message Authentication Code (HMAC) algorithm utilizing the hash algorithm specified by hashAlgorithm, and a key specified by key.
|
|
CreateHash ( HashAlgorithmName hashAlgorithm ) : |
Create an IncrementalHash for the algorithm specified by hashAlgorithm.
|
|
Dispose ( ) : void |
Release all resources used by the current instance of the IncrementalHash class.
|
|
GetHashAndReset ( ) : byte[] |
Retrieve the hash or HMAC for the data accumulated from prior calls to AppendData(byte[]), and return to the state the object was in at construction.
|
Method | Description | |
---|---|---|
GetHMAC ( HashAlgorithmName hashAlgorithm, byte key ) : |
||
GetHashAlgorithm ( HashAlgorithmName hashAlgorithm ) : |
||
IncrementalHash ( HashAlgorithmName name, |
public AppendData ( byte data ) : void | ||
data | byte | The data to process. |
return | void |
public AppendData ( byte data, int offset, int count ) : void | ||
data | byte | The data to process. |
offset | int | The offset into the byte array from which to begin using data. |
count | int | The number of bytes in the array to use as data. |
return | void |
public static CreateHMAC ( HashAlgorithmName hashAlgorithm, byte key ) : |
||
hashAlgorithm | HashAlgorithmName | The name of the hash algorithm to perform within the HMAC. |
key | byte |
/// The secret key for the HMAC. The key can be any length, but a key longer than the output size
/// of the hash algorithm specified by |
return |
public static CreateHash ( HashAlgorithmName hashAlgorithm ) : |
||
hashAlgorithm | HashAlgorithmName | The name of the hash algorithm to perform. |
return |