CRYPTOworker

External objects

Properties Methods 

Properties

$callbackinstThe instance to which the worker object sends messages,for example when its processing has completed or has been cancelled.If you do not assign an instance to $callbackinst the worker object sends messages to itself
$errorcodeError code associated with the last action (zero means no error)
$errortextError text associated with the last action (empty means no error)
$stateA kWorkerState... constant that indicates the current state of the worker object
kWorkerStateCancelled kWorkerStateClear kWorkerStateComplete kWorkerStateInit kWorkerStateRunning
$threadcountThe number of active background threads for all instances of this type of worker object
$useexplicitivIf true,add a random IV to the start of the data when encrypting or remove the first IV size bytes of decrypted data.Only applies to CBC cipher mode

Methods

$cancel$cancel() If required,cancels execution of worker on background thread.Will not return until the request has been cancelled
$cancelled$cancelled() Method called when the request has been cancelled
$completed$completed(wResults) Method called when the request completes.wResults is a row containing the results of executing the request
$init$init(iAction,iEncryptionType,iCipherMode,iPadding,xKey,xIV,vInputData[,cOutputPath]) Initialise the object so it is ready to perform the specified action.Returns true if successful
$makerandom$makerandom(iBytes,&xRandomData) Generates some random data with the specified length in bytes.This is suitable for use as an encryption key or initialization vector.Returns true if successful
$run$run() Run worker on current thread.Returns true if the worker executed successfully
$start$start() Run worker on background thread.Returns true if the worker was successfully started