/js/lib/Socket.IO-node/support/socket.io-client/lib/vendor/web-socket-js/flash-src/com/hurlant/crypto/hash/IHMAC.as
ActionScript | 27 lines | 11 code | 2 blank | 14 comment | 0 complexity | dac8b7d8c849fe11f90ec290aa5dedf0 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, MPL-2.0-no-copyleft-exception, BSD-3-Clause
- /**
- * HMAC
- *
- * An ActionScript 3 interface for HMAC & MAC
- * implementations.
- *
- * Loosely copyrighted by Bobby Parker
- *
- * See LICENSE.txt for full license information.
- */
- package com.hurlant.crypto.hash
- {
- import flash.utils.ByteArray;
-
- public interface IHMAC
- {
- function getHashSize():uint;
- /**
- * Compute a HMAC using a key and some data.
- * It doesn't modify either, and returns a new ByteArray with the HMAC value.
- */
- function compute(key:ByteArray, data:ByteArray):ByteArray;
- function dispose():void;
- function toString():String;
-
- }
- }