Lines Matching refs:r
315 uint8_t n, r=0; in isZero() local
317 if (A[n] == 0) r++; in isZero()
319 return r==8; in isZero()
534 int ecc_ecdsa_sign(const uint32_t *d, const uint32_t *e, const uint32_t *k, uint32_t *r, uint32_t *… in ecc_ecdsa_sign() argument
544 ecc_ec_mult(ecc_g_point_x, ecc_g_point_y, k, r, tmp1); in ecc_ecdsa_sign()
547 fieldModO(r, r, 8); in ecc_ecdsa_sign()
550 if (isZero(r)) in ecc_ecdsa_sign()
555 fieldMult(r, d, tmp1, arrayLength); in ecc_ecdsa_sign()
593 int ecc_ecdsa_validate(const uint32_t *x, const uint32_t *y, const uint32_t *e, const uint32_t *r, … in ecc_ecdsa_validate() argument
614 fieldMult(r, w, tmp, arrayLength); in ecc_ecdsa_validate()
628 return isSame(tmp3_x, r, arrayLength) ? 0 : -1; in ecc_ecdsa_validate()