4 * An interface for padding mechanisms to implement.
\r
5 * Copyright (c) 2007 Henri Torgemane
\r
7 * See LICENSE.txt for full license information.
\r
9 package com.hurlant.crypto.symmetric
\r
11 import flash.utils.ByteArray;
\r
14 * Tiny interface that represents a padding mechanism.
\r
16 public interface IPad
\r
19 * Add padding to the array
\r
21 function pad(a:ByteArray):void;
\r
23 * Remove padding from the array.
\r
24 * @throws Error if the padding is invalid.
\r
26 function unpad(a:ByteArray):void;
\r
28 * Set the blockSize to work on
\r
30 function setBlockSize(bs:uint):void;
\r