Lines Matching refs:bn
132 mp->bn = BN_new(); in _dtom()
133 if (mp->bn == NULL) in _dtom()
135 BN_ERRCHECK(msg, BN_dec2bn(&mp->bn, s)); in _dtom()
152 BN_ERRCHECK("gcd", BN_gcd(&b, mp1->bn, mp2->bn, c)); in mp_gcd()
191 BN_ERRCHECK(msg, BN_add(&b, mp1->bn, mp2->bn)); in _madd()
210 return (BN_cmp(mp1->bn, mp2->bn)); in mp_mcmp()
220 return (BN_ucmp(mp1->bn, mp2->bn)); in _mcmpa()
234 BN_ERRCHECK(msg, BN_div(&q, &r, nmp->bn, dmp->bn, c)); in _mdiv()
260 BN_clear(mp->bn); in _mfree()
261 BN_free(mp->bn); in _mfree()
332 BN_ERRCHECK(msg, BN_copy(tmp->bn, sbp)); in _moveb()
342 BN_ERRCHECK(msg, BN_copy(tmp->bn, smp->bn)); in _movem()
406 BN_ERRCHECK(msg, BN_sub(&b, mp1->bn, mp2->bn)); in _msub()
427 s = BN_bn2dec(mp->bn); in _mtod()
447 s = BN_bn2hex(mp->bn); in _mtox()
485 BN_ERRCHECK(msg, BN_mul(&b, mp1->bn, mp2->bn, c)); in _mult()
516 BN_ERRCHECK("pow", BN_mod_exp(&b, bmp->bn, emp->bn, mmp->bn, c)); in mp_pow()
537 BN_ERRCHECK("rpow", BN_exp(&b, bmp->bn, emp->bn, c)); in mp_rpow()
559 BN_ERRCHECK(msg, BN_div(&q, &r, nmp->bn, dmp->bn, c)); in _sdiv()
597 mp->bn = BN_new(); in _xtom()
598 if (mp->bn == NULL) in _xtom()
600 BN_ERRCHECK(msg, BN_hex2bn(&mp->bn, s)); in _xtom()