Discuss this help topic in SecureBlackbox Forum

TElMessageTimestampVerifier.VerifyDetached

TElMessageTimestampVerifier     See also     


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


Validates a detached timestamp.

Declaration

[C#]
    int VerifyDetached(byte[] Buffer, byte[] Data);
    int VerifyDetached(byte[] Buffer, int Index, int Size, byte[] DataBuffer, int DataIndex, int DataSize);
    int VerifyDetached(System.IO.Stream InStream, System.IO.Stream DataStream, long InCount, long DataCount);

[VB.NET]
    Function VerifyDetached(ByVal Buffer As Byte(), ByVal Data As Byte()) As Integer
    Function VerifyDetached(ByVal Buffer As Byte(), ByVal Index As Integer, ByVal Size As Integer, ByVal DataBuffer As Byte(), ByVal DataIndex As Integer, ByVal DataSize As Integer) As Integer
    Function VerifyDetached(ByVal InStream As System.IO.Stream, ByVal DataStream As System.IO.Stream, ByVal InCount As Long, ByVal DataCount As Long) As Integer

[Pascal]
    function VerifyDetached(Buffer : pointer; Size : integer; Data : pointer; DataSize : integer) : integer; virtual;
    function VerifyDetached(InStream, DataStream : TStream; InCount : Int64 = 0; DataCount : Int64 = 0) : integer;

[C++]
    int32_t VerifyDetached(void * Buffer, int32_t Size, void * Data, int32_t DataSize);
    int32_t VerifyDetached(TStream &InStream, TStream &DataStream, int64_t InCount, int64_t DataCount);
    int32_t VerifyDetached(TStream *InStream, TStream *DataStream, int64_t InCount, int64_t DataCount);

[PHP]
    integer VerifyDetached(TSBPointer|array of byte|string|NULL $Buffer, integer $Size, TSBPointer|array of byte|string|NULL $Data, integer $DataSize)
    integer VerifyDetached(TStream $InStream, TStream $DataStream, integer $InCount, integer $DataCount)

[Java]
    int verifyDetached(TElStream InStream, TElStream DataStream, long InCount, long DataCount);
    int verifyDetached(byte[] Buffer, int Index, int Size, byte[] DataBuffer, int DataIndex, int DataSize);
    int verifyDetached(byte[] Buffer, byte[] Data);

Parameters

  • Buffer - buffer with the timestamp message.
  • Index - index of the first byte of the actual message data in Buffer.
  • Size - size of the Buffer in bytes
  • Data (DataBuffer) - buffer with the data for which the time-stamp should be validated.
  • DataIndex - index of the first byte of the actual data in Data buffer.
  • DataSize - size of the Data in bytes.
  • DataStream - stream with the data for which the time-stamp should be validated.
  • DataCount - number of bytes to be read from DataStream.
  • InStream - stream with the timestamp message.
  • InCount - number of bytes to be read from InStream
  • DataBuffer -

Return value

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

Possible values:

Description

    Use this method to validate a detached timestamp. The original data should be provided via Data (DataBuffer) or DataStream parameters.

See also:     IsTimestampDetached     Verify    

Discuss this help topic in SecureBlackbox Forum