Packagecom.hurlant.crypto.symmetric
Classpublic class DESKey
ImplementsISymmetricKey
SubclassesTripleDESKey



Protected Properties
 PropertyDefined by
  decKey : Array
DESKey
  encKey : Array
DESKey
  key : ByteArray
DESKey
Public Methods
 MethodDefined 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
 MethodDefined 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
decKeyproperty
protected var decKey:Array
encKeyproperty 
protected var encKey:Array
keyproperty 
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):voidParameters
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):voidParameters
block:ByteArray
 
index:uint (default = 0)
generateWorkingKey()method 
protected function 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. Acknowledgements for this routine go to James Gillogly & Phil Karn.

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