Discuss this help topic in SecureBlackbox Forum

TElPGPWriter.ClearTextSign

TElPGPWriter     See also     


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


Makes cleartext-signature over incoming data.

Declaration

[C#/Java]
    void ClearTextSign(System.IO.Stream ASourceStream, System.IO.Stream ADestStream, long Count);

[VB.NET]
    Sub ClearTextSign(ByVal ASourceStream As System.IO.Stream, ByVal ADestStream As System.IO.Stream, ByVal Count As Long)

[Pascal]
    procedure ClearTextSign(ASourceStream, ADestStream : TStream; Count : integer = 0);

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

[PHP]
    void ClearTextSign(TStream $ASourceStream, TStream $ADestStream, integer $Count)

Parameters

  • ASourceStream (InStream) - stream to be signed. This stream MUST contain text data.
  • ADestStream (OutStream) - resulting stream.
  • InFile - file to be encrypted.
  • OutFile - resulting file.
  • Count - number of bytes to be read from ASourceStream. If this parameter is 0data is read till the end of the stream.
    Default value is 0.

Description

    This method signs data from ASourceStream with cleartext-signature and returns result at ADestStream parameter.
     Note, ASourceStream MUST contain text data.
    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.

[Pascal]
    Note: in the Delphi versions older than 7, works only with streams of sizes smaller than 2GB (because of TStream limitation). Use ClearTextSignFile instead.

See also:     Armor     SymmetricKeyAlgorithm     Encrypt     Sign     ClearTextSignFile    

Discuss this help topic in SecureBlackbox Forum