Packagecom.hurlant.crypto.symmetric
Classpublic class IVMode
InheritanceIVMode Inheritance Object
Subclasses CBCMode, CFB8Mode, CFBMode, CTRMode, OFBMode

An "abtract" class to avoid redundant code in subclasses



Public Properties
 PropertyDefined By
  IV : ByteArray
Optional function to force the IV value.
IVMode
Protected Properties
 PropertyDefined By
  blockSize : uint
IVMode
  iv : ByteArray
IVMode
  key : ISymmetricKey
IVMode
  lastIV : ByteArray
IVMode
  padding : IPad
IVMode
  prng : Random
IVMode
Public Methods
 MethodDefined By
  
IVMode(key:ISymmetricKey, padding:IPad = null)
IVMode
  
dispose():void
IVMode
  
IVMode
Protected Methods
 MethodDefined By
  
getIV4d():ByteArray
IVMode
  
getIV4e():ByteArray
IVMode
Property Detail
blockSizeproperty
protected var blockSize:uint

ivproperty 
protected var iv:ByteArray

IVproperty 
IV:ByteArray

Optional function to force the IV value. Normally, an IV gets generated randomly at every encrypt() call. Also, use this to set the IV before calling decrypt() (if not set before decrypt(), the IV is read from the beginning of the stream.)


Implementation
    public function get IV():ByteArray
    public function set IV(value:ByteArray):void
keyproperty 
protected var key:ISymmetricKey

lastIVproperty 
protected var lastIV:ByteArray

paddingproperty 
protected var padding:IPad

prngproperty 
protected var prng:Random

Constructor Detail
IVMode()Constructor
public function IVMode(key:ISymmetricKey, padding:IPad = null)



Parameters
key:ISymmetricKey
 
padding:IPad (default = null)
Method Detail
dispose()method
public function dispose():void

getBlockSize()method 
public function getBlockSize():uint

Returns
uint
getIV4d()method 
protected function getIV4d():ByteArray

Returns
ByteArray
getIV4e()method 
protected function getIV4e():ByteArray

Returns
ByteArray