Lines Matching refs:RSA
62 * apply to all code found in this distribution, be it the RC4, RSA,
109 #include <openssl/rsa.h>
142 OPENSSL_PUT_ERROR(RSA, ERR_R_MALLOC_FAILURE);
195 OPENSSL_PUT_ERROR(RSA, RSA_R_BN_NOT_INITIALIZED);
235 OPENSSL_PUT_ERROR(RSA, RSA_R_BN_NOT_INITIALIZED);
271 OPENSSL_PUT_ERROR(RSA, RSA_R_BN_NOT_INITIALIZED);
333 /* this should almost never happen for good RSA keys */
336 OPENSSL_PUT_ERROR(RSA, RSA_R_TOO_MANY_ITERATIONS);
402 BN_BLINDING *rsa_setup_blinding(RSA *rsa, BN_CTX *in_ctx) {
421 OPENSSL_PUT_ERROR(RSA, ERR_R_MALLOC_FAILURE);
425 if (rsa->e == NULL) {
426 e = rsa_get_public_exp(rsa->d, rsa->p, rsa->q, ctx);
428 OPENSSL_PUT_ERROR(RSA, RSA_R_NO_PUBLIC_EXPONENT);
432 e = rsa->e;
436 BN_with_flags(n, rsa->n, BN_FLG_CONSTTIME);
438 if (rsa->flags & RSA_FLAG_CACHE_PUBLIC) {
439 mont_ctx = BN_MONT_CTX_set_locked(&rsa->mont_n, &rsa->lock, rsa->n, ctx);
445 ret = BN_BLINDING_create_param(NULL, e, n, ctx, rsa->meth->bn_mod_exp,
448 OPENSSL_PUT_ERROR(RSA, ERR_R_BN_LIB);
457 if (rsa->e == NULL) {