Lines Matching refs:RSA

76 RSA *RSA_new(void) { return RSA_new_method(NULL); }  in RSA_new()
78 RSA *RSA_new_method(const ENGINE *engine) { in RSA_new_method()
79 RSA *rsa = (RSA *)OPENSSL_malloc(sizeof(RSA)); in RSA_new_method()
81 OPENSSL_PUT_ERROR(RSA, ERR_R_MALLOC_FAILURE); in RSA_new_method()
85 memset(rsa, 0, sizeof(RSA)); in RSA_new_method()
125 void RSA_free(RSA *rsa) { in RSA_free()
167 int RSA_up_ref(RSA *rsa) { in RSA_up_ref()
172 int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb) { in RSA_generate_key_ex()
180 int RSA_generate_multi_prime_key(RSA *rsa, int bits, int num_primes, in RSA_generate_multi_prime_key()
189 int RSA_encrypt(RSA *rsa, size_t *out_len, uint8_t *out, size_t max_out, in RSA_encrypt()
198 int RSA_public_encrypt(size_t flen, const uint8_t *from, uint8_t *to, RSA *rsa, in RSA_public_encrypt()
207 OPENSSL_PUT_ERROR(RSA, ERR_R_OVERFLOW); in RSA_public_encrypt()
213 int RSA_sign_raw(RSA *rsa, size_t *out_len, uint8_t *out, size_t max_out, in RSA_sign_raw()
222 int RSA_private_encrypt(size_t flen, const uint8_t *from, uint8_t *to, RSA *rsa, in RSA_private_encrypt()
231 OPENSSL_PUT_ERROR(RSA, ERR_R_OVERFLOW); in RSA_private_encrypt()
237 int RSA_decrypt(RSA *rsa, size_t *out_len, uint8_t *out, size_t max_out, in RSA_decrypt()
246 int RSA_private_decrypt(size_t flen, const uint8_t *from, uint8_t *to, RSA *rsa, in RSA_private_decrypt()
255 OPENSSL_PUT_ERROR(RSA, ERR_R_OVERFLOW); in RSA_private_decrypt()
261 int RSA_verify_raw(RSA *rsa, size_t *out_len, uint8_t *out, size_t max_out, in RSA_verify_raw()
271 int RSA_public_decrypt(size_t flen, const uint8_t *from, uint8_t *to, RSA *rsa, in RSA_public_decrypt()
280 OPENSSL_PUT_ERROR(RSA, ERR_R_OVERFLOW); in RSA_public_decrypt()
286 unsigned RSA_size(const RSA *rsa) { in RSA_size()
294 int RSA_is_opaque(const RSA *rsa) { in RSA_is_opaque()
298 int RSA_supports_digest(const RSA *rsa, const EVP_MD *md) { in RSA_supports_digest()
315 int RSA_set_ex_data(RSA *d, int idx, void *arg) { in RSA_set_ex_data()
319 void *RSA_get_ex_data(const RSA *d, int idx) { in RSA_get_ex_data()
390 OPENSSL_PUT_ERROR(RSA, RSA_R_INVALID_MESSAGE_LENGTH); in RSA_add_pkcs1_prefix()
413 OPENSSL_PUT_ERROR(RSA, RSA_R_TOO_LONG); in RSA_add_pkcs1_prefix()
419 OPENSSL_PUT_ERROR(RSA, ERR_R_MALLOC_FAILURE); in RSA_add_pkcs1_prefix()
433 OPENSSL_PUT_ERROR(RSA, RSA_R_UNKNOWN_ALGORITHM_TYPE); in RSA_add_pkcs1_prefix()
438 unsigned *out_len, RSA *rsa) { in RSA_sign()
457 OPENSSL_PUT_ERROR(RSA, RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY); in RSA_sign()
475 const uint8_t *sig, size_t sig_len, RSA *rsa) { in RSA_verify()
488 OPENSSL_PUT_ERROR(RSA, RSA_R_WRONG_SIGNATURE_LENGTH); in RSA_verify()
493 OPENSSL_PUT_ERROR(RSA, RSA_R_INVALID_MESSAGE_LENGTH); in RSA_verify()
499 OPENSSL_PUT_ERROR(RSA, ERR_R_MALLOC_FAILURE); in RSA_verify()
514 OPENSSL_PUT_ERROR(RSA, RSA_R_BAD_SIGNATURE); in RSA_verify()
533 int RSA_check_key(const RSA *key) { in RSA_check_key()
544 OPENSSL_PUT_ERROR(RSA, RSA_R_ONLY_ONE_OF_P_Q_GIVEN); in RSA_check_key()
549 OPENSSL_PUT_ERROR(RSA, RSA_R_VALUE_MISSING); in RSA_check_key()
561 OPENSSL_PUT_ERROR(RSA, ERR_R_MALLOC_FAILURE); in RSA_check_key()
581 OPENSSL_PUT_ERROR(RSA, ERR_LIB_BN); in RSA_check_key()
598 OPENSSL_PUT_ERROR(RSA, ERR_LIB_BN); in RSA_check_key()
607 OPENSSL_PUT_ERROR(RSA, ERR_LIB_BN); in RSA_check_key()
612 OPENSSL_PUT_ERROR(RSA, RSA_R_N_NOT_EQUAL_P_Q); in RSA_check_key()
617 OPENSSL_PUT_ERROR(RSA, RSA_R_D_E_NOT_CONGRUENT_TO_1); in RSA_check_key()
624 OPENSSL_PUT_ERROR(RSA, RSA_R_INCONSISTENT_SET_OF_CRT_VALUES); in RSA_check_key()
635 OPENSSL_PUT_ERROR(RSA, ERR_LIB_BN); in RSA_check_key()
642 OPENSSL_PUT_ERROR(RSA, RSA_R_CRT_VALUES_INCORRECT); in RSA_check_key()
664 int RSA_recover_crt_params(RSA *rsa) { in RSA_recover_crt_params()
670 OPENSSL_PUT_ERROR(RSA, RSA_R_EMPTY_PUBLIC_KEY); in RSA_recover_crt_params()
675 OPENSSL_PUT_ERROR(RSA, RSA_R_CRT_PARAMS_ALREADY_GIVEN); in RSA_recover_crt_params()
680 OPENSSL_PUT_ERROR(RSA, RSA_R_CANNOT_RECOVER_MULTI_PRIME_KEY); in RSA_recover_crt_params()
689 OPENSSL_PUT_ERROR(RSA, ERR_R_MALLOC_FAILURE); in RSA_recover_crt_params()
702 OPENSSL_PUT_ERROR(RSA, ERR_R_MALLOC_FAILURE); in RSA_recover_crt_params()
730 OPENSSL_PUT_ERROR(RSA, ERR_R_BN_LIB); in RSA_recover_crt_params()
735 OPENSSL_PUT_ERROR(RSA, RSA_R_BAD_RSA_PARAMETERS); in RSA_recover_crt_params()
746 OPENSSL_PUT_ERROR(RSA, ERR_R_MALLOC_FAILURE); in RSA_recover_crt_params()
764 OPENSSL_PUT_ERROR(RSA, ERR_R_BN_LIB); in RSA_recover_crt_params()
769 OPENSSL_PUT_ERROR(RSA, RSA_R_INTERNAL_ERROR); in RSA_recover_crt_params()
778 OPENSSL_PUT_ERROR(RSA, ERR_R_BN_LIB); in RSA_recover_crt_params()
797 int RSA_private_transform(RSA *rsa, uint8_t *out, const uint8_t *in, in RSA_private_transform()
806 int RSA_blinding_on(RSA *rsa, BN_CTX *ctx) { in RSA_blinding_on()