PageRenderTime 36ms CodeModel.GetById 34ms 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/symmetric/IPad.as

http://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs
ActionScript | 32 lines | 10 code | 1 blank | 21 comment | 0 complexity | 2cd0c56b3f0bcffc4629234d0cc57def MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, MPL-2.0-no-copyleft-exception, BSD-3-Clause
  1. /**
  2. * IPad
  3. *
  4. * An interface for padding mechanisms to implement.
  5. * Copyright (c) 2007 Henri Torgemane
  6. *
  7. * See LICENSE.txt for full license information.
  8. */
  9. package com.hurlant.crypto.symmetric
  10. {
  11. import flash.utils.ByteArray;
  12. /**
  13. * Tiny interface that represents a padding mechanism.
  14. */
  15. public interface IPad
  16. {
  17. /**
  18. * Add padding to the array
  19. */
  20. function pad(a:ByteArray):void;
  21. /**
  22. * Remove padding from the array.
  23. * @throws Error if the padding is invalid.
  24. */
  25. function unpad(a:ByteArray):void;
  26. /**
  27. * Set the blockSize to work on
  28. */
  29. function setBlockSize(bs:uint):void;
  30. }
  31. }