Searched refs:tmpG (Results 1 - 3 of 3) sorted by relevance

/barrelfish-2018-10-04/lib/tommath/
H A Dbn_mp_exptmod.c36 mp_int tmpG, tmpX; local
40 if ((err = mp_init(&tmpG)) != MP_OKAY) {
43 if ((err = mp_invmod(G, P, &tmpG)) != MP_OKAY) {
44 mp_clear(&tmpG);
50 mp_clear(&tmpG);
54 mp_clear_multi(&tmpG, &tmpX, NULL);
59 err = mp_exptmod(&tmpG, &tmpX, P, Y);
60 mp_clear_multi(&tmpG, &tmpX, NULL);
H A Dtommath.tex5020 negative the algorithm tries to perform a modular exponentiation with the modular inverse of the base $G$. The temporary variable $tmpG$ is assigned
/barrelfish-2018-10-04/lib/tommath/pre_gen/
H A Dmpi.c2542 mp_int tmpG, tmpX; local
2546 if ((err = mp_init(&tmpG)) != MP_OKAY) {
2549 if ((err = mp_invmod(G, P, &tmpG)) != MP_OKAY) {
2550 mp_clear(&tmpG);
2556 mp_clear(&tmpG);
2560 mp_clear_multi(&tmpG, &tmpX, NULL);
2565 err = mp_exptmod(&tmpG, &tmpX, P, Y);
2566 mp_clear_multi(&tmpG, &tmpX, NULL);

Completed in 113 milliseconds