| Package | com.hurlant.crypto.symmetric |
| Class | public class XTeaKey |
| Inheritance | XTeaKey Object |
| Implements | ISymmetricKey |
| 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 | ||
[static]
K is an hex string with 32 digits. | XTeaKey | ||
toString():String | XTeaKey | ||
| Constant | Defined By | ||
|---|---|---|---|
| NUM_ROUNDS : uint = 64 | XTeaKey | ||
| XTeaKey | () | Constructor |
public function XTeaKey(a:ByteArray)a:ByteArray |
| decrypt | () | method |
public function decrypt(block:ByteArray, index:uint = 0):voidParameters
block:ByteArray | |
index:uint (default = 0) |
| dispose | () | method |
public function dispose():void| encrypt | () | method |
public function encrypt(block:ByteArray, index:uint = 0):voidParameters
block:ByteArray | |
index:uint (default = 0) |
| getBlockSize | () | method |
public function getBlockSize():uintReturnsuint |
| parseKey | () | method |
public static function parseKey(K:String):XTeaKeyK is an hex string with 32 digits.
Parameters
K:String |
XTeaKey |
| toString | () | method |
public function toString():StringReturnsString |
| NUM_ROUNDS | Constant |
public const NUM_ROUNDS:uint = 64