ActionScript 3 Cryptography Library | All Packages | All Classes | Index | Frames No Frames |
IPad

Package | com.hurlant.crypto.symmetric
Interface | public interface IPad
Implementors | NullPad, PKCS5, SSLPad, TLSPad

Tiny interface that represents a padding mechanism.

Public Methods

| Method | Defined By
--- | --- | ---
|  | pad(a:ByteArray):void Add padding to the array | IPad
|  | setBlockSize(bs:uint):void Set the blockSize to work on | IPad
|  | unpad(a:ByteArray):void Remove padding from the array. | IPad

Method Detail

pad | () | method

`public function pad(a:ByteArray):void`

Add padding to the array

Parameters

| `a:ByteArray`

setBlockSize | () | method |

`public function setBlockSize(bs:uint):void`

Set the blockSize to work on

Parameters

| `bs:uint`

unpad | () | method |

`public function unpad(a:ByteArray):void`

Remove padding from the array.

Parameters

| `a:ByteArray`

Throws

| `Error` — if the padding is invalid.

Mon May 20 2013, 09:16 PM +02:00