Lines Matching defs:order
256 BIGNUM *order = NULL;
293 order = BN_new();
294 if (order == NULL || !BN_sub(order, tmp, BN_value_one()))
297 order = BN_dup(tmp);
298 if (order == NULL)
303 if (!BN_priv_rand_range_ex(priv_key, order, 0, ctx))
349 BN_free(order);
476 const BIGNUM *order = NULL;
485 order = eckey->group->order;
486 if (BN_is_zero(order)) {
490 /* 5.6.2.3.3 (Step 4) : pub_key * order is the point at infinity. */
491 if (!EC_POINT_mul(eckey->group, point, NULL, eckey->pub_key, order, ctx)) {
508 * The private key is in the range [1, order-1]
517 || BN_cmp(eckey->priv_key, eckey->group->order) >= 0) {
698 const BIGNUM *order = NULL;
708 * Specifically, to operate in constant time, we need that the group order
712 order = EC_GROUP_get0_order(key->group);
713 if (order == NULL || BN_is_zero(order))
761 * The order of the large prime subgroup of the curve is our choice for
767 * required for the internal representation of the order, and we
769 * might temporarily overflow the order length.
777 fixed_top = bn_get_top(order) + 2;