HP Open Source Security for OpenVMS Volume 2: HP SSL for OpenVMS > CRYPTO Application
Programming Interface (API) Reference## RSA_check_key
## DESCRIPTIONThis function validates RSA keys. It checks that It also checks that As such, this function can not be used with any arbitrary
RSA key object, even if it is otherwise fit for regular RSA operation.
See ## RETURN VALUERSA_check_key() returns 1 if If the key is invalid or an error occurred, the reason code
can be obtained using ## NOTESThis function does not work on RSA public keys that have only the modulus and public exponent elements populated. It performs integrity checks on all the RSA key material, so the RSA key structure must contain all the private key data too. Unlike most other RSA functions, this function does ## RestrictionsA method of verifying the RSA key using opaque RSA API functions might need to be considered. Right now RSA_check_key() simply uses the RSA structure elements directly, bypassing the RSA_METHOD table altogether (and completely violating encapsulation and object-orientation in the process). The best fix will probably be to introduce a "check_key()" handler to the RSA_METHOD function table so that alternative implementations can also provide their own verifiers. |