EldoS
Navigation
Web site
Support
Table Of Contents

Filter: C#  VB.NET  Pascal  ActiveX  DLL 


TElCertificateRequest.GetDSAParams

TElCertificateRequest     See also    


 

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(), ByRefPSize 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;

[VB6]
    Sub IElCertificateRequestX.GetDSAParams(P As Byte(), Q As Byte(), G As Byte(), Y As Byte())

[ActiveX]
    HRESULT _stdcall IElCertificateRequestX.GetDSAParams([out] VARIANT * P, [out] VARIANT * Q, [out] VARIANT * G, [out] VARIANT * Y );

[DLL]
    __stdcall BOOL SBCertificateRequestGetDSAParams(HANDLE hRequest, void* pP, int* nPSize, void* pQ, int* nQSize, void* pG, int* nGSize, void* pY, int* nYSize);
 
 

Parameters

  • [DLL]hRequest - handle to the TElCertificateRequest object that was returned by Constructor
  • P (pP) - pointer to buffer where to put the DSA P parameter
  • PSize (nPSize) - the length of DSA P parameter in bytes
  • Q (pQ) - pointer to buffer where to put the DSA Q parameter
  • QSize (nQSize) - the length of DSA Q parameter in bytes
  • G (pG) - pointer to buffer where to put the DSA G parameter
  • GSize (nGSize) - the length of DSA G parameter in bytes
  • Y (pY) - pointer to buffer where to put the DSA Y parameter
  • YSize (nYSize) - 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    

 
Contact Us | Terms of Use | Trademarks | Privacy Statement
Copyright (c) 1998-2012, EldoS Corporation