Discuss this help topic in SecureBlackbox Forum

TElCertificateRequest.GetRSAParams

TElCertificateRequest     See also     


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


Returns the RSA algorithm parameters for currently loaded Certificate Request

Declaration

[C#/Java]
    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;

[C++]
    bool GetRSAParams(void * PublicModulus, int32_t &PublicModulusSize, void * PublicExponent, int32_t &PublicExponentSize);

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

Parameters

  • 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.

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    

Discuss this help topic in SecureBlackbox Forum