Lines Matching refs:brv
195 BIG_ERR_CODE brv = BIG_OK;
246 if ((brv = big_random(&a, psize, rf)) != BIG_OK) {
250 if ((brv = big_nextprime_pos(&b, &a)) != BIG_OK) {
256 if ((brv = big_ext_gcd_pos(&f, &d, &g, pubexp, &a)) != BIG_OK) {
263 if ((brv = big_random(&c, qsize, rf)) != BIG_OK) {
276 if ((brv = big_nextprime_pos(&c, &a)) != BIG_OK) {
281 if ((brv = big_mul(&g, &b, &c)) != BIG_OK) {
292 if ((brv = big_mul(&a, &a, &d)) != BIG_OK) {
295 if ((brv = big_ext_gcd_pos(&f, &d, &h, pubexp, &a)) != BIG_OK) {
304 if ((brv = big_add(&d, &d, &a)) != BIG_OK) {
314 if ((brv = big_ext_gcd_pos(&a, &f, &h, &b, &c)) != BIG_OK) {
318 if ((brv = big_add(&f, &f, &c)) != BIG_OK) {
325 if ((brv = big_div_pos(&a, &f, &d, &a)) != BIG_OK) {
330 if ((brv = big_div_pos(&a, &f, &d, &a)) != BIG_OK) {
336 if ((brv = big_random(&h, size, rf)) != BIG_OK) {
339 if ((brv = big_div_pos(&a, &h, &h, &g)) != BIG_OK) {
342 if ((brv = big_modexp(&a, &h, &d, &g, NULL)) != BIG_OK) {
346 if ((brv = big_modexp(&b, &a, &e, &g, NULL)) != BIG_OK) {
355 brv = BIG_OK;
359 rv = convert_rv(brv);