HMACBase

HMACBase


Provides the base functionality to perfrom Hash Message Authentication Code operations.


Public:

Properties:

NameDescription
 Hash (get) Returns the computed hash.  
 HashName (get) Returns the name of the hash algorithm used.  
 HashName (let) Sets the name of the hash algorithm used.  

Methods:

NameDescription
 Clear Releases any resources and marks the object as disposed.  
 ComputeHash Computes the hash code for the specific source.  
 GetKey Returns the current key used by the hash.  
 Initialize Resets an instance to begin computing a hash from the begining.  
 SetKey Sets the key the hash will use.  
 TransformBlock Processes a block of data towards the computed hash.  
 TransformFinalBlock Processes the final block of data, generating the computed hash.  

Remarks

This base implementation manages many of the aspects utilized with HMAC implementations. Usually, any class that implements the HashAlgorithm interface can easily be used to provide HMAC capabilities by simply initializing an instance of HMACBase with an instance of the hash object.

The HMAC set of classes provided in VBCorLib utilize the HMACBase class to provide consistent HMAC operations.

See Also

Project CorLib Overview

Class HMACBase Overview

HMACMD5

HMACRIPEMD160

HMACSHA1

HMACSHA256

HMACSHA384

HMACSHA512

Constructors