The HMAC type exposes the following members.
Constructors
Name | Description | |
---|---|---|
HMAC(String) | Obsolete. | |
HMAC(Type) | Obsolete. | |
HMAC(HashingAlgorithmId) |
Initializes a new instance of the HMAC class with the specified hash algorithm and a randomly generated key.
| |
HMAC(String, array<Byte>[]()[][]) | Obsolete. | |
HMAC(Type, array<Byte>[]()[][]) | Obsolete. | |
HMAC(HashingAlgorithmId, array<Byte>[]()[][]) |
Initializes a new instance of the HMAC class with the specified hash algorithm and key data.
|
Methods
Name | Description | |
---|---|---|
Clear | Releases all resources used by the HashAlgorithm class. (Inherited from HashAlgorithm.) | |
ComputeHash(Stream) | Computes the hash value for the specified Stream object. (Inherited from HashAlgorithm.) | |
ComputeHash(array<Byte>[]()[][]) | Computes the hash value for the specified byte array. (Inherited from HashAlgorithm.) | |
ComputeHash(array<Byte>[]()[][], Int32, Int32) | Computes the hash value for the specified region of the specified byte array. (Inherited from HashAlgorithm.) | |
Dispose()()()() | (Inherited from HashAlgorithm.) | |
Dispose(Boolean) |
Releases the unmanaged resources used by the HMAC and optionally releases the managed resources.
(Overrides KeyedHashAlgorithm..::..Dispose(Boolean).) | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. GetHashCode()()()() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
HashCore |
Routes data written to the object into the hash algorithm for computing the HMAC.
(Overrides HashAlgorithm..::..HashCore(array<Byte>[]()[][], Int32, Int32).) | |
HashFinal |
Returns the computed Hash-based Message Authentication Code (HMAC) after all data has been written to the object.
(Overrides HashAlgorithm..::..HashFinal()()()().) | |
Initialize |
Initializes an instance of HMAC.
(Overrides HashAlgorithm..::..Initialize()()()().) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a String that represents the current Object. (Inherited from Object.) | |
TransformBlock | Computes the hash value for the specified region of the input byte array and copies the resulting hash value to the specified region of the output byte array. (Inherited from HashAlgorithm.) | |
TransformFinalBlock | Computes the hash value for the specified region of the specified byte array. (Inherited from HashAlgorithm.) |
Fields
Name | Description | |
---|---|---|
HashSizeValue | Represents the size, in bits, of the computed hash code. (Inherited from HashAlgorithm.) | |
HashValue | Represents the value of the computed hash code. (Inherited from HashAlgorithm.) | |
KeyValue |
The key to use in the hash algorithm.
(Inherited from KeyedHashAlgorithm.) | |
State | Represents the state of the hash computation. (Inherited from HashAlgorithm.) |
Properties
Name | Description | |
---|---|---|
CanReuseTransform | Gets a value indicating whether the current transform can be reused. (Inherited from HashAlgorithm.) | |
CanTransformMultipleBlocks | When overridden in a derived class, gets a value indicating whether multiple blocks can be transformed. (Inherited from HashAlgorithm.) | |
Hash | Gets the value of the computed hash code. (Inherited from HashAlgorithm.) | |
HashSize | Gets the size, in bits, of the computed hash code. (Inherited from HashAlgorithm.) | |
InputBlockSize | When overridden in a derived class, gets the input block size. (Inherited from HashAlgorithm.) | |
Key |
Gets or sets the key to be used in the hash algorithm.
(Overrides KeyedHashAlgorithm..::..Key.) | |
OutputBlockSize | When overridden in a derived class, gets the output block size. (Inherited from HashAlgorithm.) |
Explicit Interface Implementations
Name | Description | |
---|---|---|
IHashTransform..::..GetHash | ||
IHashTransform..::..HashSize | ||
IHashTransform..::..Process | ||
IHashTransform..::..Reset |