Home
last modified time | relevance | path

Searched refs:carry (Results 1 – 4 of 4) sorted by relevance

/tinycrypt-3.7.0/lib/source/
Decc_dh.c155 uECC_word_t carry; in uECC_shared_secret() local
173 carry = regularize_k(_private, _private, tmp, curve); in uECC_shared_secret()
178 if (!uECC_generate_random_int(p2[carry], curve->p, num_words)) { in uECC_shared_secret()
182 initial_Z = p2[carry]; in uECC_shared_secret()
185 EccPoint_mult(_public, _public, p2[!carry], initial_Z, curve->num_n_bits + 1, in uECC_shared_secret()
Decc.c211 uECC_word_t carry = 0; in uECC_vli_add() local
214 uECC_word_t sum = left[i] + right[i] + carry; in uECC_vli_add()
216 carry = cond_set(val, carry, (sum != left[i])); in uECC_vli_add()
219 return carry; in uECC_vli_add()
235 uECC_word_t carry = 0; in uECC_vli_rshift1() local
240 *vli = (temp >> 1) | carry; in uECC_vli_rshift1()
241 carry = temp << (uECC_WORD_BITS - 1); in uECC_vli_rshift1()
298 uECC_word_t carry = uECC_vli_add(result, left, right, num_words); in uECC_vli_modAdd() local
299 if (carry || uECC_vli_cmp_unsafe(mod, result, num_words) != 1) { in uECC_vli_modAdd()
333 uECC_word_t carry = 0; in uECC_vli_mmod() local
[all …]
Decc_dsa.c72 uECC_word_t carry; in bits2int() local
85 carry = 0; in bits2int()
89 *ptr = (temp >> shift) | carry; in bits2int()
90 carry = temp << (uECC_WORD_BITS - shift); in bits2int()
108 uECC_word_t carry; in uECC_sign_with_k() local
119 carry = regularize_k(k, tmp, s, curve); in uECC_sign_with_k()
120 EccPoint_mult(p, curve->G, k2[!carry], 0, num_n_bits + 1, curve); in uECC_sign_with_k()
Dcmac_mode.c85 uint8_t carry = (in[0] >> 7) ? gf_wrap : 0; in gf_double() local
89 *out-- = (*x << 1) ^ carry; in gf_double()
93 carry = *x-- >> 7; in gf_double()