/freebsd/crypto/libecc/src/nn/ |
H A D | nn_modinv.c | 57 ret = nn_init(out, 0); EG(ret, err); in _nn_modinv_odd() 58 ret = nn_init(&a, (u16)(m->wlen * WORD_BYTES)); EG(ret, err); in _nn_modinv_odd() 59 ret = nn_init(&b, (u16)(m->wlen * WORD_BYTES)); EG(ret, err); in _nn_modinv_odd() 60 ret = nn_init(&u, (u16)(m->wlen * WORD_BYTES)); EG(ret, err); in _nn_modinv_odd() 61 ret = nn_init(&mp1d2, (u16)(m->wlen * WORD_BYTES)); EG(ret, err); in _nn_modinv_odd() 65 ret = nn_init(&tmp, (u16)(m->wlen * WORD_BYTES)); EG(ret, err); in _nn_modinv_odd() 232 ret = nn_init(&out, 0); EG(ret, err); in nn_modinv() 257 ret = nn_init(&u, 0); EG(ret, err); in nn_modinv() 258 ret = nn_init(&v, 0); EG(ret, err); in nn_modinv() 330 ret = nn_init(&out, 0); EG(ret, err); in nn_modinv_2exp() [all …]
|
H A D | nn_mul_redc1.c | 49 ret = nn_init(&p, 0); EG(ret, err); in nn_compute_redc1_coefs() 63 ret = nn_init(r, 0); EG(ret, err); in nn_compute_redc1_coefs() 64 ret = nn_init(r_square, 0); EG(ret, err); in nn_compute_redc1_coefs() 65 ret = nn_init(&tmp_nn1, 0); EG(ret, err); in nn_compute_redc1_coefs() 66 ret = nn_init(&tmp_nn2, 0); EG(ret, err); in nn_compute_redc1_coefs() 143 ret = nn_init(out, 0); EG(ret, err); in _nn_mul_redc1() 233 ret = nn_init(out, out_cpy.wlen); EG(ret, err); in _nn_mul_redc1_aliased() 330 ret = nn_init(&in1_tmp, 0); EG(ret, err); in nn_mod_mul()
|
H A D | nn_div.c | 316 ret = nn_init(&r, 0); EG(ret, err); in _nn_divrem_normalized_aliased() 374 ret = nn_init(&q, 0); EG(ret, err); in nn_mod_normalized() 432 ret = nn_init(&a_shift, (u16)(new_wlen * WORD_BYTES)); EG(ret, err); in _nn_divrem_unshifted() 495 ret = nn_init(&r, 0); EG(ret, err); in _nn_divrem_unshifted_aliased() 549 ret = nn_init(&q, 0); EG(ret, err); in nn_mod_unshifted() 809 ret = nn_init(&p, 0); EG(ret, err); in nn_compute_div_coefs() 821 ret = nn_init(p_normalized, 0); EG(ret, err); in nn_compute_div_coefs() 822 ret = nn_init(&tmp_nn, 0); EG(ret, err); in nn_compute_div_coefs() 881 ret = nn_init(r, 0); EG(ret, err); in _nn_divrem() 882 ret = nn_init(q, 0); EG(ret, err); in _nn_divrem() [all …]
|
H A D | nn_rand.c | 37 ret = nn_init(out, len); EG(ret, err); in nn_get_random_len() 116 ret = nn_init(&tmp_rand, (u16)(2 * q_len)); EG(ret, err); in nn_get_random_mod() 120 ret = nn_init(out, (u16)q_len); EG(ret, err); in nn_get_random_mod()
|
H A D | nn_mod_pow.c | 49 ret = nn_init(out, 0); EG(ret, err); in _nn_exp_monty_ladder_ltr() 51 ret = nn_init(&T[0], 0); EG(ret, err); in _nn_exp_monty_ladder_ltr() 52 ret = nn_init(&T[1], 0); EG(ret, err); in _nn_exp_monty_ladder_ltr() 53 ret = nn_init(&T[2], 0); EG(ret, err); in _nn_exp_monty_ladder_ltr() 205 ret = nn_init(&_out, 0); EG(ret, err); in _nn_mod_pow() 228 ret = nn_init(&_out, 0); EG(ret, err); in _nn_mod_pow_redc_aliased()
|
H A D | nn_logical.c | 105 ret = nn_init(out, 0); EG(ret, err); in nn_lshift() 222 ret = nn_init(out, 0); EG(ret, err); in nn_rshift() 288 ret = nn_init(&tmp, 0); EG(ret, err); in nn_rrot() 328 ret = nn_init(&tmp, 0); EG(ret, err); in nn_lrot() 368 ret = nn_init(A, 0); EG(ret, err); in nn_xor() 403 ret = nn_init(A, 0); EG(ret, err); in nn_or() 438 ret = nn_init(A, 0); EG(ret, err); in nn_and() 470 ret = nn_init(A, 0); EG(ret, err); in nn_not()
|
H A D | nn_mul.c | 54 ret = nn_init(out, (u16)(wlimit * WORD_BYTES)); EG(ret, err); in _nn_mul_low() 114 ret = nn_init(out, out_cpy.wlen); EG(ret, err); in _nn_mul_low_aliased() 189 ret = nn_init(&w_nn, WORD_BYTES); EG(ret, err); in nn_mul_word()
|
H A D | nn_add.c | 75 ret = nn_init(out, (u16)(loop_wlen * WORD_BYTES)); EG(ret, err); in _nn_cnd_add() 190 ret = nn_init(out, (u16)(n_wlen * WORD_BYTES)); EG(ret, err); in nn_add_word() 263 ret = nn_init(out, (u16)(loop_wlen * WORD_BYTES)); EG(ret, err); in nn_cnd_sub() 481 ret = nn_init(&in2_cpy, 0); EG(ret, err); in _nn_mod_sub() 605 ret = nn_init(out, 0); EG(ret, err); in nn_mod_neg()
|
H A D | nn.c | 84 int nn_init(nn_t A, u16 len) in nn_init() function 135 ret = nn_init(A, 0); in nn_zero() 502 ret = nn_init(out_nn, buflen); EG(ret, err); in nn_init_from_buf()
|
/freebsd/crypto/libecc/src/examples/basic/ |
H A D | nn_pollard_rho.c | 66 ret = nn_init(&a, 0); EG(ret, err); in pollard_rho() 67 ret = nn_init(&b, 0); EG(ret, err); in pollard_rho() 68 ret = nn_init(&tmp, 0); EG(ret, err); in pollard_rho() 69 ret = nn_init(&one, 0); EG(ret, err); in pollard_rho() 70 ret = nn_init(&c_bignum, 0); EG(ret, err); in pollard_rho() 71 ret = nn_init(d, 0); EG(ret, err); in pollard_rho() 158 ret = nn_init(&n, 0); EG(ret, err); in find_divisors() 161 ret = nn_init(&(divisors[i]), 0); EG(ret, err); in find_divisors() 181 ret = nn_init(&q, 0); EG(ret, err); in find_divisors() 182 ret = nn_init(&r, 0); EG(ret, err); in find_divisors() [all …]
|
H A D | nn_miller_rabin.c | 60 ret = nn_init(&s, 0); EG(ret, err); in miller_rabin() 61 ret = nn_init(&q, 0); EG(ret, err); in miller_rabin() 62 ret = nn_init(&r, 0); EG(ret, err); in miller_rabin() 63 ret = nn_init(&d, 0); EG(ret, err); in miller_rabin() 64 ret = nn_init(&a, 0); EG(ret, err); in miller_rabin() 65 ret = nn_init(&y, 0); EG(ret, err); in miller_rabin() 66 ret = nn_init(&j, 0); EG(ret, err); in miller_rabin() 67 ret = nn_init(&one, 0); EG(ret, err); in miller_rabin() 68 ret = nn_init(&two, 0); EG(ret, err); in miller_rabin() 69 ret = nn_init(&tmp, 0); EG(ret, err); in miller_rabin()
|
H A D | fp_square_residue.c | 37 ret = nn_init(&p, 0); EG(ret, err); in main()
|
/freebsd/crypto/libecc/src/arithmetic_tests/ |
H A D | arithmetic_tests.c | 206 ret |= nn_init(&name##0, size); \ 211 ret |= nn_init(&name##0, size); \ 212 ret |= nn_init(&name##1, size); \ 217 ret |= nn_init(&name##0, size); \ 218 ret |= nn_init(&name##1, size); \ 219 ret |= nn_init(&name##2, size); \ 224 ret |= nn_init(&name##0, size); \ 225 ret |= nn_init(&name##1, size); \ 226 ret |= nn_init(&name##2, size); \ 227 ret |= nn_init(&name##3, size); \ [all …]
|
/freebsd/crypto/libecc/src/fp/ |
H A D | fp_sqrt.c | 39 ret = nn_init(&exp, 0); EG(ret, err); in legendre() 46 ret = nn_init(&exp, 0); EG(ret, err); in legendre() 122 ret = nn_init(&q, 0); EG(ret, err); in fp_sqrt() 123 ret = nn_init(&s, 0); EG(ret, err); in fp_sqrt() 124 ret = nn_init(&tmp_nn, 0); EG(ret, err); in fp_sqrt() 125 ret = nn_init(&one_nn, 0); EG(ret, err); in fp_sqrt() 126 ret = nn_init(&two_nn, 0); EG(ret, err); in fp_sqrt() 127 ret = nn_init(&m, 0); EG(ret, err); in fp_sqrt() 128 ret = nn_init(&i, 0); EG(ret, err); in fp_sqrt()
|
H A D | fp.c | 98 ret = nn_init(&p, 0); EG(ret, err); in fp_ctx_init_from_p() 100 ret = nn_init(&r, 0); EG(ret, err); in fp_ctx_init_from_p() 101 ret = nn_init(&r_square, 0); EG(ret, err); in fp_ctx_init_from_p() 102 ret = nn_init(&p_normalized, 0); EG(ret, err); in fp_ctx_init_from_p() 157 ret = nn_init(&(in->fp_val), (u16)((fpctx->p.wlen) * WORD_BYTES)); EG(ret, err); in fp_init()
|
H A D | fp_mul_redc1.c | 104 ret = nn_init(&one, 0); EG(ret, err); in fp_unredcify()
|
/freebsd/crypto/libecc/src/examples/sig/common/ |
H A D | common.h | 101 ret = nn_init(&q_square, 0); EG(ret, err); in _fix_scalar_msb() 102 ret = nn_init(&_m_msb_fixed, 0); EG(ret, err); in _fix_scalar_msb() 218 ret = nn_init(&one, 0); EG(ret, err); in _nn_mod_pow_insecure()
|
/freebsd/crypto/libecc/src/examples/sig/gostr34_10_94/ |
H A D | gostr34_10_94.c | 154 ret = nn_init(&r, 0); EG(ret, err); in gostr34_10_94_sign() 327 ret = nn_init(&v, 0); EG(ret, err); in gostr34_10_94_verify() 328 ret = nn_init(&u1, 0); EG(ret, err); in gostr34_10_94_verify() 329 ret = nn_init(&u2, 0); EG(ret, err); in gostr34_10_94_verify()
|
/freebsd/crypto/libecc/src/sig/ |
H A D | bip0340.c | 219 ret = nn_init(&d, 0); EG(ret, err); in _bip0340_sign() 248 ret = nn_init(&e, 0); EG(ret, err); in _bip0340_sign() 894 ret = nn_init(&S_sum, 0); EG(ret, err); in _bip0340_verify_batch_no_memory() 900 ret = nn_init(&e, 0); EG(ret, err); in _bip0340_verify_batch_no_memory() 901 ret = nn_init(&a, 0); EG(ret, err); in _bip0340_verify_batch_no_memory() 1151 ret = nn_init(&a, 0); EG(ret, err); in _bip0340_verify_batch() 1152 ret = nn_init(&elements[(2 * num)].number, 0); EG(ret, err); in _bip0340_verify_batch() 1202 ret = nn_init(&elements[i].number, 0); EG(ret, err); in _bip0340_verify_batch() 1206 ret = nn_init(&elements[i].number, 0); EG(ret, err); in _bip0340_verify_batch() 1229 ret = nn_init(e, 0); EG(ret, err); in _bip0340_verify_batch()
|
H A D | ecfsdsa.c | 734 ret = nn_init(&S_sum, 0); EG(ret, err); in _ecfsdsa_verify_batch_no_memory() 740 ret = nn_init(&e, 0); EG(ret, err); in _ecfsdsa_verify_batch_no_memory() 741 ret = nn_init(&a, 0); EG(ret, err); in _ecfsdsa_verify_batch_no_memory() 954 ret = nn_init(&a, 0); EG(ret, err); in _ecfsdsa_verify_batch() 955 ret = nn_init(&elements[(2 * num)].number, 0); EG(ret, err); in _ecfsdsa_verify_batch() 989 ret = nn_init(e, 0); EG(ret, err); in _ecfsdsa_verify_batch() 1008 ret = nn_init(&elements[i].number, 0); EG(ret, err); in _ecfsdsa_verify_batch()
|
H A D | eddsa.c | 241 ret = nn_init(nn_out, 0); EG(ret, err); in eddsa_decode_integer() 350 ret = nn_init(&out_reduced, 0); EG(ret, err); in eddsa_encode_point() 804 ret = nn_init(&s, 0); EG(ret, err); in eddsa_init_pub_key() 937 ret = nn_init(&tmp, 0); EG(ret, err1); 1399 ret = nn_init(&r_tmp, 0); EG(ret, err1); 1421 ret = nn_init(&r_tmp, 0); EG(ret, err2); 1747 ret = nn_init(&r_tmp, 0); EG(ret, err1); 1769 ret = nn_init(&r_tmp, 0); EG(ret, err2); 2380 ret = nn_init(&S_sum, 0); EG(ret, err); 2385 ret = nn_init(&z, 0); EG(ret, err); [all …]
|
/freebsd/crypto/libecc/src/examples/sig/sdsa/ |
H A D | sdsa.c | 166 ret = nn_init(pi, 0); EG(ret, err); in sdsa_sign() 321 ret = nn_init(&u, 0); EG(ret, err); in sdsa_verify() 322 ret = nn_init(&pi, 0); EG(ret, err); in sdsa_verify()
|
/freebsd/crypto/libecc/src/examples/sig/rsa/ |
H A D | rsa.c | 259 ret = nn_init(&b, 0); EG(ret, err); in _rsa_blind_exponent() 260 ret = nn_init(out, 0); EG(ret, err); in _rsa_blind_exponent() 305 ret = nn_init(&m_i, 0); EG(ret, err); in rsadp_crt_coeffs() 306 ret = nn_init(&h, 0); EG(ret, err); in rsadp_crt_coeffs() 307 ret = nn_init(&R, 0); EG(ret, err); in rsadp_crt_coeffs() 365 ret = nn_init(&m_1, 0); EG(ret, err); in rsadp_crt() 366 ret = nn_init(&m_2, 0); EG(ret, err); in rsadp_crt() 367 ret = nn_init(&h, 0); EG(ret, err); in rsadp_crt() 368 ret = nn_init(&msb_fixed, 0); EG(ret, err); in rsadp_crt() 461 ret = nn_init(&b1, 0); EG(ret, err); in rsadp_nocrt() [all …]
|
/freebsd/crypto/libecc/src/curves/ |
H A D | ec_params.c | 101 ret = nn_init(&(out_params->ec_gen_order), (u16)(tmp_order.wlen * WORD_BYTES)); EG(ret, err); in import_params() 112 ret = nn_init(&(out_params->ec_gen_cofactor), in import_params()
|
/freebsd/crypto/libecc/include/libecc/nn/ |
H A D | nn.h | 82 ATTRIBUTE_WARN_UNUSED_RET int nn_init(nn_t A, u16 len);
|