Discuss this help topic in SecureBlackbox Forum

TElPGPReader.VerifyDetached

TElPGPReader     See also     


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


Verifies detached signature.

Declaration

[C#]
    void VerifyDetached(System.IO.Stream ASourceStream, System.IO.Stream ASignatureStream, long SourceStreamCount, long SignatureStreamCount);

[VB.NET]
    Sub VerifyDetached(ByVal ASourceStream As System.IO.Stream, ByVal ASignatureStream As System.IO.Stream, ByVal SourceStreamCount As Long, ByVal SignatureStreamCount As Long)

[Pascal]
    VerifyDetached(ASourceStream, ASignatureStream: TStream; SourceStreamCount: integer = 0; SignatureStreamCount: integer = 0);

[C++]
    void VerifyDetached(TStream &ASourceStream, TStream &ASignatureStream, int64_t SourceStreamCount, int64_t SignatureStreamCount);
    void VerifyDetached(TStream *ASourceStream, TStream *ASignatureStream, int64_t SourceStreamCount, int64_t SignatureStreamCount);

[PHP]
    void VerifyDetached(TStream $ASourceStream, TStream $ASignatureStream, integer $SourceStreamCount, integer $SignatureStreamCount)

[Java]
    void verifyDetached(TElStream ASourceStream, TElStream ASignatureStream, long SourceStreamCount, long SignatureStreamCount);

Parameters

  • ASourceStream - stream with data.
  • ASignatureStream - stream with detached signature.
  • SourceFile - file with data.
  • SigFile - file with detached signature.
  • SourceStreamCount (SourceCount) - number of bytes to be read from ASourceStream. If this parameter is 0, the data is read till the end of the stream.
  • SignatureStreamCount (SigCount) - number of bytes to be read from ASignatureStream. If this parameter is 0, the data is read till the end of the stream.

Description

    This method verifies detached signature (the signature that is transferred separately from the data).
    Use SourceStreamCount parameter to read specified number of bytes from ASourceStream. Use SignatureStreamCount parameter to read specified number of bytes from ASignatureStream. Set these parameters to 0 in order to read all data till the necessary stream end.

    VerifyDetached 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 VerifyDetachedFile instead.

See also:     VerifyDetachedFile     DecryptAndVerify    

Discuss this help topic in SecureBlackbox Forum