Discuss this help topic in SecureBlackbox Forum

TElPGPWriter.Sign

TElPGPWriter     See also     


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


Signs the ASourceStream.

Declaration

[C#/Java]
    void Sign(System.IO.Stream ASourceStream, System.IO.Stream ADestStream, bool Detached /* = false */, int Count /* = 0 */);

[VB.NET]
    Sub Sign(ByVal ASourceStream As System.IO.Stream, ByVal ADestStream As System.IO.Stream, ByVal Detached As Boolean = False, ByVal Count As Integer = 0)

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

[C++]
    void Sign(TStream &ASourceStream, TStream &ADestStream, bool Detached, int64_t Count);
    void Sign(TStream *ASourceStream, TStream *ADestStream, bool Detached, int64_t Count);

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

Parameters

  • 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.

Description

    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.

[Pascal]
    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