Lines Matching refs:sig
69 const ECDSA_SIG *sig, EC_KEY *eckey);
354 const ECDSA_SIG *sig, EC_KEY *eckey)
365 (pub_key = EC_KEY_get0_public_key(eckey)) == NULL || sig == NULL)
395 if (BN_is_zero(sig->r) || BN_is_negative(sig->r) ||
396 BN_ucmp(sig->r, order) >= 0 || BN_is_zero(sig->s) ||
397 BN_is_negative(sig->s) || BN_ucmp(sig->s, order) >= 0)
404 if (!BN_mod_inverse(u2, sig->s, order, ctx))
434 if (!BN_mod_mul(u2, sig->r, u2, order, ctx))
475 /* if the signature is correct u1 is equal to sig->r */
476 ret = (BN_ucmp(u1, sig->r) == 0);