Discuss this help topic in SecureBlackbox Forum

TElSMIMEMessageVerifier.VerifyDetached

TElSMIMEMessageVerifier     See also     


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


This method verifies digitally signed data

Declaration

[C#]
    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);

[VB.NET]
    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

[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)

[Java]
    int verifyDetached(byte[] Buffer, byte[] Signature);

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

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