Discuss this help topic in SecureBlackbox Forum

TElMessageSigner.InitiateAsyncSign

TElMessageSigner     See also     


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


Initiates asynchronous signing.

Declaration

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

[Java]
    int initiateAsyncSign(TElStream InStream, boolean Detached, TSBObject State, long InCount);
    int initiateAsyncSign(byte[] InBuffer, int InStartIndex, int InSize, byte[] OutBuffer, int OutStartIndex, TSBInteger OutSize, boolean Detached, TSBDCAsyncSignMethod AsyncSignMethod, TSBObject State);
    int initiateAsyncSign(byte[] InBuffer, int InStartIndex, int InSize, byte[] OutBuffer, int OutStartIndex, TSBInteger OutSize, boolean Detached, TSBObject State);
    int initiateAsyncSign(TElStream InStream, TElStream OutStream, boolean Detached, TElDCParameters Pars, TSBDCAsyncSignMethod AsyncSignMethod, byte[] AdditionalData, TSBObject State, long InCount);
    int initiateAsyncSign(TElStream InStream, TElStream OutStream, boolean Detached, TElDCParameters Pars, byte[] AdditionalData, TSBObject State, long InCount);
    int initiateAsyncSign(TElStream InStream, TElStream OutStream, boolean Detached, TSBDCAsyncSignMethod AsyncSignMethod, TSBObject State, long InCount);
    int initiateAsyncSign(TElStream InStream, TElStream OutStream, boolean Detached, TSBObject State, long InCount);
    int initiateAsyncSign(TElStream InStream, boolean Detached, TSBDCAsyncSignMethod AsyncSignMethod, TSBObject State, long InCount);
    int initiateAsyncSign(TElStream InStream, boolean Detached, TElDCParameters Pars, TSBDCAsyncSignMethod AsyncSignMethod, byte[] AdditionalData, TSBObject State, long InCount);
    int initiateAsyncSign(TElStream InStream, boolean Detached, TElDCParameters Pars, byte[] AdditionalData, TSBObject State, long InCount);
    int initiateAsyncSign(byte[] InBuffer, int InStartIndex, int InSize, boolean Detached, TSBObject State);
    int initiateAsyncSign(byte[] InBuffer, int InStartIndex, int InSize, boolean Detached, TSBDCAsyncSignMethod AsyncSignMethod, TSBObject State);
    int initiateAsyncSign(byte[] InBuffer, int InStartIndex, int InSize, boolean Detached, TElDCParameters Pars, byte[] AdditionalData, TSBObject State);
    int initiateAsyncSign(byte[] InBuffer, int InStartIndex, int InSize, byte[] OutBuffer, int OutStartIndex, TSBInteger OutSize, boolean Detached, TElDCParameters Pars, byte[] AdditionalData, TSBObject State);
    int initiateAsyncSign(byte[] InBuffer, int InStartIndex, int InSize, byte[] OutBuffer, int OutStartIndex, TSBInteger OutSize, boolean Detached, TElDCParameters Pars, TSBDCAsyncSignMethod AsyncSignMethod, byte[] AdditionalData, TSBObject State);
    int initiateAsyncSign(byte[] InBuffer, int InStartIndex, int InSize, boolean Detached, TElDCParameters Pars, TSBDCAsyncSignMethod AsyncSignMethod, byte[] AdditionalData, TSBObject State);

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 - specifies distributed cryptography (DC) parameters.
  • AdditionalData - additional data to be included into DC request. This data won't be signed, and will be mirrored back to the client.

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