Home
last modified time | relevance | path

Searched refs:BN_sub (Results 1 – 25 of 35) sorted by relevance

12

/external/openssl/crypto/bn/
Dbn_mod.c137 return (d->neg ? BN_sub : BN_add)(r, r, d); in BN_nnmod()
161 if (!BN_sub(r, a, b)) return 0; in BN_mod_sub()
170 if (!BN_sub(r, a, b)) return 0; in BN_mod_sub_quick()
226 return BN_sub(r, r, m); in BN_mod_lshift1_quick()
295 if (!BN_sub(r, r, m)) return 0; in BN_mod_lshift_quick()
Dbn_gcd.c164 if (!BN_sub(a,a,b)) goto err; in euclid()
360 if (!BN_sub(M,A,B)) goto err; in BN_mod_inverse()
370 if (!BN_sub(M,A,B)) goto err; in BN_mod_inverse()
375 if (!BN_sub(M,A,T)) goto err; in BN_mod_inverse()
388 if (!BN_sub(M,M,B)) goto err; in BN_mod_inverse()
473 if (!BN_sub(Y,n,Y)) goto err; in BN_mod_inverse()
628 if (!BN_sub(Y,n,Y)) goto err; in BN_mod_inverse_no_branch()
Dbntest.c385 BN_sub(&c,&a,&b); in test_sub()
399 BN_sub(&c,&c,&a); in test_sub()
461 BN_sub(&d,&d,&a); in test_div()
536 BN_sub(&b,&a,&b); in test_div_word()
600 BN_sub(&d,&d,&a); in test_div_recp()
661 BN_sub(&d,&d,&b); in test_mul()
705 BN_sub(&d,&d,&a); in test_sqr()
778 BN_sub(&d,&d,&A); in test_mont()
827 BN_sub(e,e,c); in test_mod()
895 BN_sub(d,d,e); in test_mod_mul()
[all …]
Dbn_rand.c263 if (!BN_sub(r, r, range)) return 0; in bn_rand_range()
265 if (!BN_sub(r, r, range)) return 0; in bn_rand_range()
Dbn_prime.c420 if (!BN_sub(rnd,rnd,t1)) goto err; in probable_prime_dh()
463 if (!BN_sub(q,q,t1)) goto err; in probable_prime_dh_safe()
Dbn_add.c263 int BN_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b) in BN_sub() function
Dbn_sqrt.c224 if (!(p->neg ? BN_add : BN_sub)(y, y, p)) goto end; in BN_mod_sqrt()
/external/chromium_org/third_party/openssl/openssl/crypto/bn/
Dbn_mod.c137 return (d->neg ? BN_sub : BN_add)(r, r, d); in BN_nnmod()
161 if (!BN_sub(r, a, b)) return 0; in BN_mod_sub()
170 if (!BN_sub(r, a, b)) return 0; in BN_mod_sub_quick()
226 return BN_sub(r, r, m); in BN_mod_lshift1_quick()
295 if (!BN_sub(r, r, m)) return 0; in BN_mod_lshift_quick()
Dbn_gcd.c164 if (!BN_sub(a,a,b)) goto err; in euclid()
360 if (!BN_sub(M,A,B)) goto err; in BN_mod_inverse()
370 if (!BN_sub(M,A,B)) goto err; in BN_mod_inverse()
375 if (!BN_sub(M,A,T)) goto err; in BN_mod_inverse()
388 if (!BN_sub(M,M,B)) goto err; in BN_mod_inverse()
473 if (!BN_sub(Y,n,Y)) goto err; in BN_mod_inverse()
628 if (!BN_sub(Y,n,Y)) goto err; in BN_mod_inverse_no_branch()
Dbntest.c385 BN_sub(&c,&a,&b); in test_sub()
399 BN_sub(&c,&c,&a); in test_sub()
461 BN_sub(&d,&d,&a); in test_div()
536 BN_sub(&b,&a,&b); in test_div_word()
600 BN_sub(&d,&d,&a); in test_div_recp()
661 BN_sub(&d,&d,&b); in test_mul()
705 BN_sub(&d,&d,&a); in test_sqr()
778 BN_sub(&d,&d,&A); in test_mont()
827 BN_sub(e,e,c); in test_mod()
895 BN_sub(d,d,e); in test_mod_mul()
[all …]
Dbn_rand.c262 if (!BN_sub(r, r, range)) return 0; in bn_rand_range()
264 if (!BN_sub(r, r, range)) return 0; in bn_rand_range()
Dbn_prime.c420 if (!BN_sub(rnd,rnd,t1)) goto err; in probable_prime_dh()
463 if (!BN_sub(q,q,t1)) goto err; in probable_prime_dh_safe()
Dbn_add.c263 int BN_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b) in BN_sub() function
Dbn_sqrt.c224 if (!(p->neg ? BN_add : BN_sub)(y, y, p)) goto end; in BN_mod_sqrt()
/external/chromium_org/third_party/openssl/openssl/crypto/rsa/
Drsa_chk.c109 r = BN_sub(i, key->p, BN_value_one()); in RSA_check_key()
111 r = BN_sub(j, key->q, BN_value_one()); in RSA_check_key()
134 r = BN_sub(i, key->p, BN_value_one()); in RSA_check_key()
148 r = BN_sub(i, key->q, BN_value_one()); in RSA_check_key()
Drsa_gen.c137 if (!BN_sub(r2,rsa->p,BN_value_one())) goto err; in rsa_builtin_keygen()
162 if (!BN_sub(r2,rsa->q,BN_value_one())) goto err; in rsa_builtin_keygen()
182 if (!BN_sub(r1,rsa->p,BN_value_one())) goto err; /* p-1 */ in rsa_builtin_keygen()
183 if (!BN_sub(r2,rsa->q,BN_value_one())) goto err; /* q-1 */ in rsa_builtin_keygen()
Drsa_crpt.c180 if (!BN_sub(r1, p, BN_value_one())) goto err; in rsa_get_public_exp()
181 if (!BN_sub(r2, q, BN_value_one())) goto err; in rsa_get_public_exp()
Drsa_eay.c461 BN_sub(f, rsa->n, ret); in RSA_eay_private_encrypt()
700 if (!BN_sub(ret, rsa->n, ret)) goto err; in RSA_eay_public_decrypt()
831 if (!BN_sub(r0,r0,m1)) goto err; in RSA_eay_mod_exp()
868 if (!BN_sub(vrfy, vrfy, I)) goto err; in RSA_eay_mod_exp()
/external/openssl/crypto/rsa/
Drsa_chk.c115 r = BN_sub(i, key->p, BN_value_one()); in RSA_check_key()
117 r = BN_sub(j, key->q, BN_value_one()); in RSA_check_key()
140 r = BN_sub(i, key->p, BN_value_one()); in RSA_check_key()
154 r = BN_sub(i, key->q, BN_value_one()); in RSA_check_key()
Drsa_gen.c137 if (!BN_sub(r2,rsa->p,BN_value_one())) goto err; in rsa_builtin_keygen()
162 if (!BN_sub(r2,rsa->q,BN_value_one())) goto err; in rsa_builtin_keygen()
182 if (!BN_sub(r1,rsa->p,BN_value_one())) goto err; /* p-1 */ in rsa_builtin_keygen()
183 if (!BN_sub(r2,rsa->q,BN_value_one())) goto err; /* q-1 */ in rsa_builtin_keygen()
Drsa_crpt.c180 if (!BN_sub(r1, p, BN_value_one())) goto err; in rsa_get_public_exp()
181 if (!BN_sub(r2, q, BN_value_one())) goto err; in rsa_get_public_exp()
Drsa_eay.c461 BN_sub(f, rsa->n, ret); in RSA_eay_private_encrypt()
700 if (!BN_sub(ret, rsa->n, ret)) goto err; in RSA_eay_public_decrypt()
831 if (!BN_sub(r0,r0,m1)) goto err; in RSA_eay_mod_exp()
868 if (!BN_sub(vrfy, vrfy, I)) goto err; in RSA_eay_mod_exp()
/external/chromium_org/third_party/openssl/openssl/crypto/dsa/
Ddsa_gen.c296 if (!BN_sub(r0,c,BN_value_one())) goto err; in dsa_builtin_paramgen()
297 if (!BN_sub(p,X,r0)) goto err; in dsa_builtin_paramgen()
325 if (!BN_sub(test,p,BN_value_one())) goto err; in dsa_builtin_paramgen()
Ddsa_ossl.c181 if (!BN_sub(s,s,dsa->q)) goto err; in dsa_do_sign()
/external/openssl/crypto/dsa/
Ddsa_gen.c296 if (!BN_sub(r0,c,BN_value_one())) goto err; in dsa_builtin_paramgen()
297 if (!BN_sub(p,X,r0)) goto err; in dsa_builtin_paramgen()
325 if (!BN_sub(test,p,BN_value_one())) goto err; in dsa_builtin_paramgen()

12