Discuss this help topic in SecureBlackbox Forum

TElPGPReader.DecryptAndVerify

TElPGPReader     See also     


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


Processes PGP-message.

Declaration

[C#]
    void DecryptAndVerify(System.IO.Stream ASourceStream, long Count);

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

[Pascal]
    procedure DecryptAndVerify(ASourceStream: TStream; Count : integer = 0);

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

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

[Java]
    void decryptAndVerify(TElStream ASourceStream, long Count);

Parameters

  • ASourceStream (SourceStream) - stream to be processed.
  • SourceFile - file to be processed.
  • Count (SourceCount) - number of bytes to be read from ASourceStream.If this parameter is 0, the data is read till the end of the stream.

Description

    This method processes data from ASourceStream TElPGPReader reads portion of data and tries to decrypt and/or verify it. If all these operations were successful it fires OnCreateOutputStream event. Stream for output data (e.g. file) has to be created in this event handler. This stream is specified by OutputStream property. Then TElPGPReader will read rest of input data and return clear processed data to the created output stream.

    If there's signed data in SourceStream, then Verify() fires OnSigned and OnSignatures events. OnSigned lets you know the IDs of the keys, used for verification. Verification results are passed via OnSignatures event.

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

See also:     DecryptAndVerifyFile     VerifyDetached     ProcessedLength    

Discuss this help topic in SecureBlackbox Forum