/freebsd/crypto/libecc/src/nn/ |
H A D | nn_add.c | 77 ret = nn_set_wlen(out, loop_wlen); EG(ret, err); in _nn_cnd_add() 192 ret = nn_set_wlen(out, n_wlen); EG(ret, err); in nn_add_word() 265 ret = nn_set_wlen(out, in1->wlen); EG(ret, err); in nn_cnd_sub() 305 ret = nn_set_wlen(out, n_wlen); EG(ret, err); in nn_dec() 363 ret = nn_set_wlen(out, (u8)(p->wlen + 1)); EG(ret, err); in _nn_mod_add() 367 ret = nn_set_wlen(out, p->wlen); in _nn_mod_add() 417 ret = nn_set_wlen(out, (u8)(p->wlen + 1)); EG(ret, err); /* see comment in nn_mod_add() */ in _nn_mod_inc() 421 ret = nn_set_wlen(out, p->wlen); in _nn_mod_inc() 489 ret = nn_set_wlen(out, (u8)(p->wlen + 1)); EG(ret, err);/* See Comment in nn_mod_add() */ in _nn_mod_sub() 491 ret = nn_set_wlen(out, p->wlen); in _nn_mod_sub() [all …]
|
H A D | nn_modinv.c | 83 ret = nn_set_wlen(&a, m->wlen); EG(ret, err); in _nn_modinv_odd() 93 ret = nn_set_wlen(&u, m->wlen); EG(ret, err); in _nn_modinv_odd() 94 ret = nn_set_wlen(uu, m->wlen); EG(ret, err); in _nn_modinv_odd() 290 ret = nn_set_wlen(A, (u8)(Awlen + 1)); EG(ret, err); in _nn_sub_mod_2exp() 298 ret = nn_set_wlen(A, Awlen); in _nn_sub_mod_2exp() 382 ret = nn_set_wlen(&out, (u8)(2 * out.wlen)); EG(ret, err); in nn_modinv_2exp() 393 ret = nn_set_wlen(&out, exp_wlen); EG(ret, err); in nn_modinv_2exp()
|
H A D | nn_mul_redc1.c | 60 ret = nn_set_wlen(&p, 2); EG(ret, err); in nn_compute_redc1_coefs() 72 ret = nn_set_wlen(&tmp_nn1, 2); EG(ret, err); in nn_compute_redc1_coefs() 156 ret = nn_set_wlen(out, p->wlen); EG(ret, err); in _nn_mul_redc1() 312 ret = nn_set_wlen(&p, 2); EG(ret, err); in nn_mod_mul()
|
H A D | nn_div.c | 208 ret = nn_set_wlen(r, a->wlen); EG(ret, err); in _nn_divrem_normalized() 212 ret = nn_set_wlen(q, (u8)(r->wlen - b->wlen)); EG(ret, err); in _nn_divrem_normalized() 275 ret = nn_set_wlen(r, (u8)(r->wlen - 1)); EG(ret, err); in _nn_divrem_normalized() 433 ret = nn_set_wlen(&a_shift, new_wlen); EG(ret, err); in _nn_divrem_unshifted() 435 ret = nn_set_wlen(r, new_wlen); EG(ret, err); in _nn_divrem_unshifted() 445 ret = nn_set_wlen(q, (u8)(new_wlen - b_wlen + 1)); EG(ret, err); in _nn_divrem_unshifted() 462 ret = nn_set_wlen(q, (u8)(new_wlen - b_wlen + 1)); EG(ret, err); in _nn_divrem_unshifted() 467 ret = nn_set_wlen(r, b_wlen); in _nn_divrem_unshifted() 818 ret = nn_set_wlen(&p, 2); EG(ret, err); in nn_compute_div_coefs() 891 ret = nn_set_wlen(&b_large, 2); EG(ret, err); in _nn_divrem()
|
H A D | nn_logical.c | 290 ret = nn_set_wlen(&tmp, owlen); EG(ret, err); in nn_rrot() 292 ret = nn_set_wlen(out, owlen); EG(ret, err); in nn_rrot() 330 ret = nn_set_wlen(&tmp, owlen); EG(ret, err); in nn_lrot() 332 ret = nn_set_wlen(out, owlen); EG(ret, err); in nn_lrot()
|
H A D | nn_mod_pow.c | 269 ret = nn_set_wlen(&_mod, 2); EG(ret, err1); in nn_mod_pow_redc()
|
H A D | nn.c | 221 int nn_set_wlen(nn_t A, u8 new_wlen) in nn_set_wlen() function
|
/freebsd/crypto/libecc/src/fp/ |
H A D | fp.c | 111 ret = nn_set_wlen(&p, 2); EG(ret, err); in fp_ctx_init_from_p() 218 ret = nn_set_wlen(&(out->fp_val), out->ctx->p.wlen); in fp_set_nn() 235 ret = nn_set_wlen(&(out->fp_val), out->ctx->p.wlen); in fp_zero() 259 ret = nn_set_wlen(&(out->fp_val), out->ctx->p.wlen); in fp_one() 280 ret = nn_set_wlen(&(out->fp_val), out->ctx->p.wlen); in fp_set_word_value()
|
/freebsd/crypto/libecc/src/arithmetic_tests/ |
H A D | arithmetic_tests.c | 1028 ret = nn_set_wlen(tmp, (u8)(nn_len / WORD_BYTES)); EG(ret, err); in main() 1037 ret = nn_set_wlen(tmp, (u8)(nn_len / WORD_BYTES)); EG(ret, err); in main() 1051 ret = nn_set_wlen(tmp, (u8)(nn_len / WORD_BYTES)); EG(ret, err); in main() 1065 ret = nn_set_wlen(tmp, 1); EG(ret, err); in main() 1078 ret = nn_set_wlen(tmp, 1); EG(ret, err); in main() 1091 ret = nn_set_wlen(tmp, (u8)(nn_len / WORD_BYTES)); EG(ret, err); in main() 1104 ret = nn_set_wlen(tmp, 1); EG(ret, err); in main() 1138 ret = nn_set_wlen(tmp, (u8)(nn_len / WORD_BYTES)); EG(ret, err); in main() 1140 ret = nn_set_wlen(tmp, fp_ctx_param.p.wlen); EG(ret, err); in main() 1168 ret = nn_set_wlen(tmp, (u8)(nn_len / WORD_BYTES)); EG(ret, err); in main()
|
/freebsd/crypto/libecc/include/libecc/nn/ |
H A D | nn.h | 85 ATTRIBUTE_WARN_UNUSED_RET int nn_set_wlen(nn_t A, u8 new_wlen);
|