Discuss this help topic in SecureBlackbox Forum


TElCertificateRequest     See also     

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

Returns the RSA algorithm parameters for currently loaded Certificate Request


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

    Function GetRSAParams(ByRef PublicModulus As Byte(), ByRef PublicModulusSize As Integer, ByRef PublicExponent As Byte(), ByRef PublicExponentSize As Integer) As Boolean

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

    bool GetRSAParams(void * PublicModulus, int32_t &PublicModulusSize, void * PublicExponent, int32_t &PublicExponentSize);

    bool GetRSAParams(TSBPointer|array of byte|string|NULL $PublicModulus, integer &$PublicModulusSize, TSBPointer|array of byte|string|NULL $PublicExponent, integer &$PublicExponentSize)

    boolean getRSAParams(byte[][] PublicModulus, int[] PublicModulusSize, byte[][] PublicExponent, int[] PublicExponentSize);


  • PublicModulus - pointer to buffer where to put the RSA Public Modulus
  • PublicModulusSize - the length of public modulus in bytes
  • PublicExponent - pointer to buffer where to put the RSA Public Exponent
  • PublicExponentSize - the length of public exponent in bytes

Return value

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


    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    

Discuss this help topic in SecureBlackbox Forum