Lines Matching defs:counter
138 int counter = 1;
154 * counter = 0; counter += 1
156 for (counter = 1; counter <= 0xFFFF; ++counter) {
160 * W = Hash(seed || "ggen" || index || counter)
166 md[1] = (unsigned char)((counter >> 8) & 0xff);
167 md[2] = (unsigned char)(counter & 0xff);
193 BIGNUM *p, int L, BN_GENCB *cb, int *counter,
296 *counter = i;
488 * the value of seed and counter are optionally returned.
494 * - p, q, and the seed and counter used for generation must be passed in.
520 int mdsize, counter = 0, pcounter = 0, r = 0;
598 /* Validation of p,q requires seed and counter to be valid */
660 counter = 4 * L - 1;
661 /* Validation requires the counter to be supplied */
663 /* A.1.1.3 Step (4) : if (counter > (4L -1)) return INVALID */
664 if (params->pcounter > counter) {
668 counter = params->pcounter;
697 r = generate_p(ctx, md, counter, n, seed_tmp, seedlen, q, p, L,
717 * A.1.1.3 Step (14): return error if i != counter OR computed_p != known_p.
719 if (verify && (pcounter != counter || (BN_cmp(p, params->p) != 0)))
819 int counter = 0, pcounter = 0, use_random_seed;
905 /* Validation of p,q requires seed and counter to be valid */
941 counter = 4 * L - 1; /* Was 4096 */
942 /* Validation requires the counter to be supplied */
944 if (params->pcounter > counter) {
948 counter = params->pcounter;
951 rv = generate_p(ctx, md, counter, n, buf, qsize, q, p, L, cb,
965 if (pcounter != counter) {