Lines Matching refs:RSA
83 OPENSSL_EXPORT RSA *RSA_new(void);
86 OPENSSL_EXPORT RSA *RSA_new_method(const ENGINE *engine);
90 OPENSSL_EXPORT void RSA_free(RSA *rsa);
94 OPENSSL_EXPORT int RSA_up_ref(RSA *rsa);
100 OPENSSL_EXPORT unsigned RSA_bits(const RSA *rsa);
105 OPENSSL_EXPORT void RSA_get0_key(const RSA *rsa, const BIGNUM **out_n,
110 OPENSSL_EXPORT void RSA_get0_factors(const RSA *rsa, const BIGNUM **out_p,
117 OPENSSL_EXPORT void RSA_get0_crt_params(const RSA *rsa, const BIGNUM **out_dmp1,
130 OPENSSL_EXPORT int RSA_set0_key(RSA *rsa, BIGNUM *n, BIGNUM *e, BIGNUM *d);
140 OPENSSL_EXPORT int RSA_set0_factors(RSA *rsa, BIGNUM *p, BIGNUM *q);
150 OPENSSL_EXPORT int RSA_set0_crt_params(RSA *rsa, BIGNUM *dmp1, BIGNUM *dmq1,
164 OPENSSL_EXPORT int RSA_generate_key_ex(RSA *rsa, int bits, const BIGNUM *e,
170 OPENSSL_EXPORT int RSA_generate_key_fips(RSA *rsa, int bits, BN_GENCB *cb);
202 OPENSSL_EXPORT int RSA_encrypt(RSA *rsa, size_t *out_len, uint8_t *out,
221 OPENSSL_EXPORT int RSA_decrypt(RSA *rsa, size_t *out_len, uint8_t *out,
235 uint8_t *to, RSA *rsa, int padding);
248 uint8_t *to, RSA *rsa, int padding);
268 unsigned int *out_len, RSA *rsa);
283 OPENSSL_EXPORT int RSA_sign_pss_mgf1(RSA *rsa, size_t *out_len, uint8_t *out,
298 OPENSSL_EXPORT int RSA_sign_raw(RSA *rsa, size_t *out_len, uint8_t *out,
314 const uint8_t *sig, size_t sig_len, RSA *rsa);
328 OPENSSL_EXPORT int RSA_verify_pss_mgf1(RSA *rsa, const uint8_t *msg,
344 OPENSSL_EXPORT int RSA_verify_raw(RSA *rsa, size_t *out_len, uint8_t *out,
359 uint8_t *to, RSA *rsa, int padding);
372 uint8_t *to, RSA *rsa, int padding);
379 OPENSSL_EXPORT unsigned RSA_size(const RSA *rsa);
383 OPENSSL_EXPORT int RSA_is_opaque(const RSA *rsa);
387 OPENSSL_EXPORT RSA *RSAPublicKey_dup(const RSA *rsa);
391 OPENSSL_EXPORT RSA *RSAPrivateKey_dup(const RSA *rsa);
396 OPENSSL_EXPORT int RSA_check_key(const RSA *rsa);
401 OPENSSL_EXPORT int RSA_check_fips(RSA *key);
417 OPENSSL_EXPORT int RSA_verify_PKCS1_PSS_mgf1(const RSA *rsa,
435 OPENSSL_EXPORT int RSA_padding_add_PKCS1_PSS_mgf1(const RSA *rsa, uint8_t *EM,
466 OPENSSL_EXPORT RSA *RSA_parse_public_key(CBS *cbs);
470 OPENSSL_EXPORT RSA *RSA_public_key_from_bytes(const uint8_t *in, size_t in_len);
475 OPENSSL_EXPORT int RSA_marshal_public_key(CBB *cbb, const RSA *rsa);
482 const RSA *rsa);
487 OPENSSL_EXPORT RSA *RSA_parse_private_key(CBS *cbs);
491 OPENSSL_EXPORT RSA *RSA_private_key_from_bytes(const uint8_t *in,
497 OPENSSL_EXPORT int RSA_marshal_private_key(CBB *cbb, const RSA *rsa);
504 size_t *out_len, const RSA *rsa);
515 OPENSSL_EXPORT int RSA_set_ex_data(RSA *rsa, int idx, void *arg);
516 OPENSSL_EXPORT void *RSA_get_ex_data(const RSA *rsa, int idx);
550 OPENSSL_EXPORT int RSA_flags(const RSA *rsa);
553 OPENSSL_EXPORT int RSA_blinding_on(RSA *rsa, BN_CTX *ctx);
559 OPENSSL_EXPORT RSA *RSA_generate_key(int bits, unsigned long e, void *callback,
568 OPENSSL_EXPORT RSA *d2i_RSAPublicKey(RSA **out, const uint8_t **inp, long len);
574 OPENSSL_EXPORT int i2d_RSAPublicKey(const RSA *in, uint8_t **outp);
582 OPENSSL_EXPORT RSA *d2i_RSAPrivateKey(RSA **out, const uint8_t **inp, long len);
588 OPENSSL_EXPORT int i2d_RSAPrivateKey(const RSA *in, uint8_t **outp);
595 OPENSSL_EXPORT int RSA_padding_add_PKCS1_PSS(const RSA *rsa, uint8_t *EM,
604 OPENSSL_EXPORT int RSA_verify_PKCS1_PSS(const RSA *rsa, const uint8_t *mHash,
619 OPENSSL_EXPORT int RSA_print(BIO *bio, const RSA *rsa, int indent);
627 int (*init)(RSA *rsa);
628 int (*finish)(RSA *rsa);
631 size_t (*size)(const RSA *rsa);
634 uint8_t *sigret, unsigned int *siglen, const RSA *rsa);
637 int (*sign_raw)(RSA *rsa, size_t *out_len, uint8_t *out, size_t max_out,
639 int (*decrypt)(RSA *rsa, size_t *out_len, uint8_t *out, size_t max_out,
654 int (*private_transform)(RSA *rsa, uint8_t *out, const uint8_t *in,
728 BORINGSSL_MAKE_DELETER(RSA, RSA_free)
729 BORINGSSL_MAKE_UP_REF(RSA, RSA_up_ref)