Home
last modified time | relevance | path

Searched refs:tmp (Results 1 – 3 of 3) sorted by relevance

/tinycrypt-3.7.0/lib/source/
Decc.c225 uECC_word_t tmp[NUM_ECC_WORDS]; in uECC_vli_cmp() local
226 uECC_word_t neg = !!uECC_vli_sub(tmp, left, right, num_words); in uECC_vli_cmp()
227 uECC_word_t equal = uECC_vli_isZero(tmp, num_words); in uECC_vli_cmp()
324 uECC_word_t tmp[2 * NUM_ECC_WORDS]; in uECC_vli_mmod() local
325 uECC_word_t *v[2] = {tmp, product}; in uECC_vli_mmod()
523 unsigned int tmp[NUM_ECC_WORDS]; in vli_mmod_fast_secp256r1() local
530 tmp[0] = tmp[1] = tmp[2] = 0; in vli_mmod_fast_secp256r1()
531 tmp[3] = product[11]; in vli_mmod_fast_secp256r1()
532 tmp[4] = product[12]; in vli_mmod_fast_secp256r1()
533 tmp[5] = product[13]; in vli_mmod_fast_secp256r1()
[all …]
Decc_dsa.c104 uECC_word_t tmp[NUM_ECC_WORDS]; in uECC_sign_with_k() local
106 uECC_word_t *k2[2] = {tmp, s}; in uECC_sign_with_k()
119 carry = regularize_k(k, tmp, s, curve); in uECC_sign_with_k()
128 uECC_vli_clear(tmp, num_n_words); in uECC_sign_with_k()
129 tmp[0] = 1; in uECC_sign_with_k()
131 else if (!uECC_generate_random_int(tmp, curve->n, num_n_words)) { in uECC_sign_with_k()
137 uECC_vli_modMult(k, k, tmp, curve->n, num_n_words); /* k' = rand * k */ in uECC_sign_with_k()
139 uECC_vli_modMult(k, k, tmp, curve->n, num_n_words); /* k = 1 / k */ in uECC_sign_with_k()
144 uECC_vli_bytesToNative(tmp, private_key, BITS_TO_BYTES(curve->num_n_bits)); in uECC_sign_with_k()
148 uECC_vli_modMult(s, tmp, s, curve->n, num_n_words); /* s = r*d */ in uECC_sign_with_k()
[all …]
Decc_dh.c152 uECC_word_t tmp[NUM_ECC_WORDS]; in uECC_shared_secret() local
153 uECC_word_t *p2[2] = {_private, tmp}; in uECC_shared_secret()
173 carry = regularize_k(_private, _private, tmp, curve); in uECC_shared_secret()
194 _set_secure(tmp, 0, sizeof(tmp)); in uECC_shared_secret()