class Hmac
The Hmac class provides a simple interface to the mhash library. It can be invoked to create both salted and unsalted hashed message authentication codes (HMAC). mhash was chosen because it supports a wide variety of hash algorithms. For a complete list of supported algorithms, refer to the documentation of mhash.
Located in /hmac.class.php (line 22)
function __construct
This method is executed when an object is instantiated from this class. Preprocessing can be done here before the object is put into service.
function GetHmac
The GetHmac method gets random bits from the Pseudo-Random Number Generator (PRNG), invokes the Salted S2k algorithm to further randomize the salt, hashes the plaintext including the salt and appends the salt to the end of the resultant ciphertext.
function GetInstance
This method instantiates a new object from this class; more specifically, it's a singleton instance.
function IsValidHmac
The isValidHmac method validates a salted or unsalted message authentication code (HMAC).
function SetHmacKey
The SetHmacKey method gets random bits from the Pseudo-Random Number Generator (PRNG), invokes the Salted S2K algorithm to further randomize the salt, hashes the plaintext including the salt to create an HMAC key and stores it in the XML configuration file.
Documentation generated on Thu, 9 Sep 2004 09:03:36 -0400 by phpDocumentor 1.3.0RC3