Discuss this help topic in SecureBlackbox Forum

TElSMIMEMessageVerifier.Verify

TElSMIMEMessageVerifier     See also     


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


This method verifies digitally signed data

Declaration

[C#/Java]
    int Verify([in] byte[] InBuffer, ref byte[] OutBuffer, ref int OutSize);

[VB.NET]
    Function Verify(ByVal InBuffer As Byte(), ByRef OutBuffer As Byte(), ByRef OutSize As Integer) As Integer

[Pascal]
    function Verify(InBuffer : pointer; InSize : integer; OutBuffer : pointer; var OutSize : integer) : integer;

[C++]
    int32_t Verify(void * InBuffer, int32_t InSize, void * OutBuffer, int32_t &OutSize);

[PHP]
    integer Verify(TSBPointer|array of byte|string|NULL $InBuffer, integer $InSize, TSBPointer|array of byte|string|NULL $OutBuffer, integer &$OutSize)
    integer Verify(TStream $InStream, TStream $OutStream, integer $InCount)

Parameters

  • InBuffer - Pointer to PKCS7 data which should be verified
  • InSize - Size of input data in bytes
  • OutBuffer - Pointer to buffer where verified data should be written
  • OutSize - Size of OutBuffer in bytes
  • InStream - ...
  • OutStream - ...
  • InCount - ...

Return value

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

Description

    Use this method to verify the digital signature for a message. Message should be 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     VerifyDetached    

Discuss this help topic in SecureBlackbox Forum