Discuss this help topic in SecureBlackbox Forum

TElMessageSigner.TimestampCountersignature

TElMessageSigner     See also     


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


Timestamps individual countersignatures.

Declaration

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

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

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

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

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

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

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.
  • SigIndex - Index of the countersignature (contained in the signed message) to be timestamped.

Return value

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

Possible values:

Description

    Use this method to timestamp individual countersignature included into the signed message. Index of the desired countersignature is specified by the SigIndex parameter.

See also:     TSPClient     Timestamp     Countersign     ErrorInfo    

Discuss this help topic in SecureBlackbox Forum