Packagecom.hurlant.crypto.symmetric
Interfacepublic interface IPad
ImplementorsNullPad, PKCS5, SSLPad, TLSPad

Tiny interface that represents a padding mechanism.



Public Methods
 MethodDefined 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
— if the padding is invalid.