Lines Matching refs:RSA
81 RSA *RSA_new(void) { return RSA_new_method(NULL); } in RSA_new()
83 RSA *RSA_new_method(const ENGINE *engine) { in RSA_new_method()
84 RSA *rsa = OPENSSL_malloc(sizeof(RSA)); in RSA_new_method()
86 OPENSSL_PUT_ERROR(RSA, ERR_R_MALLOC_FAILURE); in RSA_new_method()
90 OPENSSL_memset(rsa, 0, sizeof(RSA)); in RSA_new_method()
117 void RSA_free(RSA *rsa) { in RSA_free()
155 int RSA_up_ref(RSA *rsa) { in RSA_up_ref()
160 void RSA_get0_key(const RSA *rsa, const BIGNUM **out_n, const BIGNUM **out_e, in RSA_get0_key()
173 void RSA_get0_factors(const RSA *rsa, const BIGNUM **out_p, in RSA_get0_factors()
183 void RSA_get0_crt_params(const RSA *rsa, const BIGNUM **out_dmp1, in RSA_get0_crt_params()
196 int RSA_public_encrypt(size_t flen, const uint8_t *from, uint8_t *to, RSA *rsa, in RSA_public_encrypt()
205 OPENSSL_PUT_ERROR(RSA, ERR_R_OVERFLOW); in RSA_public_encrypt()
211 int RSA_sign_raw(RSA *rsa, size_t *out_len, uint8_t *out, size_t max_out, in RSA_sign_raw()
220 int RSA_private_encrypt(size_t flen, const uint8_t *from, uint8_t *to, RSA *rsa, in RSA_private_encrypt()
229 OPENSSL_PUT_ERROR(RSA, ERR_R_OVERFLOW); in RSA_private_encrypt()
235 int RSA_decrypt(RSA *rsa, size_t *out_len, uint8_t *out, size_t max_out, in RSA_decrypt()
244 int RSA_private_decrypt(size_t flen, const uint8_t *from, uint8_t *to, RSA *rsa, in RSA_private_decrypt()
253 OPENSSL_PUT_ERROR(RSA, ERR_R_OVERFLOW); in RSA_private_decrypt()
259 int RSA_public_decrypt(size_t flen, const uint8_t *from, uint8_t *to, RSA *rsa, in RSA_public_decrypt()
268 OPENSSL_PUT_ERROR(RSA, ERR_R_OVERFLOW); in RSA_public_decrypt()
274 unsigned RSA_size(const RSA *rsa) { in RSA_size()
282 int RSA_is_opaque(const RSA *rsa) { in RSA_is_opaque()
296 int RSA_set_ex_data(RSA *d, int idx, void *arg) { in RSA_set_ex_data()
300 void *RSA_get_ex_data(const RSA *d, int idx) { in RSA_get_ex_data()
379 OPENSSL_PUT_ERROR(RSA, RSA_R_INVALID_MESSAGE_LENGTH); in RSA_add_pkcs1_prefix()
396 OPENSSL_PUT_ERROR(RSA, RSA_R_INVALID_MESSAGE_LENGTH); in RSA_add_pkcs1_prefix()
407 OPENSSL_PUT_ERROR(RSA, RSA_R_TOO_LONG); in RSA_add_pkcs1_prefix()
413 OPENSSL_PUT_ERROR(RSA, ERR_R_MALLOC_FAILURE); in RSA_add_pkcs1_prefix()
427 OPENSSL_PUT_ERROR(RSA, RSA_R_UNKNOWN_ALGORITHM_TYPE); in RSA_add_pkcs1_prefix()
432 unsigned *out_len, RSA *rsa) { in RSA_sign()
461 int RSA_sign_pss_mgf1(RSA *rsa, size_t *out_len, uint8_t *out, size_t max_out, in RSA_sign_pss_mgf1()
465 OPENSSL_PUT_ERROR(RSA, RSA_R_INVALID_MESSAGE_LENGTH); in RSA_sign_pss_mgf1()
472 OPENSSL_PUT_ERROR(RSA, ERR_R_MALLOC_FAILURE); in RSA_sign_pss_mgf1()
485 const uint8_t *sig, size_t sig_len, RSA *rsa) { in RSA_verify()
487 OPENSSL_PUT_ERROR(RSA, RSA_R_VALUE_MISSING); in RSA_verify()
499 OPENSSL_PUT_ERROR(RSA, RSA_R_INVALID_MESSAGE_LENGTH); in RSA_verify()
505 OPENSSL_PUT_ERROR(RSA, ERR_R_MALLOC_FAILURE); in RSA_verify()
522 OPENSSL_PUT_ERROR(RSA, RSA_R_BAD_SIGNATURE); in RSA_verify()
536 int RSA_verify_pss_mgf1(RSA *rsa, const uint8_t *msg, size_t msg_len, in RSA_verify_pss_mgf1()
540 OPENSSL_PUT_ERROR(RSA, RSA_R_INVALID_MESSAGE_LENGTH); in RSA_verify_pss_mgf1()
547 OPENSSL_PUT_ERROR(RSA, ERR_R_MALLOC_FAILURE); in RSA_verify_pss_mgf1()
557 OPENSSL_PUT_ERROR(RSA, ERR_R_INTERNAL_ERROR); in RSA_verify_pss_mgf1()
568 int RSA_check_key(const RSA *key) { in RSA_check_key()
579 OPENSSL_PUT_ERROR(RSA, RSA_R_ONLY_ONE_OF_P_Q_GIVEN); in RSA_check_key()
584 OPENSSL_PUT_ERROR(RSA, RSA_R_VALUE_MISSING); in RSA_check_key()
596 OPENSSL_PUT_ERROR(RSA, ERR_R_MALLOC_FAILURE); in RSA_check_key()
616 OPENSSL_PUT_ERROR(RSA, ERR_LIB_BN); in RSA_check_key()
624 OPENSSL_PUT_ERROR(RSA, ERR_LIB_BN); in RSA_check_key()
629 OPENSSL_PUT_ERROR(RSA, RSA_R_N_NOT_EQUAL_P_Q); in RSA_check_key()
634 OPENSSL_PUT_ERROR(RSA, RSA_R_D_E_NOT_CONGRUENT_TO_1); in RSA_check_key()
641 OPENSSL_PUT_ERROR(RSA, RSA_R_INCONSISTENT_SET_OF_CRT_VALUES); in RSA_check_key()
652 OPENSSL_PUT_ERROR(RSA, ERR_LIB_BN); in RSA_check_key()
660 OPENSSL_PUT_ERROR(RSA, RSA_R_CRT_VALUES_INCORRECT); in RSA_check_key()
704 int RSA_check_fips(RSA *key) { in RSA_check_fips()
707 OPENSSL_PUT_ERROR(RSA, RSA_R_PUBLIC_KEY_VALIDATION_FAILED); in RSA_check_fips()
717 OPENSSL_PUT_ERROR(RSA, ERR_R_MALLOC_FAILURE); in RSA_check_fips()
737 OPENSSL_PUT_ERROR(RSA, RSA_R_PUBLIC_KEY_VALIDATION_FAILED); in RSA_check_fips()
758 OPENSSL_PUT_ERROR(RSA, ERR_R_MALLOC_FAILURE); in RSA_check_fips()
763 OPENSSL_PUT_ERROR(RSA, ERR_R_INTERNAL_ERROR); in RSA_check_fips()
771 OPENSSL_PUT_ERROR(RSA, ERR_R_INTERNAL_ERROR); in RSA_check_fips()
781 int RSA_private_transform(RSA *rsa, uint8_t *out, const uint8_t *in, in RSA_private_transform()
790 int RSA_blinding_on(RSA *rsa, BN_CTX *ctx) { in RSA_blinding_on()