Discuss this help topic in SecureBlackbox Forum


TElPGPWriter     See also     

Filter: C#  VB.NET  Pascal  C++  PHP  Java  

Signs the ASourceStream.


    void Sign(System.IO.Stream ASourceStream, System.IO.Stream ADestStream, bool Detached, long Count);

    Sub Sign(ByVal ASourceStream As System.IO.Stream, ByVal ADestStream As System.IO.Stream, ByVal Detached As Boolean, ByVal Count As Long)

    procedure Sign(ASourceStream, ADestStream : TStream; Detached : boolean = false; Count : integer = 0);

    void Sign(TStream &ASourceStream, TStream &ADestStream, bool Detached, int64_t Count);
    void Sign(TStream *ASourceStream, TStream *ADestStream, bool Detached, int64_t Count);

    void Sign(TStream $ASourceStream, TStream $ADestStream, bool $Detached, integer $Count)

    void sign(TElStream ASourceStream, TElStream ADestStream, boolean Detached, long Count);


  • ASourceStream (InStream) - stream to be signed.
  • ADestStream (OutStream) - resulting stream.
  • InFile - file to be encrypted.
  • OutFile - resulting file.
  • Detached - Defines if the detached signature must be created.
    Default value is False
  • Count - the number of bytes to be read from ASourceStream.If this parameter is 0 data is read till the end of the stream.
    Default value is 0.


    This method signs data from ASourceStream and returns result via ADestStream.
    Use Count parameter to read specified number of bytes from ASourceStream. Set this parameter value to 0 in order to read all data till the stream end.
    Use Detached parameter to specify if signature must be detached. If this parameter value is True only signature will be written to resulting stream. If False signature will be written together with original data.
    Depending on Compress and Armor property values data can be compressed before signing and armored (wrapped into base64 envelope) after this.

    Note, in Delphi versions older than 7, works only with streams of sizes smaller than 2GB (because of TStream limitation). Use SignFile instead.

See also:     Armor     ClearTextSign     Encrypt     EncryptAndSign     EncryptAndSignFile     SignFile     SymmetricKeyAlgorithm    

Discuss this help topic in SecureBlackbox Forum