Lines Matching refs:brv
169 BIG_ERR_CODE brv;
200 if ((brv = DSA_key_init(&dsakey, bkey->prime_bits)) != BIG_OK) {
201 rv = convert_rv(brv);
206 if ((brv = big_extend(&(dsakey.p),
208 rv = convert_rv(brv);
214 if ((brv = big_extend(&(dsakey.q),
216 rv = convert_rv(brv);
222 if ((brv = big_extend(&(dsakey.g),
224 rv = convert_rv(brv);
257 BIG_ERR_CODE brv;
282 if ((brv = DSA_key_init(&dsakey, bkey->prime_bits)) != BIG_OK) {
286 if ((brv = big_extend(&(dsakey.p),
288 rv = convert_rv(brv);
293 if ((brv = big_extend(&(dsakey.q),
295 rv = convert_rv(brv);
300 if ((brv = big_extend(&(dsakey.g),
302 rv = convert_rv(brv);
307 if ((brv = big_extend(&(dsakey.x),
309 rv = convert_rv(brv);
314 if ((brv = big_init(&msg, BIG_CHUNKS_FOR_160BITS)) != BIG_OK) {
315 rv = convert_rv(brv);
323 if ((brv = big_init(&tmp, CHARLEN2BIGNUMLEN(prime_bytes) +
325 rv = convert_rv(brv);
328 if ((brv = big_init(&tmp1, 2 * BIG_CHUNKS_FOR_160BITS + 1)) != BIG_OK) {
329 rv = convert_rv(brv);
341 if ((brv = big_random(&(dsakey.k), DSA_SUBPRIME_BITS, rf)) != BIG_OK) {
342 rv = convert_rv(brv);
346 if ((brv = big_div_pos(NULL, &(dsakey.k), &(dsakey.k),
348 rv = convert_rv(brv);
352 if ((brv = big_modexp(&tmp, &(dsakey.g), &(dsakey.k), &(dsakey.p),
354 rv = convert_rv(brv);
358 if ((brv = big_div_pos(NULL, &(dsakey.r), &tmp, &(dsakey.q))) !=
360 rv = convert_rv(brv);
365 if ((brv = big_ext_gcd_pos(NULL, NULL, &tmp, &(dsakey.q),
367 rv = convert_rv(brv);
372 if ((brv = big_add(&tmp, &tmp, &(dsakey.q))) != BIG_OK) {
373 rv = convert_rv(brv);
377 if ((brv = big_mul(&tmp1, &(dsakey.x), &(dsakey.r))) != BIG_OK) {
378 rv = convert_rv(brv);
382 if ((brv = big_add(&tmp1, &tmp1, &msg)) != BIG_OK) {
383 rv = convert_rv(brv);
387 if ((brv = big_mul(&tmp, &tmp1, &tmp)) != BIG_OK) {
388 rv = convert_rv(brv);
392 if ((brv = big_div_pos(NULL, &(dsakey.s), &tmp, &(dsakey.q))) !=
394 rv = convert_rv(brv);
424 BIG_ERR_CODE brv;
455 if ((brv = big_extend(&(dsakey.p),
457 rv = convert_rv(brv);
462 if ((brv = big_extend(&(dsakey.q),
464 rv = convert_rv(brv);
469 if ((brv = big_extend(&(dsakey.g),
471 rv = convert_rv(brv);
476 if ((brv = big_extend(&(dsakey.y),
478 rv = convert_rv(brv);
486 if ((brv = big_extend(&(dsakey.r),
488 rv = convert_rv(brv);
493 if ((brv = big_extend(&(dsakey.s),
495 rv = convert_rv(brv);
526 rv = convert_rv(brv);
532 rv = convert_rv(brv);
537 rv = convert_rv(brv);
542 rv = convert_rv(brv);
547 rv = convert_rv(brv);
552 rv = convert_rv(brv);
558 rv = convert_rv(brv);
564 rv = convert_rv(brv);
569 rv = convert_rv(brv);
574 rv = convert_rv(brv);
579 rv = convert_rv(brv);