Lines Matching refs:temp
57 } *temp = tmp;
62 assert ( sizeof ( *temp ) == bigint_mod_multiply_tmp_len ( modulus ) );
65 bigint_multiply ( multiplicand, multiplier, &temp->result );
68 bigint_grow ( modulus, &temp->modulus );
69 rotation = ( bigint_max_set_bit ( &temp->result ) -
70 bigint_max_set_bit ( &temp->modulus ) );
72 bigint_rol ( &temp->modulus );
76 if ( bigint_is_geq ( &temp->result, &temp->modulus ) )
77 bigint_subtract ( &temp->modulus, &temp->result );
78 bigint_ror ( &temp->modulus );
82 bigint_shrink ( &temp->result, result );
118 } *temp = tmp;
121 memcpy ( &temp->base, base, sizeof ( temp->base ) );
122 memcpy ( &temp->exponent, exponent, sizeof ( temp->exponent ) );
125 while ( ! bigint_is_zero ( &temp->exponent ) ) {
126 if ( bigint_bit_is_set ( &temp->exponent, 0 ) ) {
127 bigint_mod_multiply ( result, &temp->base, modulus,
128 result, temp->mod_multiply );
130 bigint_ror ( &temp->exponent );
131 bigint_mod_multiply ( &temp->base, &temp->base, modulus,
132 &temp->base, temp->mod_multiply );