Lines Matching refs:order
91 mp_int Gx, Gy, order, irreducible, a, b;
146 MP_DIGITS(&order) = 0;
156 CHECK_MPI_OK( mp_init(&order, kmflag) );
179 SECITEM_TO_MPINT( params->order, &order );
184 group = ECGroup_consGFp(&irreducible, &a, &b, &Gx, &Gy, &order, params->cofactor);
192 group = ECGroup_consGF2m(&irreducible, irr_arr, &a, &b, &Gx, &Gy, &order, params->cofactor);
229 mp_clear(&order);
306 CHECK_SEC_OK(SECITEM_CopyItem(arena, &key->ecParams.order,
307 &ecParams->order, kmflag));
317 len = ecParams->order.len;
371 * - order: a buffer that holds the curve's group order
372 * - len: the length in octets of the order buffer
379 ec_GenerateRandomPrivateKey(const unsigned char *order, int len, int kmflag)
395 * reduces modulo the group order.
400 CHECK_MPI_OK( mp_read_unsigned_octets(&order_1, order, len) );
442 len = ecParams->order.len;
443 privKeyBytes = ec_GenerateRandomPrivateKey(ecParams->order.data, len,
643 unsigned olen; /* length in bytes of the base point order */
666 olen = ecParams->order.len;
685 SECITEM_TO_MPINT( ecParams->order, &n );
724 ** r = x1 mod n NOTE: n is the order of the curve
843 len = key->ecParams.order.len;
844 kBytes = ec_GenerateRandomPrivateKey(key->ecParams.order.data, len,
881 unsigned olen; /* length in bytes of the base point order */
907 olen = ecParams->order.len;
939 SECITEM_TO_MPINT(ecParams->order, &n);
1099 CHECK_SEC_OK(SECITEM_CopyItem(arena, &dstParams->order,
1100 &srcParams->order, 0));