Discuss this help topic in SecureBlackbox Forum


TElMessageSigner     See also     

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

Creates countersignature over document signature.


    int Countersign(byte[] InBuffer, ref byte[] OutBuffer, ref int OutSize);
    int Countersign(System.IO.Stream InStream, System.IO.Stream OutStream, long InCount);

    Function Countersign(ByVal InBuffer As Byte(), ByRef OutBuffer As Byte(), ByRef OutSize As Integer) As Integer
    Function Countersign(ByVal InStream As System.IO.Stream, ByVal OutStream As System.IO.Stream, ByVal InCount As Long) As Integer

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

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

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

    int countersign(TElStream InStream, TElStream OutStream, long InCount);
    int countersign(byte[] InBuffer, byte[] OutBuffer, TSBInteger OutSize);


  • InBuffer - Pointer to the data of the PKCS#7 format to sign
  • InSize - Size of input data in bytes
  • OutBuffer - Pointer to the buffer where signed data should be written
  • OutSize - Size of OutBuffer in bytes
  • InStream -
  • OutStream -
  • InCount -

Return value

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

Possible values:


    Use this method to certify the existing document signatures (i.e., to countersign them). Countersigning is done using certificates contained in certificate storage specified by CertStorage property.
    Countersigning alters neither existing signatures nor signed document itself.

See also:     CertStorage     Sign     ErrorInfo    

Discuss this help topic in SecureBlackbox Forum