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

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

Protected Properties
Hide Inherited Protected Properties
Show Inherited Protected Properties

| Property | Defined By
--- | --- | ---
|  | decKey : Array | DESKey
|  | decKey2 : Array | TripleDESKey
|  | decKey3 : Array | TripleDESKey
|  | encKey : Array | DESKey
|  | encKey2 : Array | TripleDESKey
|  | encKey3 : Array | TripleDESKey
|  | key : ByteArray | DESKey

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined By
--- | --- | ---
|  | TripleDESKey(key:ByteArray) This supports 2TDES and 3TDES. | TripleDESKey
|  | decrypt(block:ByteArray, index:uint = 0):void [override] | TripleDESKey
|  | dispose():void [override] | TripleDESKey
|  | encrypt(block:ByteArray, index:uint = 0):void [override] | TripleDESKey
|  | getBlockSize():uint | DESKey
|  | toString():String [override] | TripleDESKey

Protected Methods
Show Inherited Protected Methods
Show Inherited 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

decKey2 | property

`protected var decKey2:Array`

decKey3 | property |

`protected var decKey3:Array`

encKey2 | property |

`protected var encKey2:Array`

encKey3 | property |

`protected var encKey3:Array`

Constructor Detail

TripleDESKey | () | Constructor

`public function TripleDESKey(key:ByteArray)`

This supports 2TDES and 3TDES. If the key passed is 128 bits, 2TDES is used. If the key has 192 bits, 3TDES is used. Other key lengths give "undefined" results.

Parameters

| `key:ByteArray`

Method Detail

decrypt | () | method

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

Parameters

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

dispose | () | method |

`override public function dispose():void`

encrypt | () | method |

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

Parameters

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

toString | () | method |

`override public function toString():String`

Returns

| `String`

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