Discuss this help topic in SecureBlackbox Forum

TElMessageSigner.Countersign

TElMessageSigner     See also     


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


Creates countersignature over document signature.

Declaration

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

[VB.NET]
    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

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

[C++]
    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);

[PHP]
    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)

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

Parameters

  • 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:

Description

    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