mbedtls_rsa_check_pubkey() function
This function checks if a context contains at least an RSA public key. If the function runs successfully, it is guaranteed that enough information is present to perform an RSA public key operation using mbedtls_rsa_public().
Arguments
ctx
The initialized RSA context to check.
Return value
\c 0 on success. An \c MBEDTLS_ERR_RSA_XXX error code on failure.