Lines Matching refs:order
85 mp_int Gx, Gy, order, irreducible, a, b;
140 MP_DIGITS(&order) = 0;
150 CHECK_MPI_OK( mp_init(&order, kmflag) );
174 SECITEM_TO_MPINT( params->order, &order );
179 group = ECGroup_consGFp_mont(&irreducible, &a, &b, &Gx, &Gy, &order, params->cofactor);
187 group = ECGroup_consGF2m(&irreducible, irr_arr, &a, &b, &Gx, &Gy, &order, params->cofactor);
224 mp_clear(&order);
300 CHECK_SEC_OK(SECITEM_CopyItem(arena, &key->ecParams.order,
301 &ecParams->order, kmflag));
311 len = ecParams->order.len;
365 * - order: a buffer that holds the curve's group order
366 * - len: the length in octets of the order buffer
373 ec_GenerateRandomPrivateKey(const unsigned char *order, int len, int kmflag)
389 * reduces modulo the group order.
394 CHECK_MPI_OK( mp_read_unsigned_octets(&order_1, order, len) );
436 len = ecParams->order.len;
437 privKeyBytes = ec_GenerateRandomPrivateKey(ecParams->order.data, len,
639 unsigned olen; /* length in bytes of the base point order */
662 olen = ecParams->order.len;
681 SECITEM_TO_MPINT( ecParams->order, &n );
720 ** r = x1 mod n NOTE: n is the order of the curve
839 len = key->ecParams.order.len;
840 kBytes = ec_GenerateRandomPrivateKey(key->ecParams.order.data, len,
877 unsigned olen; /* length in bytes of the base point order */
903 olen = ecParams->order.len;
935 SECITEM_TO_MPINT(ecParams->order, &n);
1108 SECITEM_FreeItem(&ecParams->order, freeit);