PageRenderTime 30ms CodeModel.GetById 16ms RepoModel.GetById 0ms 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
Possible License(s): GPL-2.0, LGPL-2.1, MPL-2.0-no-copyleft-exception, BSD-3-Clause
  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. */
  11. package com.hurlant.crypto.hash
  12. {
  13. import flash.utils.ByteArray;
  14. public interface IHMAC
  15. {
  16. function getHashSize():uint;
  17. /**
  18. * Compute a HMAC using a key and some data.
  19. * It doesn't modify either, and returns a new ByteArray with the HMAC value.
  20. */
  21. function compute(key:ByteArray, data:ByteArray):ByteArray;
  22. function dispose():void;
  23. function toString():String;
  24. }
  25. }