Discuss this help topic in SecureBlackbox Forum


TElMessageVerifier     See also     

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

This method verifies digitally signed data


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

    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

    function Verify(InBuffer : pointer; InSize : integer; OutBuffer : pointer;var OutSize : integer) : integer; overload; virtual;
    function Verify(InStream, OutStream : TStream; InCount : Int64 = 0;) : integer; overload;

    int32_t Verify(void * InBuffer, int32_t InSize, void * OutBuffer, int32_t &OutSize);
    int32_t Verify(TStream &InStream, TStream &OutStream, int64_t InCount);
    int32_t Verify(TStream *InStream, TStream *OutStream, int64_t InCount);

    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)

    int verify(byte[] InBuffer, byte[] OutBuffer, TSBInteger OutSize);
    int verify(byte[] InBuffer, int InStartIndex, int InSize, byte[] OutBuffer, int OutStartIndex, TSBInteger OutSize);
    int verify(TElStream InStream, TElStream OutStream, long InCount);


  • InBuffer - Pointer to PKCS#7 data which should be verified
  • InStartIndex - Starting index of the data to be verified in the InBuffer.
  • InSize - Size of the input data in bytes
  • OutBuffer - Pointer to buffer where verified and unpacked data should be written
  • OutStartIndex - Starting index of the resulting data in the OutBuffer.
  • OutSize - Size of the OutBuffer in bytes
  • InStream - Stream with data to be verified.
  • OutStream - Resulting stream.
  • InCount - Number of bytes to be read from InStream.If this parameter is 0 the data is read till the end of the stream.
    Default value is 0.

Return value

    0 if the verification process was completed successfully, and an error code otherwise.

Possible values:


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

Discuss this help topic in SecureBlackbox Forum