Discuss this help topic in SecureBlackbox Forum


TElSMIMEMessageVerifier     See also     

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

This method verifies digitally signed data


    int VerifyDetached(byte[] Buffer, byte[] Signature);
    int VerifyDetached(byte[] InBuffer, int InStartIndex, int InSize, byte[] SigBuffer, int SigStartIndex, int SigSize);
    int VerifyDetached(System.IO.Stream InStream, System.IO.Stream SigStream, long InCount, long SigCount);

    Function VerifyDetached(ByVal Buffer As Byte(), ByVal Signature As Byte()) As Integer
    Function VerifyDetached(ByVal InBuffer As Byte(), ByVal InStartIndex As Integer, ByVal InSize As Integer, ByVal SigBuffer As Byte(), ByVal SigStartIndex As Integer, ByVal SigSize As Integer) As Integer
    Function VerifyDetached(ByVal InStream As System.IO.Stream, ByVal SigStream As System.IO.Stream, ByVal InCount As Long, ByVal SigCount As Long) As Integer

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

    int32_t VerifyDetached(void * Buffer, int32_t Size, void * Signature, int32_t SignatureSize);

    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)


  • 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 - ...
  • InStartIndex -
  • SigBuffer -
  • SigStartIndex -
  • SigSize -

Return value

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


    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