EldoS
Navigation
Web site
Support
Table Of Contents

Filter: C#/Java  VB.NET  Pascal  ActiveX  DLL 


TElX509Certificate.ValidateRSA

TElX509Certificate     See also    


 

Validates the certificate using RSA keys

 
 

Declaration

[C#/Java]
    bool ValidateRSA([in] byte[] PRSAModulus, [in] byte[] PRSAPublicKey);

[VB.NET]
    Function ValidateRSA(ByVal PRSAModulus As Byte(), ByVal PRSAPublicKey As Byte()) As Boolean

[Pascal]
    function ValidateRSA(PRSAModulus : pointer; RSAModulusSize : integer; PRSAPublicKey : pointer; RSAPublicKeySize : integer): boolean;

[VB6]
    Sub IElCertificateX.ValidateRSA(RSAModulus As Byte(), RSAPublicKey As Byte(), Valid As Boolean)

[ActiveX]
    HRESULT _stdcall IElCertificateX.ValidateRSA([in] VARIANT RSAModulus, [in] VARIANT RSAPublicKey, [out] VARIANT_BOOL * Valid);

[DLL]
    __stdcall BOOL SBX509ValidateRSA(HANDLE handle, void* pRSAModulus, int nRSAModulusSize, void* pRSAPublicKey, int nRSAPublicKeySize);
 
 

Parameters

  • [DLL]handle - handle to the TElX509Certificate object that was returned by Constructor
  • RSAModulus (pRSAModulus) - Modulus RSA parameter. [ActiveX] Buffer should contain a one-dimensional zero-based safe array with elements of type unsigned char (byte).
  • RSAModulusSize (nRSAModulusSize) - the size of the buffer with RSA modulus.
  • RSAPublicKey (pRSAPublicKey) - Public key (exponent) RSA parameter. [ActiveX] Buffer should contain a one-dimensional zero-based safe array with elements of type unsigned char (byte).
  • RSAPublicKeySize (nRSAPublicKeySize) - the size of the buffer with RSA public key.
 
 

Return value

    True if certificate is valid.
    False otherwise.

 
 

Description

    Use this function to validate a certificate using the given RSA parameters (modulus and exponent). RSA parameters can be obtained from the certificate using RSAParams method.

 
 

See also:     RSAParams    

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