Lines Matching refs:RSA
11 * RSA low level APIs are deprecated for public use, but still ok for
31 static RSA *rsa_new_intern(ENGINE *engine, OSSL_LIB_CTX *libctx);
34 RSA *RSA_new(void)
39 const RSA_METHOD *RSA_get_method(const RSA *rsa)
44 int RSA_set_method(RSA *rsa, const RSA_METHOD *meth)
64 RSA *RSA_new_method(ENGINE *engine)
70 RSA *ossl_rsa_new_with_ctx(OSSL_LIB_CTX *libctx)
75 static RSA *rsa_new_intern(ENGINE *engine, OSSL_LIB_CTX *libctx)
77 RSA *ret = OPENSSL_zalloc(sizeof(*ret));
133 void RSA_free(RSA *r)
141 REF_PRINT_COUNT("RSA", r);
180 int RSA_up_ref(RSA *r)
187 REF_PRINT_COUNT("RSA", r);
192 OSSL_LIB_CTX *ossl_rsa_get0_libctx(RSA *r)
197 void ossl_rsa_set0_libctx(RSA *r, OSSL_LIB_CTX *libctx)
203 int RSA_set_ex_data(RSA *r, int idx, void *arg)
208 void *RSA_get_ex_data(const RSA *r, int idx)
376 int RSA_security_bits(const RSA *rsa)
392 int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d)
420 int RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q)
444 int RSA_set0_crt_params(RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp)
479 int RSA_set0_multi_prime_params(RSA *r, BIGNUM *primes[], BIGNUM *exps[],
545 void RSA_get0_key(const RSA *r,
556 void RSA_get0_factors(const RSA *r, const BIGNUM **p, const BIGNUM **q)
565 int RSA_get_multi_prime_extra_count(const RSA *r)
575 int RSA_get0_multi_prime_factors(const RSA *r, const BIGNUM *primes[])
596 void RSA_get0_crt_params(const RSA *r,
609 int RSA_get0_multi_prime_crt_params(const RSA *r, const BIGNUM *exps[],
636 const BIGNUM *RSA_get0_n(const RSA *r)
641 const BIGNUM *RSA_get0_e(const RSA *r)
646 const BIGNUM *RSA_get0_d(const RSA *r)
651 const BIGNUM *RSA_get0_p(const RSA *r)
656 const BIGNUM *RSA_get0_q(const RSA *r)
661 const BIGNUM *RSA_get0_dmp1(const RSA *r)
666 const BIGNUM *RSA_get0_dmq1(const RSA *r)
671 const BIGNUM *RSA_get0_iqmp(const RSA *r)
676 const RSA_PSS_PARAMS *RSA_get0_pss_params(const RSA *r)
686 int ossl_rsa_set0_pss_params(RSA *r, RSA_PSS_PARAMS *pss)
698 RSA_PSS_PARAMS_30 *ossl_rsa_get0_pss_params_30(RSA *r)
703 void RSA_clear_flags(RSA *r, int flags)
708 int RSA_test_flags(const RSA *r, int flags)
713 void RSA_set_flags(RSA *r, int flags)
718 int RSA_get_version(RSA *r)
725 ENGINE *RSA_get0_engine(const RSA *r)
732 /* If key type not RSA or RSA-PSS return error */
743 int ossl_rsa_set0_all_params(RSA *r, const STACK_OF(BIGNUM) *primes,
841 int ossl_rsa_get0_all_params(RSA *r, STACK_OF(BIGNUM_const) *primes,
893 /* If key type not RSA return error */
896 if (!EVP_PKEY_CTX_is_a(ctx, "RSA")
897 && !EVP_PKEY_CTX_is_a(ctx, "RSA-PSS"))
933 /* If key type not RSA return error */
936 if (!EVP_PKEY_CTX_is_a(ctx, "RSA")
937 && !EVP_PKEY_CTX_is_a(ctx, "RSA-PSS"))
1095 /* If key type not RSA return error */
1096 if (!EVP_PKEY_CTX_is_a(ctx, "RSA"))
1124 /* If key type not RSA return error */
1125 if (!EVP_PKEY_CTX_is_a(ctx, "RSA"))
1153 * However, we do use RSA-PSS with the whole gamut of diverse signature
1191 if (!EVP_PKEY_CTX_is_a(ctx, "RSA-PSS"))
1212 /* If key type not RSA return error */
1213 if (!EVP_PKEY_CTX_is_a(ctx, "RSA")
1214 && !EVP_PKEY_CTX_is_a(ctx, "RSA-PSS"))
1272 /* If key type not RSA return error */
1273 if (!EVP_PKEY_CTX_is_a(ctx, "RSA")
1274 && !EVP_PKEY_CTX_is_a(ctx, "RSA-PSS"))