Home
last modified time | relevance | path

Searched refs:RSA (Results 1 – 25 of 33) sorted by relevance

12

/crypto/rsa/
A Drsa_asn1.c37 RSA_free((RSA *)*pval); in rsa_cb()
58 ASN1_EMBED(RSA, version, INT32),
59 ASN1_SIMPLE(RSA, n, BIGNUM),
60 ASN1_SIMPLE(RSA, e, BIGNUM),
61 ASN1_SIMPLE(RSA, d, CBIGNUM),
62 ASN1_SIMPLE(RSA, p, CBIGNUM),
63 ASN1_SIMPLE(RSA, q, CBIGNUM),
72 ASN1_SIMPLE(RSA, n, BIGNUM),
73 ASN1_SIMPLE(RSA, e, BIGNUM),
120 RSA *RSAPublicKey_dup(const RSA *rsa)
[all …]
A Drsa_local.h118 int (*init) (RSA *rsa);
120 int (*finish) (RSA *rsa);
134 const RSA *rsa);
137 unsigned int siglen, const RSA *rsa);
152 int ossl_rsa_multiprime_derive(RSA *rsa, int bits, int primes,
165 int ossl_rsa_multip_calc_product(RSA *rsa);
179 int ossl_rsa_check_crt_components(const RSA *rsa, BN_CTX *ctx);
181 int ossl_rsa_sp800_56b_pairwise_test(RSA *rsa, BN_CTX *ctx);
182 int ossl_rsa_sp800_56b_check_public(const RSA *rsa);
183 int ossl_rsa_sp800_56b_check_private(const RSA *rsa);
[all …]
A Drsa_meth.c104 unsigned char *to, RSA *rsa, int padding) in RSA_meth_get_pub_enc()
120 unsigned char *to, RSA *rsa, int padding) in RSA_meth_get_pub_dec()
136 unsigned char *to, RSA *rsa, int padding) in RSA_meth_get_priv_enc()
152 unsigned char *to, RSA *rsa, int padding) in RSA_meth_get_priv_dec()
168 (BIGNUM *r0, const BIGNUM *i, RSA *rsa, BN_CTX *ctx) in RSA_meth_get_mod_exp()
202 int (*RSA_meth_get_init(const RSA_METHOD *meth)) (RSA *rsa) in RSA_meth_get_init()
214 int (*RSA_meth_get_finish(const RSA_METHOD *meth)) (RSA *rsa) in RSA_meth_get_finish()
229 const RSA *rsa) in RSA_meth_get_sign()
238 const RSA *rsa)) in RSA_meth_set_sign()
247 unsigned int siglen, const RSA *rsa) in RSA_meth_get_verify()
[all …]
A Drsa_lib.c35 RSA *RSA_new(void) in RSA_new()
65 RSA *RSA_new_method(ENGINE *engine) in RSA_new_method()
141 void RSA_free(RSA *r) in RSA_free()
193 int RSA_up_ref(RSA *r) in RSA_up_ref()
389 int RSA_security_bits(const RSA *rsa) in RSA_security_bits()
558 void RSA_get0_key(const RSA *r, in RSA_get0_key()
609 void RSA_get0_crt_params(const RSA *r, in RSA_get0_crt_params()
726 void RSA_set_flags(RSA *r, int flags) in RSA_set_flags()
731 int RSA_get_version(RSA *r) in RSA_get_version()
738 ENGINE *RSA_get0_engine(const RSA *r) in RSA_get0_engine()
[all …]
A Drsa_crpt.c23 int RSA_bits(const RSA *r) in RSA_bits()
28 int RSA_size(const RSA *r) in RSA_size()
34 RSA *rsa, int padding) in RSA_public_encrypt()
40 unsigned char *to, RSA *rsa, int padding) in RSA_private_encrypt()
46 unsigned char *to, RSA *rsa, int padding) in RSA_private_decrypt()
52 RSA *rsa, int padding) in RSA_public_decrypt()
57 int RSA_flags(const RSA *r) in RSA_flags()
62 void RSA_blinding_off(RSA *rsa) in RSA_blinding_off()
68 int RSA_blinding_on(RSA *rsa, BN_CTX *ctx) in RSA_blinding_on()
104 BN_BLINDING *RSA_setup_blinding(RSA *rsa, BN_CTX *in_ctx) in RSA_setup_blinding()
A Drsa_ossl.c35 static int rsa_ossl_mod_exp(BIGNUM *r0, const BIGNUM *i, RSA *rsa,
37 static int rsa_ossl_init(RSA *rsa);
38 static int rsa_ossl_finish(RSA *rsa);
40 static int rsa_ossl_s390x_mod_exp(BIGNUM *r0, const BIGNUM *i, RSA *rsa,
218 void ossl_rsa_free_blinding(RSA *rsa) in ossl_rsa_free_blinding()
231 static BN_BLINDING *ossl_rsa_get_thread_bn_blinding(RSA *rsa) in ossl_rsa_get_thread_bn_blinding()
239 static int ossl_rsa_set_thread_bn_blinding(RSA *rsa, BN_BLINDING *b) in ossl_rsa_set_thread_bn_blinding()
247 static BN_BLINDING *rsa_get_blinding(RSA *rsa, BN_CTX *ctx) in rsa_get_blinding()
414 static int derive_kdk(int flen, const unsigned char *from, RSA *rsa, in derive_kdk()
1143 static int rsa_ossl_init(RSA *rsa) in rsa_ossl_init()
[all …]
A Drsa_prn.c22 int RSA_print_fp(FILE *fp, const RSA *x, int off) in RSA_print_fp()
38 int RSA_print(BIO *bp, const RSA *x, int off) in RSA_print()
45 ret = EVP_PKEY_set1_RSA(pk, (RSA *)x); in RSA_print()
A Drsa_chk.c22 static int rsa_validate_keypair_multiprime(const RSA *key, BN_GENCB *cb) in rsa_validate_keypair_multiprime()
237 int ossl_rsa_validate_public(const RSA *key) in ossl_rsa_validate_public()
242 int ossl_rsa_validate_private(const RSA *key) in ossl_rsa_validate_private()
247 int ossl_rsa_validate_pairwise(const RSA *key) in ossl_rsa_validate_pairwise()
256 int RSA_check_key(const RSA *key) in RSA_check_key()
261 int RSA_check_key_ex(const RSA *key, BN_GENCB *cb) in RSA_check_key_ex()
A Drsa_pmeth.c146 RSA *rsa = (RSA *)EVP_PKEY_get0_RSA(ctx->pkey); in pkey_rsa_sign()
223 RSA *rsa = (RSA *)EVP_PKEY_get0_RSA(ctx->pkey); in pkey_rsa_verifyrecover()
274 RSA *rsa = (RSA *)EVP_PKEY_get0_RSA(ctx->pkey); in pkey_rsa_verify()
338 RSA *rsa = (RSA *)EVP_PKEY_get0_RSA(ctx->pkey); in pkey_rsa_encrypt()
372 RSA *rsa = (RSA *)EVP_PKEY_get0_RSA(ctx->pkey); in pkey_rsa_decrypt()
765 static int rsa_set_pss_param(RSA *rsa, EVP_PKEY_CTX *ctx) in rsa_set_pss_param()
784 RSA *rsa = NULL; in pkey_rsa_keygen()
868 const RSA *rsa; in pkey_pss_init()
A Drsa_backend.c64 int ossl_rsa_fromdata(RSA *rsa, const OSSL_PARAM params[], int include_private) in ossl_rsa_fromdata()
259 int ossl_rsa_todata(RSA *rsa, OSSL_PARAM_BLD *bld, OSSL_PARAM params[], in DEFINE_SPECIAL_STACK_OF_CONST()
455 int ossl_rsa_is_foreign(const RSA *rsa) in ossl_rsa_is_foreign()
471 RSA *ossl_rsa_dup(const RSA *rsa, int selection) in ossl_rsa_dup()
473 RSA *dupkey = NULL; in ossl_rsa_dup()
588 static int ossl_rsa_sync_to_pss_params_30(RSA *rsa) in ossl_rsa_sync_to_pss_params_30()
656 int ossl_rsa_param_decode(RSA *rsa, const X509_ALGOR *alg) in ossl_rsa_param_decode()
682 RSA *ossl_rsa_key_from_pkcs8(const PKCS8_PRIV_KEY_INFO *p8inf, in ossl_rsa_key_from_pkcs8()
686 RSA *rsa; in ossl_rsa_key_from_pkcs8()
A Drsa_pss.c31 int RSA_verify_PKCS1_PSS(RSA *rsa, const unsigned char *mHash, in RSA_verify_PKCS1_PSS()
38 int RSA_verify_PKCS1_PSS_mgf1(RSA *rsa, const unsigned char *mHash, in RSA_verify_PKCS1_PSS_mgf1()
45 int ossl_rsa_verify_PKCS1_PSS_mgf1(RSA *rsa, const unsigned char *mHash, in ossl_rsa_verify_PKCS1_PSS_mgf1()
158 int RSA_padding_add_PKCS1_PSS(RSA *rsa, unsigned char *EM, in RSA_padding_add_PKCS1_PSS()
165 int RSA_padding_add_PKCS1_PSS_mgf1(RSA *rsa, unsigned char *EM, in RSA_padding_add_PKCS1_PSS_mgf1()
173 int ossl_rsa_padding_add_PKCS1_PSS_mgf1(RSA *rsa, unsigned char *EM, in ossl_rsa_padding_add_PKCS1_PSS_mgf1()
A Drsa_depr.c29 RSA *RSA_generate_key(int bits, unsigned long e_value, in RSA_generate_key()
34 RSA *rsa = RSA_new(); in RSA_generate_key()
A Drsa_gen.c30 static int rsa_keygen_pairwise_test(RSA *rsa, OSSL_CALLBACK *cb, void *cbarg);
31 static int rsa_keygen(OSSL_LIB_CTX *libctx, RSA *rsa, int bits, int primes,
41 int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb) in RSA_generate_key_ex()
50 int RSA_generate_multi_prime_key(RSA *rsa, int bits, int primes, in RSA_generate_multi_prime_key()
82 int ossl_rsa_multiprime_derive(RSA *rsa, int bits, int primes, in DEFINE_STACK_OF()
263 static int rsa_multiprime_keygen(RSA *rsa, int bits, int primes, in rsa_multiprime_keygen()
609 static int rsa_keygen(OSSL_LIB_CTX *libctx, RSA *rsa, int bits, int primes, in rsa_keygen()
682 static int rsa_keygen_pairwise_test(RSA *rsa, OSSL_CALLBACK *cb, void *cbarg) in rsa_keygen_pairwise_test()
739 int ossl_rsa_key_pairwise_test(RSA *rsa) in ossl_rsa_key_pairwise_test()
A Drsa_saos.c26 RSA *rsa) in RSA_sign_ASN1_OCTET_STRING()
60 unsigned int siglen, RSA *rsa) in RSA_verify_ASN1_OCTET_STRING()
A Drsa_sp800_56b_check.c24 int ossl_rsa_check_crt_components(const RSA *rsa, BN_CTX *ctx) in ossl_rsa_check_crt_components()
175 int ossl_rsa_check_private_exponent(const RSA *rsa, int nbits, BN_CTX *ctx) in ossl_rsa_check_private_exponent()
281 int ossl_rsa_sp800_56b_check_public(const RSA *rsa)
356 int ossl_rsa_sp800_56b_check_private(const RSA *rsa)
374 int ossl_rsa_sp800_56b_check_keypair(const RSA *rsa, const BIGNUM *efixed,
A Drsa_ameth.c32 const RSA *rsa = pkey->pkey.rsa; in rsa_param_encode()
81 RSA *rsa = NULL; in rsa_pub_decode()
132 RSA *rsa; in old_rsa_priv_decode()
176 RSA *rsa = ossl_rsa_key_from_pkcs8(p8, NULL, NULL); in rsa_priv_decode()
302 const RSA *x = pkey->pkey.rsa; in pkey_rsa_print()
798 RSA *rsa = from->pkey.rsa; in rsa_int_export_to()
854 RSA *rsa = ossl_rsa_new_with_ctx(pctx->libctx); in rsa_int_import_from()
949 RSA *rsa = from->pkey.rsa; in rsa_pkey_copy()
950 RSA *dupkey = NULL; in rsa_pkey_copy()
A Drsa_sp800_56b_gen.c55 int ossl_rsa_fips186_4_gen_prob_primes(RSA *rsa, RSA_ACVP_TEST *test, in ossl_rsa_fips186_4_gen_prob_primes()
237 int ossl_rsa_sp800_56b_derive_params_from_pq(RSA *rsa, int nbits, in ossl_rsa_sp800_56b_derive_params_from_pq()
365 int ossl_rsa_sp800_56b_generate_key(RSA *rsa, int nbits, const BIGNUM *efixed, in ossl_rsa_sp800_56b_generate_key()
437 int ossl_rsa_sp800_56b_pairwise_test(RSA *rsa, BN_CTX *ctx) in ossl_rsa_sp800_56b_pairwise_test()
A Drsa_sign.c288 unsigned char *sigret, unsigned int *siglen, RSA *rsa) in RSA_sign()
347 const unsigned char *sigbuf, size_t siglen, RSA *rsa) in ossl_rsa_verify()
462 const unsigned char *sigbuf, unsigned int siglen, RSA *rsa) in RSA_verify()
A Drsa_acvp_test_params.c79 int ossl_rsa_acvp_test_set_params(RSA *r, const OSSL_PARAM params[]) in ossl_rsa_acvp_test_set_params()
125 int ossl_rsa_acvp_test_get_params(RSA *r, OSSL_PARAM params[]) in ossl_rsa_acvp_test_get_params()
/crypto/pem/
A Dpem_all.c28 static RSA *pkey_get_rsa(EVP_PKEY *key, RSA **rsa);
53 static RSA *pkey_get_rsa(EVP_PKEY *key, RSA **rsa) in IMPLEMENT_PEM_rw()
55 RSA *rtmp; in IMPLEMENT_PEM_rw()
69 RSA *PEM_read_bio_RSAPrivateKey(BIO *bp, RSA **rsa, pem_password_cb *cb, in PEM_read_bio_RSAPrivateKey()
79 RSA *PEM_read_RSAPrivateKey(FILE *fp, RSA **rsa, pem_password_cb *cb, void *u) in PEM_read_RSAPrivateKey()
88 IMPLEMENT_PEM_write_cb(RSAPrivateKey, RSA, PEM_STRING_RSA, RSAPrivateKey) in IMPLEMENT_PEM_write_cb() argument
89 IMPLEMENT_PEM_rw(RSAPublicKey, RSA, PEM_STRING_RSA_PUBLIC, RSAPublicKey) in IMPLEMENT_PEM_write_cb()
90 IMPLEMENT_PEM_rw(RSA_PUBKEY, RSA, PEM_STRING_PUBLIC, RSA_PUBKEY) in IMPLEMENT_PEM_write_cb()
A Dpvkfmt.c448 RSA *ossl_b2i_RSA_after_header(const unsigned char **in, unsigned int bitlen, in ossl_b2i_RSA_after_header()
454 RSA *rsa = NULL; in ossl_b2i_RSA_after_header()
559 static int check_bitlen_rsa(const RSA *rsa, int ispub, unsigned int *magic);
560 static void write_rsa(unsigned char **out, const RSA *rsa, int ispub);
636 static int check_bitlen_rsa(const RSA *rsa, int ispub, unsigned int *pmagic) in check_bitlen_rsa()
676 static void write_rsa(unsigned char **out, const RSA *rsa, int ispub) in write_rsa()
999 RSA *b2i_RSA_PVK_bio_ex(BIO *in, pem_password_cb *cb, void *u, in b2i_RSA_PVK_bio_ex()
1008 RSA *b2i_RSA_PVK_bio(BIO *in, pem_password_cb *cb, void *u) in b2i_RSA_PVK_bio()
/crypto/evp/
A Dp_legacy.c25 int EVP_PKEY_set1_RSA(EVP_PKEY *pkey, RSA *key) in EVP_PKEY_set1_RSA()
40 RSA *evp_pkey_get0_RSA_int(const EVP_PKEY *pkey) in evp_pkey_get0_RSA_int()
49 const RSA *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey) in EVP_PKEY_get0_RSA()
54 RSA *EVP_PKEY_get1_RSA(EVP_PKEY *pkey) in EVP_PKEY_get1_RSA()
56 RSA *ret = evp_pkey_get0_RSA_int(pkey); in EVP_PKEY_get1_RSA()
A Dp_dec.c25 RSA *rsa = NULL; in EVP_PKEY_decrypt_old()
/crypto/x509/
A Dx_all.c339 RSA *d2i_RSAPrivateKey_fp(FILE *fp, RSA **rsa) in d2i_RSAPrivateKey_fp()
344 int i2d_RSAPrivateKey_fp(FILE *fp, const RSA *rsa) in i2d_RSAPrivateKey_fp()
349 RSA *d2i_RSAPublicKey_fp(FILE *fp, RSA **rsa) in d2i_RSAPublicKey_fp()
354 RSA *d2i_RSA_PUBKEY_fp(FILE *fp, RSA **rsa) in d2i_RSA_PUBKEY_fp()
361 int i2d_RSAPublicKey_fp(FILE *fp, const RSA *rsa) in i2d_RSAPublicKey_fp()
366 int i2d_RSA_PUBKEY_fp(FILE *fp, const RSA *rsa) in i2d_RSA_PUBKEY_fp()
372 RSA *d2i_RSAPrivateKey_bio(BIO *bp, RSA **rsa) in d2i_RSAPrivateKey_bio()
382 RSA *d2i_RSAPublicKey_bio(BIO *bp, RSA **rsa) in d2i_RSAPublicKey_bio()
387 RSA *d2i_RSA_PUBKEY_bio(BIO *bp, RSA **rsa) in d2i_RSA_PUBKEY_bio()
392 int i2d_RSAPublicKey_bio(BIO *bp, const RSA *rsa) in i2d_RSAPublicKey_bio()
[all …]
/crypto/engine/
A DREADME.md60 Already there is a problem with the way ENGINE supports RSA, DSA, etc whereby
65 RSA functions (eg. "RSA_free(RSA_new());") will result in large quantities of
72 hooking to ENGINE works from RSA, DSA, DH, RAND, as well as adding new hooking
76 work prior to ENGINE :-). Ie. RSA now has a "RSA_METHOD" pointer again - this
77 was previously replaced by an "ENGINE" pointer and all RSA code that required
83 have our RSA structure pointing its RSA_METHOD pointer to the software
127 class-specific ENGINE code for digests, RSA, etc nor will it bleed over into
128 other APIs, such as the RSA/DSA/etc library code.
158 RSA, DSA, DH, and RAND all have their own ENGINE_TABLE code as well, and the
165 represents ENGINEs that implement the single "type" of RSA there is.
[all …]

Completed in 59 milliseconds

12