4 * An ActionScript 3 interface for HMAC & MAC
\r
7 * Loosely copyrighted by Bobby Parker
\r
9 * See LICENSE.txt for full license information.
\r
11 package com.hurlant.crypto.hash
\r
13 import flash.utils.ByteArray;
\r
15 public interface IHMAC
\r
17 function getHashSize():uint;
\r
19 * Compute a HMAC using a key and some data.
\r
20 * It doesn't modify either, and returns a new ByteArray with the HMAC value.
\r
22 function compute(key:ByteArray, data:ByteArray):ByteArray;
\r
23 function dispose():void;
\r
24 function toString():String;
\r