Source

MyIOTest / myiotestb / static / web-socket-js / flash-src / third-party / com / hurlant / crypto / hash / IHMAC.as

The default branch has multiple heads

Full commit
/**
 * 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;
		
	}
}