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

Package | com.hurlant.crypto.symmetric
Class | public class IVMode
Inheritance | IVMode Object
Subclasses | CBCMode, CFB8Mode, CFBMode, CTRMode, OFBMode

An "abtract" class to avoid redundant code in subclasses

Public Properties

| Property | Defined By
--- | --- | ---
|  | IV : ByteArray Optional function to force the IV value. | IVMode

Protected Properties

| Property | Defined By
--- | --- | ---
|  | blockSize : uint | IVMode
|  | iv : ByteArray | IVMode
|  | key : ISymmetricKey | IVMode
|  | lastIV : ByteArray | IVMode
|  | padding : IPad | IVMode
|  | prng : Random | IVMode

Public Methods

| Method | Defined By
--- | --- | ---
|  | IVMode(key:ISymmetricKey, padding:IPad = null) | IVMode
|  | dispose():void | IVMode
|  | getBlockSize():uint | IVMode

Protected Methods

| Method | Defined By
--- | --- | ---
|  | getIV4d():ByteArray | IVMode
|  | getIV4e():ByteArray | IVMode

Property Detail

blockSize | property

`protected var blockSize:uint`

iv | property |

`protected var iv:ByteArray`

IV | property |

`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`

key | property |

`protected var key:ISymmetricKey`

lastIV | property |

`protected var lastIV:ByteArray`

padding | property |

`protected var padding:IPad`

prng | property |

`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`

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