Searched refs:p_minus_two (Results 1 – 1 of 1) sorted by relevance
/freebsd/crypto/libecc/src/nn/ |
H A D | nn_modinv.c | 443 …atic int _nn_modinv_fermat_common(nn_t out, nn_src_t x, nn_src_t p, nn_t p_minus_two, int *lesstwo) in _nn_modinv_fermat_common() argument 499 if(p != p_minus_two){ in _nn_modinv_fermat_common() 501 ret = nn_init(p_minus_two, 0); EG(ret, err); in _nn_modinv_fermat_common() 506 ret = nn_sub(p_minus_two, p, &two); in _nn_modinv_fermat_common() 534 nn p_minus_two; in nn_modinv_fermat() local 535 p_minus_two.magic = WORD(0); in nn_modinv_fermat() 540 ret = _nn_modinv_fermat_common(out, x, p, &p_minus_two, &lesstwo); EG(ret, err); in nn_modinv_fermat() 544 ret = nn_mod_pow(out, x, &p_minus_two, p); in nn_modinv_fermat() 548 nn_uninit(&p_minus_two); in nn_modinv_fermat() 570 nn p_minus_two; in nn_modinv_fermat_redc() local [all …]
|