Discuss this help topic in SecureBlackbox Forum

TElPublicKeyCrypto.SignDetached

TElPublicKeyCrypto     See also     


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


Creates a detached signature over input data.

Declaration

[C#]
    void SignDetached(byte[] InBuffer, int InIndex, int InSize, ref byte[] OutBuffer, int OutIndex, ref int OutSize);
    void SignDetached(System.IO.Stream InStream, System.IO.Stream OutStream, int Count);

[VB.NET]
    Sub SignDetached(ByVal InBuffer As Byte(), ByVal InIndex As Integer, ByVal InSize As Integer, ByRef OutBuffer As Byte(), ByVal OutIndex As Integer, ByRef OutSize As Integer)
    Sub SignDetached(ByVal InStream As System.IO.Stream, ByVal OutStream As System.IO.Stream, ByVal Count As Integer)

[Pascal]
    procedure SignDetached(InBuffer: pointer; InSize: integer; OutBuffer: pointer; var OutSize: integer);
    procedure SignDetached(InStream, OutStream : TStream; Count : integer = 0);

[C++]
    void SignDetached(void * InBuffer, int32_t InSize, void * OutBuffer, int32_t &OutSize);
    void SignDetached(TStream &InStream, TStream &OutStream, int32_t Count);
    void SignDetached(TStream *InStream, TStream *OutStream, int32_t Count);

[PHP]
    void SignDetached(TSBPointer|array of byte|string|NULL $InBuffer, integer $InSize, TSBPointer|array of byte|string|NULL $OutBuffer, integer &$OutSize)
    void SignDetached(TStream $InStream, TStream $OutStream, integer $Count)

[Java]
    void signDetached(InputStream InStream, OutputStream OutStream, int Count);
    int signDetached(byte[] InBuffer, int InIndex, int InSize, byte[] OutBuffer, int OutIndex, int OutSize);

Parameters

  • InBuffer - data buffer to sign
  • InIndex - offset of actual data from the beginning of the array
  • InSize - size of input data in bytes
  • OutBuffer - buffer where to put signed data
  • OutIndex - output buffer start offset
  • OutSize - the maximal expected size of output data in bytes
  • InStream - the stream with data to sign.
  • OutStream - the stream for signed data.
  • Count - the number of bytes to be read. If this parameter is zero, the whole stream is processed.
    Default value is 0.

Description

    This method creates a detached signature over input data. The original data are not included to the signature (output data). Remember that you should transfer a detached signature (output data) along with original data.

    You can sign the data or its hash with this method. Use InputIsHash property to specify whether you pass the hash, or the data itself. In the latter case, the hash of the data will be calculated according to the value of HashAlgorithm property.

See also:     HashAlgorithm     InputIsHash     Sign     VerifyDetached    

Discuss this help topic in SecureBlackbox Forum