Discuss this help topic in SecureBlackbox Forum

TElCertificateRequest.GetDSAParams

TElCertificateRequest     See also     


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


Returns the DSA algorithm parameters for currently loaded Certificate Request

Declaration

[C#]
    bool GetDSAParams(ref byte[] P, ref int PSize, ref byte[] Q, ref int QSize, ref byte[] G, ref int GSize, ref byte[] Y, ref int YSize);

[VB.NET]
    Function GetDSAParams(ByRef P As Byte(), ByRef PSize As Integer, ByRef Q As Byte(), ByRef QSize As Integer, ByRef G As Byte(), ByRef GSize As Integer, ByRef Y As Byte(), ByRef YSize As Integer) As Boolean

[Pascal]
    function GetDSAParams( P : pointer; var PSize : integer; Q : pointer; var QSize : integer; G : pointer; var GSize : integer; Y : pointer; var YSize : integer) : boolean;

[C++]
    bool GetDSAParams(void * P, int32_t &PSize, void * Q, int32_t &QSize, void * G, int32_t &GSize, void * Y, int32_t &YSize);

[PHP]
    bool GetDSAParams(TSBPointer|array of byte|string|NULL $P, integer &$PSize, TSBPointer|array of byte|string|NULL $Q, integer &$QSize, TSBPointer|array of byte|string|NULL $G, integer &$GSize, TSBPointer|array of byte|string|NULL $Y, integer &$YSize)

[Java]
    boolean getDSAParams(byte[][] P, int[] PSize, byte[][] Q, int[] QSize, byte[][] G, int[] GSize, byte[][] Y, int[] YSize);

Parameters

  • P - pointer to buffer where to put the DSA P parameter
  • PSize - the length of DSA P parameter in bytes
  • Q - pointer to buffer where to put the DSA Q parameter
  • QSize - the length of DSA Q parameter in bytes
  • G - pointer to buffer where to put the DSA G parameter
  • GSize - the length of DSA G parameter in bytes
  • Y - pointer to buffer where to put the DSA Y parameter
  • YSize - the length of DSA Y parameter in bytes

Return value

    True if DSA parameters were successfully copied.
    False if at least one of P, Q, G or Y buffers is too small.
    In both cases the PSize, QSize, GSize and YSize values are set to actual sizes of P, Q, G and Y.

Description

    Use this method to obtain the DSA parameters from Certificate Request. These four parameters (P, Q, G and Y) form the DSA public key.

See also:     GetRSAParams     GetPrivateKey     PublicKeyAlgorithm    

Discuss this help topic in SecureBlackbox Forum