EldoS
Navigation
Web site
Support
Table Of Contents

Filter: C#  VB.NET  Pascal  ActiveX  DLL 


TElCertificateRequest.GetRSAParams

TElCertificateRequest     See also    


 

Returns the RSA algorithm parameters for currently loaded Certificate Request

 
 

Declaration

[C#]
     bool GetRSAParams(ref byte[] PublicModulus, ref int PublicModulusSize, ref byte[] PublicExponent, ref int PublicExponentSize);

[VB.NET]
    Function GetRSAParams(ByRef PublicModulus As Byte(), ByRef PublicModulusSize As Integer, ByRef PublicExponent As Byte(), ByRef PublicExponentSize As Integer) As Boolean

[Pascal]
    function GetDSAParams( PublicModulus : pointer; var PublicModulusSize : integer; PublicExponent : pointer; var PublicExponentSize : integer) : boolean;

[VB6]
    Sub IElCertificateRequestX.GetRSAParams(PublicModulus As Byte(), PublicExponent As Byte())

[ActiveX]
    HRESULT _stdcall IElCertificateRequestX.GetRSAParams([out] VARIANT * PublicModulus, [out] VARIANT * PublicExponent );

[DLL]
    __stdcall BOOL SBCertificateRequestGetRSAParams(HANDLE hRequest, void* pPublicModulus, int* nPublicModulusSize, void* nPublicExponentSize);
 
 

Parameters

  • [DLL]hRequest - handle to the TElCertificateRequest object that was returned by Constructor
  • PublicModulus (pPublicModulus) - pointer to buffer where to put the RSA Public Modulus
  • PublicModulusSize (nPublicModulusSize) - the length of public modulus in bytes
  • PublicExponent (pPublicExponent) - pointer to buffer where to put the RSA Public Exponent
  • PublicExponentSize (nPublicExponentSize) - the length of public exponent in bytes
 
 

Return value

    True if RSA parameters were successfully copied.
    False if at least one of buffers is too small.
    In both cases the PublicModulusSize and PublicExponentSize values are set to actual sizes of PublicModulus and PublicExponent.

 
 

Description

    Use this method to obtain the RSA parameters from Certificate Request. These two parameters (Public Modulus and Public Exponent) form the RSA public key.

 
 

See also:     GetDSAParams     GetPrivateKey     PublicKeyAlgorithm    

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