Home
last modified time | relevance | path

Searched refs:p (Results 1 – 5 of 5) sorted by relevance

/tinycrypt-3.7.0/lib/source/
Decc.c249 uECC_dword_t p = (uECC_dword_t)a * b; in muladd() local
251 r01 += p; in muladd()
252 *r2 += (r01 < p); in muladd()
473 uECC_vli_modAdd(X1, X1, Z1, curve->p, num_words); /* t1 = x1 + z1^2 */ in double_jacobian_default()
474 uECC_vli_modAdd(Z1, Z1, Z1, curve->p, num_words); /* t3 = 2*z1^2 */ in double_jacobian_default()
475 uECC_vli_modSub(Z1, X1, Z1, curve->p, num_words); /* t3 = x1 - z1^2 */ in double_jacobian_default()
478 uECC_vli_modAdd(Z1, X1, X1, curve->p, num_words); /* t3 = 2*(x1^2 - z1^4) */ in double_jacobian_default()
479 uECC_vli_modAdd(X1, X1, Z1, curve->p, num_words); /* t1 = 3*(x1^2 - z1^4) */ in double_jacobian_default()
481 uECC_word_t l_carry = uECC_vli_add(X1, X1, curve->p, num_words); in double_jacobian_default()
490 uECC_vli_modSub(Z1, Z1, t5, curve->p, num_words); /* t3 = B^2 - A */ in double_jacobian_default()
[all …]
Dcbc_mode.c83 const uint8_t *p; in tc_cbc_mode_decrypt() local
103 p = iv; in tc_cbc_mode_decrypt()
110 *out++ = buffer[m++] ^ *p++; in tc_cbc_mode_decrypt()
Decc_dsa.c107 uECC_word_t p[NUM_ECC_WORDS * 2]; in uECC_sign_with_k() local
120 EccPoint_mult(p, curve->G, k2[!carry], 0, num_n_bits + 1, curve); in uECC_sign_with_k()
121 if (uECC_vli_isZero(p, num_words)) { in uECC_sign_with_k()
141 uECC_vli_nativeToBytes(signature, curve->num_bytes, p); /* store r */ in uECC_sign_with_k()
147 uECC_vli_set(s, p, num_words); in uECC_sign_with_k()
248 uECC_vli_modSub(z, sum, tx, curve->p, num_words); /* z = x2 - x1 */ in uECC_verify()
250 uECC_vli_modInv(z, z, curve->p, num_words); /* z = 1/z */ in uECC_verify()
278 uECC_vli_modSub(tz, rx, tx, curve->p, num_words); /* Z = x2 - x1 */ in uECC_verify()
284 uECC_vli_modInv(z, z, curve->p, num_words); /* Z = 1/Z */ in uECC_verify()
Decc_dh.c178 if (!uECC_generate_random_int(p2[carry], curve->p, num_words)) { in uECC_shared_secret()
/tinycrypt-3.7.0/lib/include/tinycrypt/
Decc.h116 uECC_word_t p[NUM_ECC_WORDS]; member