PageRenderTime 81ms CodeModel.GetById 40ms app.highlight 1ms RepoModel.GetById 39ms app.codeStats 0ms

/js/lib/Socket.IO-node/support/socket.io-client/lib/vendor/web-socket-js/flash-src/com/hurlant/crypto/hash/IHMAC.as

http://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs
ActionScript | 27 lines | 11 code | 2 blank | 14 comment | 0 complexity | dac8b7d8c849fe11f90ec290aa5dedf0 MD5 | raw file
 1/**
 2 * HMAC
 3 * 
 4 * An ActionScript 3 interface for HMAC & MAC 
 5 * implementations.
 6 * 
 7 * Loosely copyrighted by Bobby Parker
 8 * 
 9 * See LICENSE.txt for full license information.
10 */
11package com.hurlant.crypto.hash
12{
13	import flash.utils.ByteArray;
14	
15	public interface IHMAC 
16	{
17		function getHashSize():uint;
18		/**
19		 * Compute a HMAC using a key and some data.
20		 * It doesn't modify either, and returns a new ByteArray with the HMAC value.
21		 */
22		function compute(key:ByteArray, data:ByteArray):ByteArray;
23		function dispose():void;
24		function toString():String;
25		
26	}
27}