Packagecom.hurlant.crypto.symmetric
Classpublic class XTeaKey
InheritanceXTeaKey Inheritance Object
Implements ISymmetricKey



Public Methods
 MethodDefined By
  
XTeaKey(a:ByteArray)
XTeaKey
  
decrypt(block:ByteArray, index:uint = 0):void
XTeaKey
  
dispose():void
XTeaKey
  
encrypt(block:ByteArray, index:uint = 0):void
XTeaKey
  
XTeaKey
  
parseKey(K:String):XTeaKey
[static] K is an hex string with 32 digits.
XTeaKey
  
toString():String
XTeaKey
Public Constants
 ConstantDefined 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_ROUNDSConstant
public const NUM_ROUNDS:uint = 64