Packagecom.hurlant.crypto.hash
Classpublic class MAC
InheritanceMAC Inheritance Object
Implements IHMAC



Public Methods
 MethodDefined By
  
MAC(hash:IHash, bits:uint = 0)
Create a MAC object (for SSL 3.0 ) and optionally a number of bits to return.
MAC
  
compute(key:ByteArray, data:ByteArray):ByteArray
Compute a MAC using a key and some data.
MAC
  
dispose():void
MAC
  
MAC
  
setPadSize(pad_size:int):void
MAC
  
toString():String
MAC
Constructor Detail
MAC()Constructor
public function MAC(hash:IHash, bits:uint = 0)

Create a MAC object (for SSL 3.0 ) and optionally a number of bits to return. The MAC will be truncated to that size if needed.

Parameters
hash:IHash
 
bits:uint (default = 0)
Method Detail
compute()method
public function compute(key:ByteArray, data:ByteArray):ByteArray

Compute a MAC using a key and some data.

Parameters

key:ByteArray
 
data:ByteArray

Returns
ByteArray
dispose()method 
public function dispose():void

getHashSize()method 
public function getHashSize():uint

Returns
uint
setPadSize()method 
public function setPadSize(pad_size:int):void

Parameters

pad_size:int

toString()method 
public function toString():String

Returns
String