Lines Matching refs:RSA
28 /* The types RSA and RSA_METHOD are defined in ossl_typ.h */
71 * RSA implementation now uses blinding by
85 * new with 0.9.7h; the built-in RSA
198 RSA *RSA_new(void);
199 RSA *RSA_new_method(ENGINE *engine);
200 int RSA_bits(const RSA *rsa);
201 int RSA_size(const RSA *rsa);
202 int RSA_security_bits(const RSA *rsa);
204 int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d);
205 int RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q);
206 int RSA_set0_crt_params(RSA *r,BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp);
207 int RSA_set0_multi_prime_params(RSA *r, BIGNUM *primes[], BIGNUM *exps[],
209 void RSA_get0_key(const RSA *r,
211 void RSA_get0_factors(const RSA *r, const BIGNUM **p, const BIGNUM **q);
212 int RSA_get_multi_prime_extra_count(const RSA *r);
213 int RSA_get0_multi_prime_factors(const RSA *r, const BIGNUM *primes[]);
214 void RSA_get0_crt_params(const RSA *r,
217 int RSA_get0_multi_prime_crt_params(const RSA *r, const BIGNUM *exps[],
219 const BIGNUM *RSA_get0_n(const RSA *d);
220 const BIGNUM *RSA_get0_e(const RSA *d);
221 const BIGNUM *RSA_get0_d(const RSA *d);
222 const BIGNUM *RSA_get0_p(const RSA *d);
223 const BIGNUM *RSA_get0_q(const RSA *d);
224 const BIGNUM *RSA_get0_dmp1(const RSA *r);
225 const BIGNUM *RSA_get0_dmq1(const RSA *r);
226 const BIGNUM *RSA_get0_iqmp(const RSA *r);
227 const RSA_PSS_PARAMS *RSA_get0_pss_params(const RSA *r);
228 void RSA_clear_flags(RSA *r, int flags);
229 int RSA_test_flags(const RSA *r, int flags);
230 void RSA_set_flags(RSA *r, int flags);
231 int RSA_get_version(RSA *r);
232 ENGINE *RSA_get0_engine(const RSA *r);
235 DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void
240 int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e, BN_GENCB *cb);
242 int RSA_generate_multi_prime_key(RSA *rsa, int bits, int primes,
245 int RSA_X931_derive_ex(RSA *rsa, BIGNUM *p1, BIGNUM *p2, BIGNUM *q1,
249 int RSA_X931_generate_key_ex(RSA *rsa, int bits, const BIGNUM *e,
252 int RSA_check_key(const RSA *);
253 int RSA_check_key_ex(const RSA *, BN_GENCB *cb);
256 unsigned char *to, RSA *rsa, int padding);
258 unsigned char *to, RSA *rsa, int padding);
260 unsigned char *to, RSA *rsa, int padding);
262 unsigned char *to, RSA *rsa, int padding);
263 void RSA_free(RSA *r);
264 /* "up" the RSA object's reference count */
265 int RSA_up_ref(RSA *r);
267 int RSA_flags(const RSA *r);
272 const RSA_METHOD *RSA_get_method(const RSA *rsa);
273 int RSA_set_method(RSA *rsa, const RSA_METHOD *meth);
275 /* these are the actual RSA functions */
280 DECLARE_ASN1_ENCODE_FUNCTIONS_const(RSA, RSAPublicKey)
281 DECLARE_ASN1_ENCODE_FUNCTIONS_const(RSA, RSAPrivateKey)
305 int RSA_print_fp(FILE *fp, const RSA *r, int offset);
308 int RSA_print(BIO *bp, const RSA *r, int offset);
312 * PKCS#1 padded RSA encryption
315 unsigned char *sigret, unsigned int *siglen, RSA *rsa);
317 const unsigned char *sigbuf, unsigned int siglen, RSA *rsa);
321 * PKCS#1 padded RSA encryption
326 RSA *rsa);
329 unsigned int siglen, RSA *rsa);
331 int RSA_blinding_on(RSA *rsa, BN_CTX *ctx);
332 void RSA_blinding_off(RSA *rsa);
333 BN_BLINDING *RSA_setup_blinding(RSA *rsa, BN_CTX *ctx);
376 int RSA_verify_PKCS1_PSS(RSA *rsa, const unsigned char *mHash,
379 int RSA_padding_add_PKCS1_PSS(RSA *rsa, unsigned char *EM,
383 int RSA_verify_PKCS1_PSS_mgf1(RSA *rsa, const unsigned char *mHash,
387 int RSA_padding_add_PKCS1_PSS_mgf1(RSA *rsa, unsigned char *EM,
394 int RSA_set_ex_data(RSA *r, int idx, void *arg);
395 void *RSA_get_ex_data(const RSA *r, int idx);
397 RSA *RSAPublicKey_dup(RSA *rsa);
398 RSA *RSAPrivateKey_dup(RSA *rsa);
401 * If this flag is set the RSA method is FIPS compliant and can be used in
433 unsigned char *to, RSA *rsa, int padding);
434 int RSA_meth_set_pub_enc(RSA_METHOD *rsa,
436 unsigned char *to, RSA *rsa,
440 unsigned char *to, RSA *rsa, int padding);
441 int RSA_meth_set_pub_dec(RSA_METHOD *rsa,
443 unsigned char *to, RSA *rsa,
447 unsigned char *to, RSA *rsa, int padding);
448 int RSA_meth_set_priv_enc(RSA_METHOD *rsa,
450 unsigned char *to, RSA *rsa,
454 unsigned char *to, RSA *rsa, int padding);
455 int RSA_meth_set_priv_dec(RSA_METHOD *rsa,
457 unsigned char *to, RSA *rsa,
460 (BIGNUM *r0, const BIGNUM *i, RSA *rsa, BN_CTX *ctx);
461 int RSA_meth_set_mod_exp(RSA_METHOD *rsa,
462 int (*mod_exp) (BIGNUM *r0, const BIGNUM *i, RSA *rsa,
467 int RSA_meth_set_bn_mod_exp(RSA_METHOD *rsa,
474 int (*RSA_meth_get_init(const RSA_METHOD *meth)) (RSA *rsa);
475 int RSA_meth_set_init(RSA_METHOD *rsa, int (*init) (RSA *rsa));
476 int (*RSA_meth_get_finish(const RSA_METHOD *meth)) (RSA *rsa);
477 int RSA_meth_set_finish(RSA_METHOD *rsa, int (*finish) (RSA *rsa));
482 const RSA *rsa);
483 int RSA_meth_set_sign(RSA_METHOD *rsa,
487 const RSA *rsa));
491 unsigned int siglen, const RSA *rsa);
492 int RSA_meth_set_verify(RSA_METHOD *rsa,
496 unsigned int siglen, const RSA *rsa));
498 (RSA *rsa, int bits, BIGNUM *e, BN_GENCB *cb);
499 int RSA_meth_set_keygen(RSA_METHOD *rsa,
500 int (*keygen) (RSA *rsa, int bits, BIGNUM *e,
503 (RSA *rsa, int bits, int primes, BIGNUM *e, BN_GENCB *cb);
505 int (*keygen) (RSA *rsa, int bits,