EldoS
Navigation
Web site
Support
Table Of Contents

Filter: C#  VB.NET  Pascal  ActiveX  DLL 


TElPGPReader.DecryptAndVerify

TElPGPReader     See also    


 

Processes PGP-message.

 
 

Declaration

[C#]
    void DecryptAndVerify(System.IO.Stream ASourceStream, int Count /* = 0 */);

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

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

[VB6]
    Sub DecryptAndVerify(ByVal SourceStream As IUnknown, ByVal SourceCount As Integer)
    Sub DecryptAndVerifyFile(ByVal SourceFile As String)

[ActiveX]
    HRESULT _stdcall DecryptAndVerify([in] IUnknown * SourceStream, [in] long SourceCount);
    HRESULT _stdcall DecryptAndVerifyFile([in] BSTR SourceFile);

[DLL]
    not implemented;
 
 

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 or SourceFile. 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.

[ActiveX]
    Note: Stream parameter expects an object which implements IStream interface.

[Pascal]
    Note: in the 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    

 
Contact Us | Terms of Use | Trademarks | Privacy Statement
Copyright (c) 1998-2012, EldoS Corporation