Contents
Navigation
PatiSoftware Other Documents Related Topics

This document describes the QDLPlgCast class of the QDLPluginEncryptionPS plugin for Xojo/RealStudio.This class implements the CAST–256 (or CAST6) block cipher.

CAST–256 is a symmetric–key block cipher published in June 1998. It was submitted as a candidate for the Advanced Encryption Standard; however, it was not among the five AES finalists. It is an extension of an earlier cipher, CAST–128 (not implemented by the plugin); both were designed according to the "CAST" design methodology invented by Carlisle Adams and Stafford Tavares. Howard Heys and Michael Wiener also contributed to the design. CAST–256 uses the same elements as CAST–128 but is adapted for a block size of 128 bits — twice the size of its 64–bit predecessor (A similar construction occurred in the evolution of into RC6). CAST–256 is composed of 48 rounds, sometimes described as 12 "quad–rounds", arranged in a generalised Feistel network (src. Wikipedia).

In RFC 2612, it is stated that "The CAST–256 cipher described in this document is available worldwide on a royalty–free and licence–free basis for commercial and non–commercial uses."

The QDLPlgCast class can use 128–bit, 192–bit or 256–bit .





Characteristics
Type:Class
Hierarchy: →
Availability:QDLPluginEncryptionPS 1.0 or later
Console Safe

The QDLPlgCast class constructors are called when you create a new instance of the class, while the ˜QDLPlgCast class destructor, is called automatically when the class is no more in use. Also, you can invoke the class destructor by setting the instance of the class to nil.

The QDLPlgCast class implements the following initializers:

()
This is the default constructor. The property is set to an empty string and the value of the property is set to 128.
(other as QDLPlgCast)
This is the copy constructor. The properties of the object to be copied will be used to initialize the new class instance properties
(key as string)
Initializes the of the new object with the passed key parameter. The value of the property will be automatically set to the value that best fits the length of the given key.