Lines Matching refs:meth
22 RSA_METHOD *meth = OPENSSL_zalloc(sizeof(*meth)); in RSA_meth_new() local
24 if (meth != NULL) { in RSA_meth_new()
25 meth->flags = flags; in RSA_meth_new()
27 meth->name = OPENSSL_strdup(name); in RSA_meth_new()
28 if (meth->name != NULL) in RSA_meth_new()
29 return meth; in RSA_meth_new()
31 OPENSSL_free(meth); in RSA_meth_new()
37 void RSA_meth_free(RSA_METHOD *meth) in RSA_meth_free() argument
39 if (meth != NULL) { in RSA_meth_free()
40 OPENSSL_free(meth->name); in RSA_meth_free()
41 OPENSSL_free(meth); in RSA_meth_free()
45 RSA_METHOD *RSA_meth_dup(const RSA_METHOD *meth) in RSA_meth_dup() argument
50 memcpy(ret, meth, sizeof(*meth)); in RSA_meth_dup()
52 ret->name = OPENSSL_strdup(meth->name); in RSA_meth_dup()
62 const char *RSA_meth_get0_name(const RSA_METHOD *meth) in RSA_meth_get0_name() argument
64 return meth->name; in RSA_meth_get0_name()
67 int RSA_meth_set1_name(RSA_METHOD *meth, const char *name) in RSA_meth_set1_name() argument
74 OPENSSL_free(meth->name); in RSA_meth_set1_name()
75 meth->name = tmpname; in RSA_meth_set1_name()
80 int RSA_meth_get_flags(const RSA_METHOD *meth) in RSA_meth_get_flags() argument
82 return meth->flags; in RSA_meth_get_flags()
85 int RSA_meth_set_flags(RSA_METHOD *meth, int flags) in RSA_meth_set_flags() argument
87 meth->flags = flags; in RSA_meth_set_flags()
91 void *RSA_meth_get0_app_data(const RSA_METHOD *meth) in RSA_meth_get0_app_data() argument
93 return meth->app_data; in RSA_meth_get0_app_data()
96 int RSA_meth_set0_app_data(RSA_METHOD *meth, void *app_data) in RSA_meth_set0_app_data() argument
98 meth->app_data = app_data; in RSA_meth_set0_app_data()
102 int (*RSA_meth_get_pub_enc(const RSA_METHOD *meth)) in RSA_meth_get_pub_enc() argument
106 return meth->rsa_pub_enc; in RSA_meth_get_pub_enc()
109 int RSA_meth_set_pub_enc(RSA_METHOD *meth, in RSA_meth_set_pub_enc() argument
114 meth->rsa_pub_enc = pub_enc; in RSA_meth_set_pub_enc()
118 int (*RSA_meth_get_pub_dec(const RSA_METHOD *meth)) in RSA_meth_get_pub_dec() argument
122 return meth->rsa_pub_dec; in RSA_meth_get_pub_dec()
125 int RSA_meth_set_pub_dec(RSA_METHOD *meth, in RSA_meth_set_pub_dec() argument
130 meth->rsa_pub_dec = pub_dec; in RSA_meth_set_pub_dec()
134 int (*RSA_meth_get_priv_enc(const RSA_METHOD *meth)) in RSA_meth_get_priv_enc() argument
138 return meth->rsa_priv_enc; in RSA_meth_get_priv_enc()
141 int RSA_meth_set_priv_enc(RSA_METHOD *meth, in RSA_meth_set_priv_enc() argument
146 meth->rsa_priv_enc = priv_enc; in RSA_meth_set_priv_enc()
150 int (*RSA_meth_get_priv_dec(const RSA_METHOD *meth)) in RSA_meth_get_priv_dec() argument
154 return meth->rsa_priv_dec; in RSA_meth_get_priv_dec()
157 int RSA_meth_set_priv_dec(RSA_METHOD *meth, in RSA_meth_set_priv_dec() argument
162 meth->rsa_priv_dec = priv_dec; in RSA_meth_set_priv_dec()
167 int (*RSA_meth_get_mod_exp(const RSA_METHOD *meth)) in RSA_meth_get_mod_exp() argument
170 return meth->rsa_mod_exp; in RSA_meth_get_mod_exp()
173 int RSA_meth_set_mod_exp(RSA_METHOD *meth, in RSA_meth_set_mod_exp() argument
177 meth->rsa_mod_exp = mod_exp; in RSA_meth_set_mod_exp()
182 int (*RSA_meth_get_bn_mod_exp(const RSA_METHOD *meth)) in RSA_meth_get_bn_mod_exp() argument
186 return meth->bn_mod_exp; in RSA_meth_get_bn_mod_exp()
189 int RSA_meth_set_bn_mod_exp(RSA_METHOD *meth, in RSA_meth_set_bn_mod_exp() argument
197 meth->bn_mod_exp = bn_mod_exp; in RSA_meth_set_bn_mod_exp()
202 int (*RSA_meth_get_init(const RSA_METHOD *meth)) (RSA *rsa) in RSA_meth_get_init() argument
204 return meth->init; in RSA_meth_get_init()
207 int RSA_meth_set_init(RSA_METHOD *meth, int (*init) (RSA *rsa)) in RSA_meth_set_init() argument
209 meth->init = init; in RSA_meth_set_init()
214 int (*RSA_meth_get_finish(const RSA_METHOD *meth)) (RSA *rsa) in RSA_meth_get_finish() argument
216 return meth->finish; in RSA_meth_get_finish()
219 int RSA_meth_set_finish(RSA_METHOD *meth, int (*finish) (RSA *rsa)) in RSA_meth_set_finish() argument
221 meth->finish = finish; in RSA_meth_set_finish()
225 int (*RSA_meth_get_sign(const RSA_METHOD *meth)) in RSA_meth_get_sign() argument
231 return meth->rsa_sign; in RSA_meth_get_sign()
234 int RSA_meth_set_sign(RSA_METHOD *meth, in RSA_meth_set_sign() argument
240 meth->rsa_sign = sign; in RSA_meth_set_sign()
244 int (*RSA_meth_get_verify(const RSA_METHOD *meth)) in RSA_meth_get_verify() argument
249 return meth->rsa_verify; in RSA_meth_get_verify()
252 int RSA_meth_set_verify(RSA_METHOD *meth, in RSA_meth_set_verify() argument
258 meth->rsa_verify = verify; in RSA_meth_set_verify()
262 int (*RSA_meth_get_keygen(const RSA_METHOD *meth)) in RSA_meth_get_keygen() argument
265 return meth->rsa_keygen; in RSA_meth_get_keygen()
268 int RSA_meth_set_keygen(RSA_METHOD *meth, in RSA_meth_set_keygen() argument
272 meth->rsa_keygen = keygen; in RSA_meth_set_keygen()
276 int (*RSA_meth_get_multi_prime_keygen(const RSA_METHOD *meth)) in RSA_meth_get_multi_prime_keygen() argument
279 return meth->rsa_multi_prime_keygen; in RSA_meth_get_multi_prime_keygen()
282 int RSA_meth_set_multi_prime_keygen(RSA_METHOD *meth, in RSA_meth_set_multi_prime_keygen() argument
287 meth->rsa_multi_prime_keygen = keygen; in RSA_meth_set_multi_prime_keygen()