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

Package | com.hurlant.crypto.symmetric
Class | public class DESKey
Inheritance | DESKey Object
Implements | ISymmetricKey
Subclasses | TripleDESKey

Protected Properties

| Property | Defined By
--- | --- | ---
|  | decKey : Array | DESKey
|  | encKey : Array | DESKey
|  | key : ByteArray | DESKey

Public Methods

| Method | Defined By
--- | --- | ---
|  | DESKey(key:ByteArray) | DESKey
|  | decrypt(block:ByteArray, index:uint = 0):void | DESKey
|  | dispose():void | DESKey
|  | encrypt(block:ByteArray, index:uint = 0):void | DESKey
|  | getBlockSize():uint | DESKey
|  | toString():String | DESKey

Protected Methods

| Method | Defined By
--- | --- | ---
|  | desFunc(wKey:Array, inp:ByteArray, inOff:uint, out:ByteArray, outOff:uint):void the DES engine. | DESKey
|  | generateWorkingKey(encrypting:Boolean, key:ByteArray, off:uint):Array generate an integer based working key based on our secret key and what we processing we are planning to do. | DESKey

Property Detail

decKey | property

`protected var decKey:Array`

encKey | property |

`protected var encKey:Array`

key | property |

`protected var key:ByteArray`

Constructor Detail

DESKey | () | Constructor

`public function DESKey(key:ByteArray)`

Parameters

| `key:ByteArray`

Method Detail

decrypt | () | method

`public function decrypt(block:ByteArray, index:uint = 0):void`

Parameters

| `block:ByteArray`
| `index:uint` (default = `0`)``

desFunc | () | method |

`protected function desFunc(wKey:Array, inp:ByteArray, inOff:uint, out:ByteArray, outOff:uint):void`

the DES engine.

Parameters

| `wKey:Array`
| `inp:ByteArray`
| `inOff:uint`
| `out:ByteArray`
| `outOff:uint`

dispose | () | method |

`public function dispose():void`

encrypt | () | method |

`public function encrypt(block:ByteArray, index:uint = 0):void`

Parameters

| `block:ByteArray`
| `index:uint` (default = `0`)``

generateWorkingKey | () | method |

`protected function generateWorkingKey(encrypting:Boolean, key:ByteArray, off:uint):Array`

Parameters

| `encrypting:Boolean`
| `key:ByteArray`
| `off:uint`

Returns

| `Array`

getBlockSize | () | method |

`public function getBlockSize():uint`

Returns

| `uint`

toString | () | method |

`public function toString():String`

Returns

| `String`

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