Discuss this help topic in SecureBlackbox Forum

TElSMIMEMessageVerifier.VerifyDetached

TElSMIMEMessageVerifier     See also     


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


This method verifies digitally signed data

Declaration

[C#/Java]
    int VerifyDetached(byte[] Buffer, byte[] Signature);

[VB.NET]
    Function VerifyDetached(ByVal Buffer As Byte(), ByVal Signature As Byte()) As Integer

[Pascal]
    function VerifyDetached(Buffer: Pointer; Size: Integer; Signature: Pointer; SignatureSize: Integer): Integer;

[C++]
    int32_t VerifyDetached(void * Buffer, int32_t Size, void * Signature, int32_t SignatureSize);

[PHP]
    integer VerifyDetached(TSBPointer|array of byte|string|NULL $Buffer, integer $Size, TSBPointer|array of byte|string|NULL $Signature, integer $SignatureSize)
    integer VerifyDetached(TStream $InStream, TStream $SigStream, integer $InCount, integer $SigCount)

Parameters

  • Buffer - Pointer to the original data buffer
  • Size - Size of input data in bytes
  • Signature - Pointer to buffer with the digital signature in PKCS7 format
  • SignatureSize - Size of Signature in bytes
  • Buffer - ...
  • Size - ...
  • Signature - ...
  • SignatureSize - ...
  • InStream - ...
  • SigStream - ...
  • InCount - ...
  • SigCount - ...

Return value

    0 if the verifying process was completed successfully.
    one of the following error codes otherwise,

Description

    Use this method to verify the detached digital signature for a message. Signature should be contained in PKCS7-compatible format.

    Message is validated using certificates which it contains. If message does not contain the appropriate certificate, certificates from CertStorage are used.

    Check Certificates property after calling this method to get certificates which are included in message.

See also:     CertStorage     Certificates     Verify    

Discuss this help topic in SecureBlackbox Forum