Home
last modified time | relevance | path

Searched refs:mp_sub_d (Results 1 – 25 of 28) sorted by relevance

12

/external/dropbear/libtomcrypt/src/pk/rsa/
Drsa_make_key.c59 … if ((err = mp_sub_d( p, 1, tmp1)) != CRYPT_OK) { goto errkey; } /* tmp1 = p-1 */ in rsa_make_key()
66 … if ((err = mp_sub_d( q, 1, tmp1)) != CRYPT_OK) { goto errkey; } /* tmp1 = q-1 */ in rsa_make_key()
71 …if ((err = mp_sub_d( p, 1, tmp2)) != CRYPT_OK) { goto errkey; } /* tmp2 = p-1 */ in rsa_make_key()
86 …if ((err = mp_sub_d( p, 1, tmp1)) != CRYPT_OK) { goto errkey; } /* tmp1 = q-1… in rsa_make_key()
87 …if ((err = mp_sub_d( q, 1, tmp2)) != CRYPT_OK) { goto errkey; } /* tmp2 = p-1… in rsa_make_key()
/external/dropbear/libtomcrypt/src/pk/katja/
Dkatja_make_key.c53 if ((err = mp_sub_d(q, 1, tmp1)) != CRYPT_OK) { goto done; } in katja_make_key()
72 …if ((err = mp_sub_d( p, 1, tmp1)) != CRYPT_OK) { goto error2; } /* tmp1 = q-1… in katja_make_key()
73 …if ((err = mp_sub_d( q, 1, tmp2)) != CRYPT_OK) { goto error2; } /* tmp2 = p-1… in katja_make_key()
/external/dropbear/libtommath/etc/
D2kprime.c27 mp_sub_d(&q, 4, &q); in main()
48 mp_sub_d(&q, 1, &p); in main()
Dmersenne.c28 if ((res = mp_sub_d (&n, 1, &n)) != MP_OKAY) { in is_mersenne()
41 if ((res = mp_sub_d (&u, 2, &u)) != MP_OKAY) { in is_mersenne()
Ddrprime.c37 mp_sub_d(&a, 1, &b); in main()
Dpprime.c342 mp_sub_d (&n, 1, q); in pprime()
/external/dropbear/libtommath/
Dbn_mp_prime_next_prime.c84 if ((err = mp_sub_d(a, (a->dp[0] & 3) + 1, a)) != MP_OKAY) { return err; }; in mp_prime_next_prime()
89 if ((err = mp_sub_d(a, 1, a)) != MP_OKAY) { in mp_prime_next_prime()
Dbn_mp_sub_d.c20 mp_sub_d (mp_int * a, mp_digit b, mp_int * c) in mp_sub_d() function
Dbn_mp_prime_miller_rabin.c42 if ((err = mp_sub_d (&n1, 1, &n1)) != MP_OKAY) { in mp_prime_miller_rabin()
Dbn_mp_add_d.c38 res = mp_sub_d(a, b, c); in mp_add_d()
Dbn_mp_prime_random_ex.c100 if ((err = mp_sub_d(a, 1, a)) != MP_OKAY) { goto error; } in mp_prime_random_ex()
Dbn_mp_n_root.c104 if ((res = mp_sub_d (&t1, 1, &t1)) != MP_OKAY) { in mp_n_root()
Dtommath.h337 int mp_sub_d(mp_int *a, mp_digit b, mp_int *c);
/external/dropbear/libtommath/demo/
Dtiming.c251 mp_sub_d(&a, 1, &c); in main()
263 mp_sub_d(&a, 1, &e); in main()
Ddemo.c211 mp_sub_d(&a, 1, &a); in main()
258 mp_sub_d(&a, 2, &a); /* a = 2**cnt - 2 */ in main()
724 mp_sub_d(&a, ix, &c); in main()
/external/dropbear/libtomcrypt/src/pk/dsa/
Ddsa_verify_key.c57 if ((err = mp_sub_d(key->p, 1, tmp)) != CRYPT_OK) { goto error; } in dsa_verify_key()
/external/dropbear/
Dgenrsa.c120 if (mp_sub_d(prime, 1, primeminus) != MP_OKAY) { in getrsaprime()
Dgendss.c157 if (mp_sub_d(key->p, 1, &val) != MP_OKAY) { in getg()
Dcommon-kex.c493 if (mp_sub_d(&dh_p, 1, dh_priv) != MP_OKAY) { in gen_kexdh_vals()
Dkeyimport.c780 if (mp_sub_d(key->rsakey->p, 1, &tmpval) != MP_OKAY) { in openssh_write()
790 if (mp_sub_d(key->rsakey->q, 1, &tmpval) != MP_OKAY) { in openssh_write()
/external/dropbear/libtommath/mtest/
Dmtest.c294 mp_sub_d(&a, tmp, &b); in main()
Dmpi.h108 mp_err mp_sub_d(mp_int *a, mp_digit d, mp_int *b);
/external/dropbear/libtomcrypt/src/headers/
Dtomcrypt_math.h473 #define mp_sub_d(a, b, c) ltc_mp.subi(a, b, c) macro
/external/dropbear/libtomcrypt/src/math/
Dltm_desc.c235 return mpi_to_ltc_error(mp_sub_d(a, b, c)); in subi()
/external/dropbear/libtommath/pre_gen/
Dmpi.c905 res = mp_sub_d(a, b, c); in mp_add_d()
5391 if ((res = mp_sub_d (&t1, 1, &t1)) != MP_OKAY) { in mp_n_root()
5770 if ((err = mp_sub_d (&n1, 1, &n1)) != MP_OKAY) { in mp_prime_miller_rabin()
5919 if ((err = mp_sub_d(a, (a->dp[0] & 3) + 1, a)) != MP_OKAY) { return err; }; in mp_prime_next_prime()
5924 if ((err = mp_sub_d(a, 1, a)) != MP_OKAY) { in mp_prime_next_prime()
6165 if ((err = mp_sub_d(a, 1, a)) != MP_OKAY) { goto error; } in mp_prime_random_ex()
7538 mp_sub_d (mp_int * a, mp_digit b, mp_int * c) in mp_sub_d() function

12