PageRenderTime 82ms CodeModel.GetById 41ms app.highlight 1ms RepoModel.GetById 39ms app.codeStats 0ms

/flash-src/third-party/com/hurlant/crypto/symmetric/IPad.as

http://github.com/gimite/web-socket-js
ActionScript | 32 lines | 10 code | 1 blank | 21 comment | 0 complexity | 2cd0c56b3f0bcffc4629234d0cc57def MD5 | raw file
 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 */
 9package com.hurlant.crypto.symmetric
10{
11	import flash.utils.ByteArray;
12	
13	/**
14	 * Tiny interface that represents a padding mechanism.
15	 */
16	public interface IPad
17	{
18		/**
19		 * Add padding to the array
20		 */
21		function pad(a:ByteArray):void;
22		/**
23		 * Remove padding from the array.
24		 * @throws Error if the padding is invalid.
25		 */
26		function unpad(a:ByteArray):void;
27		/**
28		 * Set the blockSize to work on
29		 */
30		function setBlockSize(bs:uint):void;
31	}
32}