ActionScript 3 Cryptography Library | All Packages | All Classes | Index | Frames No Frames |
MAC

Package | com.hurlant.crypto.hash
Class | public class MAC
Inheritance | MAC Object
Implements | IHMAC

Public Methods

| Method | Defined 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
|  | getHashSize():uint | 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`

Mon May 20 2013, 09:16 PM +02:00