Lines Matching refs:msg

69  *  routines take an extra argument, 'msg', that denotes what they
91 #define BN_ERRCHECK(msg, expr) do { \
92 if (!(expr)) _bnerr(msg); \
116 _bnerr(const char *msg)
120 MPERRX(("%s: %s", msg, ERR_reason_error_string(ERR_get_error())));
127 _dtom(const char *msg, const char *s)
133 MPERR(("%s", msg));
136 _bnerr(msg);
137 BN_ERRCHECK(msg, BN_dec2bn(&mp->bn, s));
166 _itom(const char *msg, short n)
173 MPERR(("%s", msg));
174 mp = _xtom(msg, s);
190 _madd(const char *msg, const MINT *mp1, const MINT *mp2, MINT *rmp)
196 _bnerr(msg);
197 BN_ERRCHECK(msg, BN_add(b, mp1->bn, mp2->bn));
198 _moveb(msg, b, rmp);
223 _mcmpa(const char *msg __unused, const MINT *mp1, const MINT *mp2)
233 _mdiv(const char *msg, const MINT *nmp, const MINT *dmp, MINT *qmp, MINT *rmp,
243 _bnerr(msg);
244 BN_ERRCHECK(msg, BN_div(q, r, nmp->bn, dmp->bn, c));
245 _moveb(msg, q, qmp);
246 _moveb(msg, r, rmp);
267 _mfree(const char *msg __unused, MINT *mp)
339 _moveb(const char *msg, const BIGNUM *sbp, MINT *tmp)
342 BN_ERRCHECK(msg, BN_copy(tmp->bn, sbp));
349 _movem(const char *msg, const MINT *smp, MINT *tmp)
352 BN_ERRCHECK(msg, BN_copy(tmp->bn, smp->bn));
411 _msub(const char *msg, const MINT *mp1, const MINT *mp2, MINT *rmp)
417 _bnerr(msg);
418 BN_ERRCHECK(msg, BN_sub(b, mp1->bn, mp2->bn));
419 _moveb(msg, b, rmp);
435 _mtod(const char *msg, const MINT *mp)
441 _bnerr(msg);
444 MPERR(("%s", msg));
454 _mtox(const char *msg, const MINT *mp)
461 _bnerr(msg);
464 MPERR(("%s", msg));
492 _mult(const char *msg, const MINT *mp1, const MINT *mp2, MINT *rmp, BN_CTX *c)
498 _bnerr(msg);
499 BN_ERRCHECK(msg, BN_mul(b, mp1->bn, mp2->bn, c));
500 _moveb(msg, b, rmp);
566 _sdiv(const char *msg, const MINT *nmp, short d, MINT *qmp, short *ro,
578 _bnerr(msg);
579 dmp = _itom(msg, d);
580 rmp = _itom(msg, 0);
581 BN_ERRCHECK(msg, BN_div(q, r, nmp->bn, dmp->bn, c));
582 _moveb(msg, q, qmp);
583 _moveb(msg, r, rmp);
584 s = _mtox(msg, rmp);
588 MPERR(("%s underflow or overflow", msg));
590 _mfree(msg, dmp);
591 _mfree(msg, rmp);
612 _xtom(const char *msg, const char *s)
618 MPERR(("%s", msg));
621 _bnerr(msg);
622 BN_ERRCHECK(msg, BN_hex2bn(&mp->bn, s));