Discuss this help topic in SecureBlackbox Forum

TElSMIMEMessageSigner.Sign

TElSMIMEMessageSigner     See also     


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


Encrypts the block of data

Declaration

[C#/Java]
    int Sign(byte[] InBuffer, ref byte[] OutBuffer, ref int OutSize, bool Detached);
    int Sign(System.IO.Stream InStream, System.IO.Stream OutStream, bool Detached, long InCount);
    int Sign(byte[] InBuffer, int InStartIndex, int InSize, byte[] OutBuffer, int OutStartIndex, ref int OutSize, bool Detached);

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

[Pascal]
    function Sign(InBuffer: Pointer; InSize: Integer; OutBuffer: Pointer; var OutSize: Integer; Detached: Boolean = False): Integer;

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

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

Parameters

  • InBuffer - Pointer to data to sign
  • InSize - Size of input data in bytes
  • OutBuffer - Pointer to buffer where signed data should be written
  • OutSize - Size of OutBuffer in bytes
  • Detached - Specifies whether the detached signature should be created instead of ┬źnormal┬╗ one
  • InStream - ...
  • OutStream - ...
  • InCount - ...
  • InStartIndex -
  • OutStartIndex -

Return value

    0 if the signing process was completed successfully.
    one of the following error codes otherwise,

Description

    Use this method to sign blocks of data. Block of data is signed using each certificate from CertStorage, which has the corresponding private key. All certificates from storage are included in the output signed message.

     Note,  that some certificates from storage may not have the corresponding private keys. These certificates are included in signed message too.

See also:     SigningTime    

Discuss this help topic in SecureBlackbox Forum