Discuss this help topic in SecureBlackbox Forum

TElMessageSigner.InitiateAsyncSign

TElMessageSigner     See also     


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


Initiates asynchronous signing.

Declaration

[C#/Java]
    int InitiateAsyncSign(byte[] InBuffer, int InStartIndex, int InSize, ref byte[] OutBuffer, int OutStartIndex, ref int OutSize, bool Detached, ref TElDCAsyncState State);
    int InitiateAsyncSign(byte[] InBuffer, int InStartIndex, int InSize, ref byte[] OutBuffer, int OutStartIndex, ref int OutSize, bool Detached, TSBDCAsyncSignMethod AsyncSignMethod, ref TElDCAsyncState State);
    int InitiateAsyncSign(byte[] InBuffer, int InStartIndex, int InSize, ref byte[] OutBuffer, int OutStartIndex, ref int OutSize, bool Detached, TElDCParameters Pars, byte[] AdditionalData, ref TElDCAsyncState State);
    int InitiateAsyncSign(byte[] InBuffer, int InStartIndex, int InSize, ref byte[] OutBuffer, int OutStartIndex, ref int OutSize, bool Detached, TElDCParameters Pars, TSBDCAsyncSignMethod AsyncSignMethod, byte[] AdditionalData, ref TElDCAsyncState State);
    int InitiateAsyncSign(byte[] InBuffer, int InStartIndex, int InSize, bool Detached, ref TElDCAsyncState State);
    int InitiateAsyncSign(byte[] InBuffer, int InStartIndex, int InSize, bool Detached, TSBDCAsyncSignMethod AsyncSignMethod, ref TElDCAsyncState State);
    int InitiateAsyncSign(byte[] InBuffer, int InStartIndex, int InSize, bool Detached, TElDCParameters Pars, byte[] AdditionalData, ref TElDCAsyncState State);
    int InitiateAsyncSign(byte[] InBuffer, int InStartIndex, int InSize, bool Detached, TElDCParameters Pars, TSBDCAsyncSignMethod AsyncSignMethod, byte[] AdditionalData, ref TElDCAsyncState State);
    int InitiateAsyncSign(System.IO.Stream InStream, System.IO.Stream OutStream, bool Detached, ref TElDCAsyncState State, long InCount);
    int InitiateAsyncSign(System.IO.Stream InStream, System.IO.Stream OutStream, bool Detached, TSBDCAsyncSignMethod AsyncSignMethod, ref TElDCAsyncState State, long InCount);
    int InitiateAsyncSign(System.IO.Stream InStream, System.IO.Stream OutStream, bool Detached, TElDCParameters Pars, byte[] AdditionalData, ref TElDCAsyncState State, long InCount);
    int InitiateAsyncSign(System.IO.Stream InStream, System.IO.Stream OutStream, bool Detached, TElDCParameters Pars, TSBDCAsyncSignMethod AsyncSignMethod, byte[] AdditionalData, ref TElDCAsyncState State, long InCount);
    int InitiateAsyncSign(System.IO.Stream InStream, bool Detached, ref TElDCAsyncState State, long InCount);
    int InitiateAsyncSign(System.IO.Stream InStream, bool Detached, TSBDCAsyncSignMethod AsyncSignMethod, ref TElDCAsyncState State, long InCount);
    int InitiateAsyncSign(System.IO.Stream InStream, bool Detached, TElDCParameters Pars, byte[] AdditionalData, ref TElDCAsyncState State, long InCount);
    int InitiateAsyncSign(System.IO.Stream InStream, bool Detached, TElDCParameters Pars, TSBDCAsyncSignMethod AsyncSignMethod, byte[] AdditionalData, ref TElDCAsyncState State, long InCount);

[VB.NET]
    Function InitiateAsyncSign(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 Detached As Boolean, ByRef State As TElDCAsyncState) As Integer
    Function InitiateAsyncSign(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 Detached As Boolean, ByVal AsyncSignMethod As TSBDCAsyncSignMethod, ByRef State As TElDCAsyncState) As Integer
    Function InitiateAsyncSign(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 Detached As Boolean, ByVal Pars As TElDCParameters, ByVal AdditionalData As Byte(), ByRef State As TElDCAsyncState) As Integer
    Function InitiateAsyncSign(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 Detached As Boolean, ByVal Pars As TElDCParameters, ByVal AsyncSignMethod As TSBDCAsyncSignMethod, ByVal AdditionalData As Byte(), ByRef State As TElDCAsyncState) As Integer
    Function InitiateAsyncSign(ByVal InBuffer As Byte(), ByVal InStartIndex As Integer, ByVal InSize As Integer, ByVal Detached As Boolean, ByRef State As TElDCAsyncState) As Integer
    Function InitiateAsyncSign(ByVal InBuffer As Byte(), ByVal InStartIndex As Integer, ByVal InSize As Integer, ByVal Detached As Boolean, ByVal AsyncSignMethod As TSBDCAsyncSignMethod, ByRef State As TElDCAsyncState) As Integer
    Function InitiateAsyncSign(ByVal InBuffer As Byte(), ByVal InStartIndex As Integer, ByVal InSize As Integer, ByVal Detached As Boolean, ByVal Pars As TElDCParameters, ByVal AdditionalData As Byte(), ByRef State As TElDCAsyncState) As Integer
    Function InitiateAsyncSign(ByVal InBuffer As Byte(), ByVal InStartIndex As Integer, ByVal InSize As Integer, ByVal Detached As Boolean, ByVal Pars As TElDCParameters, ByVal AsyncSignMethod As TSBDCAsyncSignMethod, ByVal AdditionalData As Byte(), ByRef State As TElDCAsyncState) As Integer
    Function InitiateAsyncSign(ByVal InStream As System.IO.Stream, ByVal OutStream As System.IO.Stream, ByVal Detached As Boolean, ByRef State As TElDCAsyncState, ByVal InCount As Long) As Integer
    Function InitiateAsyncSign(ByVal InStream As System.IO.Stream, ByVal OutStream As System.IO.Stream, ByVal Detached As Boolean, ByVal AsyncSignMethod As TSBDCAsyncSignMethod, ByRef State As TElDCAsyncState, ByVal InCount As Long) As Integer
    Function InitiateAsyncSign(ByVal InStream As System.IO.Stream, ByVal OutStream As System.IO.Stream, ByVal Detached As Boolean, ByVal Pars As TElDCParameters, ByVal AdditionalData As Byte(), ByRef State As TElDCAsyncState, ByVal InCount As Long) As Integer
    Function InitiateAsyncSign(ByVal InStream As System.IO.Stream, ByVal OutStream As System.IO.Stream, ByVal Detached As Boolean, ByVal Pars As TElDCParameters, ByVal AsyncSignMethod As TSBDCAsyncSignMethod, ByVal AdditionalData As Byte(), ByRef State As TElDCAsyncState, ByVal InCount As Long) As Integer
    Function InitiateAsyncSign(ByVal InStream As System.IO.Stream, ByVal Detached As Boolean, ByRef State As TElDCAsyncState, ByVal InCount As Long) As Integer
    Function InitiateAsyncSign(ByVal InStream As System.IO.Stream, ByVal Detached As Boolean, ByVal AsyncSignMethod As TSBDCAsyncSignMethod, ByRef State As TElDCAsyncState, ByVal InCount As Long) As Integer
    Function InitiateAsyncSign(ByVal InStream As System.IO.Stream, ByVal Detached As Boolean, ByVal Pars As TElDCParameters, ByVal AdditionalData As Byte(), ByRef State As TElDCAsyncState, ByVal InCount As Long) As Integer
    Function InitiateAsyncSign(ByVal InStream As System.IO.Stream, ByVal Detached As Boolean, ByVal Pars As TElDCParameters, ByVal AsyncSignMethod As TSBDCAsyncSignMethod, ByVal AdditionalData As Byte(), ByRef State As TElDCAsyncState, ByVal InCount As Long) As Integer

[Pascal]
    function InitiateAsyncSign(InBuffer : pointer; InSize : integer; OutBuffer : pointer; var OutSize : integer; Detached : boolean; var State : TElDCAsyncState) : integer;
    function InitiateAsyncSign(InStream, OutStream : TStream; Detached : boolean; var State : TElDCAsyncState; InCount : int64 = 0) : integer;

[C++]
    int32_t InitiateAsyncSign(void * InBuffer, int32_t InSize, void * OutBuffer, int32_t &OutSize, bool Detached, TElDCAsyncState &State);
    int32_t InitiateAsyncSign(void * InBuffer, int32_t InSize, void * OutBuffer, int32_t &OutSize, bool Detached, TSBDCAsyncSignMethod AsyncSignMethod, TElDCAsyncState &State);
    int32_t InitiateAsyncSign(void * InBuffer, int32_t InSize, void * OutBuffer, int32_t &OutSize, bool Detached, TElDCParameters &Pars, const std::vector<uint8_t> &AdditionalData, TElDCAsyncState &State);
    int32_t InitiateAsyncSign(void * InBuffer, int32_t InSize, void * OutBuffer, int32_t &OutSize, bool Detached, TElDCParameters *Pars, const std::vector<uint8_t> &AdditionalData, TElDCAsyncState &State);
    int32_t InitiateAsyncSign(void * InBuffer, int32_t InSize, void * OutBuffer, int32_t &OutSize, bool Detached, TElDCParameters &Pars, TSBDCAsyncSignMethod AsyncSignMethod, const std::vector<uint8_t> &AdditionalData, TElDCAsyncState &State);
    int32_t InitiateAsyncSign(void * InBuffer, int32_t InSize, void * OutBuffer, int32_t &OutSize, bool Detached, TElDCParameters *Pars, TSBDCAsyncSignMethod AsyncSignMethod, const std::vector<uint8_t> &AdditionalData, TElDCAsyncState &State);
    int32_t InitiateAsyncSign(void * InBuffer, int32_t InSize, bool Detached, TElDCAsyncState &State);
    int32_t InitiateAsyncSign(void * InBuffer, int32_t InSize, bool Detached, TSBDCAsyncSignMethod AsyncSignMethod, TElDCAsyncState &State);
    int32_t InitiateAsyncSign(void * InBuffer, int32_t InSize, bool Detached, TElDCParameters &Pars, const std::vector<uint8_t> &AdditionalData, TElDCAsyncState &State);
    int32_t InitiateAsyncSign(void * InBuffer, int32_t InSize, bool Detached, TElDCParameters *Pars, const std::vector<uint8_t> &AdditionalData, TElDCAsyncState &State);
    int32_t InitiateAsyncSign(void * InBuffer, int32_t InSize, bool Detached, TElDCParameters &Pars, TSBDCAsyncSignMethod AsyncSignMethod, const std::vector<uint8_t> &AdditionalData, TElDCAsyncState &State);
    int32_t InitiateAsyncSign(void * InBuffer, int32_t InSize, bool Detached, TElDCParameters *Pars, TSBDCAsyncSignMethod AsyncSignMethod, const std::vector<uint8_t> &AdditionalData, TElDCAsyncState &State);
    int32_t InitiateAsyncSign(TStream &InStream, TStream &OutStream, bool Detached, TElDCAsyncState &State, int64_t InCount);
    int32_t InitiateAsyncSign(TStream *InStream, TStream *OutStream, bool Detached, TElDCAsyncState &State, int64_t InCount);
    int32_t InitiateAsyncSign(TStream &InStream, TStream &OutStream, bool Detached, TSBDCAsyncSignMethod AsyncSignMethod, TElDCAsyncState &State, int64_t InCount);
    int32_t InitiateAsyncSign(TStream *InStream, TStream *OutStream, bool Detached, TSBDCAsyncSignMethod AsyncSignMethod, TElDCAsyncState &State, int64_t InCount);
    int32_t InitiateAsyncSign(TStream &InStream, TStream &OutStream, bool Detached, TElDCParameters &Pars, const std::vector<uint8_t> &AdditionalData, TElDCAsyncState &State, int64_t InCount);
    int32_t InitiateAsyncSign(TStream *InStream, TStream *OutStream, bool Detached, TElDCParameters *Pars, const std::vector<uint8_t> &AdditionalData, TElDCAsyncState &State, int64_t InCount);
    int32_t InitiateAsyncSign(TStream &InStream, TStream &OutStream, bool Detached, TElDCParameters &Pars, TSBDCAsyncSignMethod AsyncSignMethod, const std::vector<uint8_t> &AdditionalData, TElDCAsyncState &State, int64_t InCount);
    int32_t InitiateAsyncSign(TStream *InStream, TStream *OutStream, bool Detached, TElDCParameters *Pars, TSBDCAsyncSignMethod AsyncSignMethod, const std::vector<uint8_t> &AdditionalData, TElDCAsyncState &State, int64_t InCount);
    int32_t InitiateAsyncSign(TStream &InStream, bool Detached, TElDCAsyncState &State, int64_t InCount);
    int32_t InitiateAsyncSign(TStream *InStream, bool Detached, TElDCAsyncState &State, int64_t InCount);
    int32_t InitiateAsyncSign(TStream &InStream, bool Detached, TSBDCAsyncSignMethod AsyncSignMethod, TElDCAsyncState &State, int64_t InCount);
    int32_t InitiateAsyncSign(TStream *InStream, bool Detached, TSBDCAsyncSignMethod AsyncSignMethod, TElDCAsyncState &State, int64_t InCount);
    int32_t InitiateAsyncSign(TStream &InStream, bool Detached, TElDCParameters &Pars, const std::vector<uint8_t> &AdditionalData, TElDCAsyncState &State, int64_t InCount);
    int32_t InitiateAsyncSign(TStream *InStream, bool Detached, TElDCParameters *Pars, const std::vector<uint8_t> &AdditionalData, TElDCAsyncState &State, int64_t InCount);
    int32_t InitiateAsyncSign(TStream &InStream, bool Detached, TElDCParameters &Pars, TSBDCAsyncSignMethod AsyncSignMethod, const std::vector<uint8_t> &AdditionalData, TElDCAsyncState &State, int64_t InCount);
    int32_t InitiateAsyncSign(TStream *InStream, bool Detached, TElDCParameters *Pars, TSBDCAsyncSignMethod AsyncSignMethod, const std::vector<uint8_t> &AdditionalData, TElDCAsyncState &State, int64_t InCount);

[PHP]
    integer InitiateAsyncSign(TSBPointer|array of byte|string|NULL $InBuffer, integer $InSize, TSBPointer|array of byte|string|NULL $OutBuffer, integer &$OutSize, bool $Detached, TElDCAsyncState &$State)
    integer InitiateAsyncSign(TSBPointer|array of byte|string|NULL $InBuffer, integer $InSize, TSBPointer|array of byte|string|NULL $OutBuffer, integer &$OutSize, bool $Detached, integer $AsyncSignMethod, TElDCAsyncState &$State)
    integer InitiateAsyncSign(TSBPointer|array of byte|string|NULL $InBuffer, integer $InSize, TSBPointer|array of byte|string|NULL $OutBuffer, integer &$OutSize, bool $Detached, TElDCParameters $Pars, array of byte|string|NULL $AdditionalData, TElDCAsyncState &$State)
    integer InitiateAsyncSign(TSBPointer|array of byte|string|NULL $InBuffer, integer $InSize, TSBPointer|array of byte|string|NULL $OutBuffer, integer &$OutSize, bool $Detached, TElDCParameters $Pars, integer $AsyncSignMethod, array of byte|string|NULL $AdditionalData, TElDCAsyncState &$State)
    integer InitiateAsyncSign(TSBPointer|array of byte|string|NULL $InBuffer, integer $InSize, bool $Detached, TElDCAsyncState &$State)
    integer InitiateAsyncSign(TSBPointer|array of byte|string|NULL $InBuffer, integer $InSize, bool $Detached, integer $AsyncSignMethod, TElDCAsyncState &$State)
    integer InitiateAsyncSign(TSBPointer|array of byte|string|NULL $InBuffer, integer $InSize, bool $Detached, TElDCParameters $Pars, array of byte|string|NULL $AdditionalData, TElDCAsyncState &$State)
    integer InitiateAsyncSign(TSBPointer|array of byte|string|NULL $InBuffer, integer $InSize, bool $Detached, TElDCParameters $Pars, integer $AsyncSignMethod, array of byte|string|NULL $AdditionalData, TElDCAsyncState &$State)
    integer InitiateAsyncSign(TStream $InStream, TStream $OutStream, bool $Detached, TElDCAsyncState &$State, integer $InCount)
    integer InitiateAsyncSign(TStream $InStream, TStream $OutStream, bool $Detached, integer $AsyncSignMethod, TElDCAsyncState &$State, integer $InCount)
    integer InitiateAsyncSign(TStream $InStream, TStream $OutStream, bool $Detached, TElDCParameters $Pars, array of byte|string|NULL $AdditionalData, TElDCAsyncState &$State, integer $InCount)
    integer InitiateAsyncSign(TStream $InStream, TStream $OutStream, bool $Detached, TElDCParameters $Pars, integer $AsyncSignMethod, array of byte|string|NULL $AdditionalData, TElDCAsyncState &$State, integer $InCount)
    integer InitiateAsyncSign(TStream $InStream, bool $Detached, TElDCAsyncState &$State, integer $InCount)
    integer InitiateAsyncSign(TStream $InStream, bool $Detached, integer $AsyncSignMethod, TElDCAsyncState &$State, integer $InCount)
    integer InitiateAsyncSign(TStream $InStream, bool $Detached, TElDCParameters $Pars, array of byte|string|NULL $AdditionalData, TElDCAsyncState &$State, integer $InCount)
    integer InitiateAsyncSign(TStream $InStream, bool $Detached, TElDCParameters $Pars, integer $AsyncSignMethod, array of byte|string|NULL $AdditionalData, TElDCAsyncState &$State, integer $InCount)

Parameters

  • InBuffer - Pointer to the data to be signed
  • InStartIndex - Starting index of the data to be signed in the InBuffer.
  • InSize - Size of input data in bytes
  • OutBuffer - Pointer to the buffer where signed data should be written
  • OutStartIndex - Starting index of the signed data in the OutBuffer.
  • OutSize - Size of OutBuffer in bytes
  • Detached - Specifies whether the detached signature should be created instead of ┬źnormal┬╗ one
  • InStream - Stream to be signed.
  • OutStream - Resulting signed stream.
  • InCount - Number of bytes to be read from InStream. If this parameter is 0 the data is read till the end of the stream.
    Default value is 0.
  • State - TElDCAsyncState object describing the signing state is returned via this parameter.
  • AsyncSignMethod - ...
  • Pars -
  • AdditionalData -

Return value

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

Possible values:


TSBDCAsyncSignMethod values

Description

    Call this method to initiate asynchronous signing process. To finalize the process, call CompleteAsyncSign.

See also:     CompleteAsyncSign    

Discuss this help topic in SecureBlackbox Forum