Discuss this help topic in SecureBlackbox Forum

TElECDSAPublicKeyCrypto.DecodeSignature

TElECDSAPublicKeyCrypto     See also     


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


Decodes a DSA signature blob into "R" and "S" parameters.

Declaration

[C#]
    void DecodeSignature(byte[] Sig, int SigIndex, int SigSize, ref byte[] R, int RIndex, ref int RSize, ref byte[] S, int SIndex, ref int SSize);

[VB.NET]
    Sub DecodeSignature(ByVal Sig As Byte(), ByVal SigIndex As Integer, ByVal SigSize As Integer, ByRef R As Byte(), ByVal RIndex As Integer, ByRef RSize As Integer, ByRef S As Byte(), ByVal SIndex As Integer, ByRef SSize As Integer)

[Pascal]
    procedure DecodeSignature(Sig : pointer; SigSize : integer; R : pointer; var RSize : integer; S : pointer; var SSize : pointer);

[C++]
    void DecodeSignature(void * Sig, int32_t SigSize, void * R, int32_t &RSize, void * S, int32_t &SSize);

[PHP]
    void DecodeSignature(TSBPointer|array of byte|string|NULL $Sig, integer $SigSize, TSBPointer|array of byte|string|NULL $R, integer &$RSize, TSBPointer|array of byte|string|NULL $S, integer &$SSize)

[Java]
    void decodeSignature(byte[] Sig, int SigIndex, int SigSize, byte[][] R, int RIndex, int[] RSize, byte[][] S, int SIndex, int[] SSize);

Parameters

  • Sig - encoded signature
  • SigSize - size of the Sig buffer
  • SigIndex - index from which the signature data begins in the Sig buffer
  • R - DSA "R" parameter
  • RSize - size of the R buffer
  • RIndex - index from which the "R" data begins in the R buffer
  • S - DSA "S" parameter
  • SSize - size of the S buffer
  • SIndex - index from which the "S" data begins in the S buffer

Description

    Use this method to decode a DSA signature blob and extract the "R" and "S" DSA parameters.

See also:     EncodeSignature    

Discuss this help topic in SecureBlackbox Forum