Searched refs:p (Results 1 – 5 of 5) sorted by relevance
/tinycrypt-3.7.0/lib/source/ |
D | ecc.c | 249 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 …]
|
D | cbc_mode.c | 83 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()
|
D | ecc_dsa.c | 107 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()
|
D | ecc_dh.c | 178 if (!uECC_generate_random_int(p2[carry], curve->p, num_words)) { in uECC_shared_secret()
|
/tinycrypt-3.7.0/lib/include/tinycrypt/ |
D | ecc.h | 116 uECC_word_t p[NUM_ECC_WORDS]; member
|