dcrypt.crypto.Cipher
Summary
Syntax
abstract class Cipher
Remarks
Base class for all ciphers.
Inherits from
None
Conforms to
None
Publically imports
dcrypt.crypto.errors.InvalidKeyError
dcrypt.crypto.errors.ShortBufferError
dcrypt.crypto.errors.NotInitializedError
dcrypt.crypto.errors.InvalidParameterError
dcrypt.crypto.params.CipherParameters?
References
None
Members
Fields
ENCRYPT
Syntax
public static const bool ENCRYPT
Remarks
Constant whose value is true. Intended to be passed to the init method of ciphers.
DECRYPT
Syntax
public static const bool DECRYPT
Remarks
Constant whose value is false. Intended to be passed to the init method of ciphers.
Properties
name
Syntax
public char[] name()
Remarks
The name of the cipher.
initialized
Syntax
public bool initialized()
Remarks
Whether or not the cipher has been initialized.
Methods
init
Syntax
public void init(bool encrypt, CipherParameters params)
Remarks
Initialize a cipher.
reset
Syntax
public void reset()
Remarks
Reset a cipher.
update
Syntax
public uint update(void[] input_, void[] output_)
Remarks
Process a buffer of data from the input array and place it in the output array. Returns the amount of data processed in bytes.
Example
//