Discuss this help topic in SecureBlackbox Forum

TElSMIMEMessageVerifier.Verify

TElSMIMEMessageVerifier     See also     


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


This method verifies digitally signed data

Declaration

[C#]
    int Verify(byte[] InBuffer, ref byte[] OutBuffer, ref int OutSize);
    int Verify(byte[] InBuffer, int InStartIndex, int InSize, byte[] OutBuffer, int OutStartIndex, ref int OutSize);
    int Verify(System.IO.Stream InStream, System.IO.Stream OutStream, long InCount);

[VB.NET]
    Function Verify(ByVal InBuffer As Byte(), ByRef OutBuffer As Byte(), ByRef OutSize As Integer) As Integer
    Function Verify(ByVal InBuffer As Byte(), ByVal InStartIndex As Integer, ByVal InSize As Integer, ByVal OutBuffer As Byte(), ByVal OutStartIndex As Integer, ByRef OutSize As Integer) As Integer
    Function Verify(ByVal InStream As System.IO.Stream, ByVal OutStream As System.IO.Stream, ByVal InCount As Long) 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)

[Java]
    int verify(byte[] InBuffer, byte[] OutBuffer, TSBInteger OutSize);

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 - ...
  • InStartIndex -
  • OutStartIndex -

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