Packagecom.hurlant.crypto.symmetric
Classpublic class DESKey
InheritanceDESKey Inheritance Object
Implements ISymmetricKey
Subclasses TripleDESKey



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
  
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):void

Parameters

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):void

Parameters

block:ByteArray
 
index:uint (default = 0)

generateWorkingKey()method 
protected function generateWorkingKey(encrypting:Boolean, key:ByteArray, off:uint):Array

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