Skip to content

TIDEAEncryptStream

IDEA encryption stream.

Declaration

Source position: idea.pp line 99

type

  TIDEAEncryptStream = class(TIDEAStream)
  public
    constructor Create; overload;
    destructor Destroy;
    function Write : LongInt;
    function Seek : LongInt;
    procedure Flush;
  end;

Description

TIDEAEncryptStream is a stream which encrypts anything that is written to it using the IDEA mechanism, and then writes the encrypted data to the destination stream using the CipherIDEA algorithm. It is a write-only stream: it is not possible to read data from this stream.

When creating a TIDEAEncryptStream instance, an IDEA encryption key should be passed to the constructor, as well as the stream to which encrypted data should be written.

The resulting encrypted data can be read again with a TIDEADecryptStream decryption stream.

Methods

Member Visibility Description
Create public Constructor to create a new TIDEAEncryptStream instance.
Destroy public Flush data buffers and free the stream instance.
Flush public Write remaining bytes from the stream.
Seek public Set stream position.
Write public Write bytes to the stream to be encrypted.
See all Methods

See also

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