Implementation of pkey_rsa_verify. Some constification.