Skip to content

TIDEADeCryptStream

IDEA Decryption stream.

Declaration

Source position: idea.pp line 110

type

  TIDEADeCryptStream = class(TIDEAStream)
  public
    constructor Create; overload;
    function Read : LongInt;
    function Seek : Int64;
  end;

Description

TIDEADecryptStream is a stream which decrypts anything that is read from it using the IDEA mechanism. It reads the encrypted data from a source stream and decrypts it using the CipherIDEA algorithm. It is a read-only stream: it is not possible to write data to this stream.

When creating a TIDEADecryptStream instance, an IDEA decryption key should be passed to the constructor, as well as the stream from which encrypted data should be read written.

The encrypted data can be created with a TIDEAEncryptStream encryption stream.

Methods

Member Visibility Description
Create public Constructor to create a new TIDEADecryptStream instance.
Read public Reads data from the stream, decrypting it as needed.
Seek public Set position on the stream.
See all Methods

See also

Name Description
TIDEAEncryptStream IDEA encryption stream.
TIDEAStream.Create Creates a new instance of the TIDEAStream class.
CipherIDEA Encrypt or decrypt a buffer.