Discuss this help topic in SecureBlackbox Forum

TElMessageSigner.Timestamp

TElMessageSigner     See also     


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


Timestamps the message.

Declaration

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

[VB.NET]
    Function Timestamp(ByVal InBuffer As Byte(), ByVal InStartIndex As Integer, ByVal InSize As Integer, ByRef OutBuffer As Byte(), ByVal OutStartIndex As Integer, ByRef OutSize As Integer) As Integer
    Function Timestamp(ByVal InStream As System.IO.Stream, ByVal OutStream As System.IO.Stream, ByVal InCount As Long) As Integer

[Pascal]
    function Timestamp(InBuffer : pointer; InSize : integer; OutBuffer : pointer; var OutSize : integer) : integer;
    function Timestamp(InStream, OutStream : TStream; InCount : int64 = 0) : integer;

[C++]
    int32_t Timestamp(void * InBuffer, int32_t InSize, void * OutBuffer, int32_t &OutSize);
    int32_t Timestamp(TStream &InStream, TStream &OutStream, int64_t InCount);
    int32_t Timestamp(TStream *InStream, TStream *OutStream, int64_t InCount);

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

Parameters

  • InBuffer - Pointer to the data to be stamped
  • InStartIndex - Starting index of the data to be stamped in the InBuffer.
  • InSize - Size of the input data in bytes
  • OutBuffer - Pointer to the buffer where the stamped data should be written
  • OutStartIndex - Starting index of the data in the OutBuffer.
  • OutSize - Size of the OutBuffer in bytes
  • InStream - Stream with data to timestamp.
  • OutStream - Resulting stream.
  • InCount - Number of bytes to be read from the 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 timestamping process was completed successfully, and an error code otherwise.

Possible values:


Description

    Use this method to timestamp the message.

See also:     TSPClient     TimestampCountersignature     ErrorInfo    

Discuss this help topic in SecureBlackbox Forum