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

Package | com.hurlant.crypto.symmetric
Class | public class XTeaKey
Inheritance | XTeaKey Object
Implements | ISymmetricKey

Public Methods

| Method | Defined By
--- | --- | ---
|  | XTeaKey(a:ByteArray) | XTeaKey
|  | decrypt(block:ByteArray, index:uint = 0):void | XTeaKey
|  | dispose():void | XTeaKey
|  | encrypt(block:ByteArray, index:uint = 0):void | XTeaKey
|  | getBlockSize():uint | XTeaKey
|  | parseKey(K:String):XTeaKey [static] K is an hex string with 32 digits. | XTeaKey
|  | toString():String | XTeaKey

Public Constants

| Constant | Defined By
--- | --- | ---
|  | NUM_ROUNDS : uint = 64 | XTeaKey

Constructor Detail

XTeaKey | () | Constructor

`public function XTeaKey(a:ByteArray)`

Parameters

| `a:ByteArray`

Method Detail

decrypt | () | method

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

Parameters

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

dispose | () | method |

`public function dispose():void`

encrypt | () | method |

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

Parameters

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

getBlockSize | () | method |

`public function getBlockSize():uint`

Returns

| `uint`

parseKey | () | method |

`public static function parseKey(K:String):XTeaKey`

K is an hex string with 32 digits.

Parameters

| `K:String`

Returns

| `XTeaKey`

toString | () | method |

`public function toString():String`

Returns

| `String`

Constant Detail

NUM_ROUNDS | Constant

`public const NUM_ROUNDS:uint = 64`

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