Home
last modified time | relevance | path

Searched refs:sqrt1 (Results 1 – 3 of 3) sorted by relevance

/freebsd/crypto/libecc/src/fp/
H A Dfp_sqrt.c112 int fp_sqrt(fp_t sqrt1, fp_t sqrt2, fp_src_t n) in fp_sqrt() argument
141 ret = fp_init(sqrt1, _n->ctx); EG(ret, err); in fp_sqrt()
152 ret = fp_copy(sqrt1, _n); EG(ret, err); in fp_sqrt()
161 ret = fp_zero(sqrt1); EG(ret, err); in fp_sqrt()
194 ret = fp_pow(sqrt1, _n, &tmp_nn); EG(ret, err); in fp_sqrt()
195 ret = fp_neg(sqrt2, sqrt1); EG(ret, err); in fp_sqrt()
218 ret = fp_copy(sqrt1, &r); EG(ret, err); in fp_sqrt()
219 ret = fp_neg(sqrt2, sqrt1); EG(ret, err); in fp_sqrt()
/freebsd/crypto/libecc/include/libecc/fp/
H A Dfp_sqrt.h23 ATTRIBUTE_WARN_UNUSED_RET int fp_sqrt(fp_t sqrt1, fp_t sqrt2, fp_src_t n);
/freebsd/crypto/libecc/src/sig/
H A Deddsa.c432 fp sqrt1, sqrt2; in eddsa_decode_point() local
442 x.magic = y.magic = sqrt1.magic = sqrt2.magic = WORD(0); in eddsa_decode_point()
472 ret = fp_init(&sqrt1, edwards_curve->a.ctx); EG(ret, err); in eddsa_decode_point()
497 …ret = aff_pt_edwards_x_from_y(&sqrt1, &sqrt2, &y, &edwards_curve_edwards448); EG(ret, err); /* Err… in eddsa_decode_point()
504 …ret = aff_pt_edwards_x_from_y(&sqrt1, &sqrt2, &y, edwards_curve); EG(ret, err); /* Error or no squ… in eddsa_decode_point()
507 ret = nn_getbit(&(sqrt1.fp_val), 0, &lsb); EG(ret, err); in eddsa_decode_point()
509 ret = fp_copy(&x, &sqrt1); EG(ret, err); in eddsa_decode_point()
530 ret = fp_copy(&sqrt1, &x); EG(ret, err); in eddsa_decode_point()
534 ret = fp_sqr(&tmp, &sqrt1); EG(ret, err); in eddsa_decode_point()
540 ret = fp_mul(&x, &x, &sqrt1); EG(ret, err); in eddsa_decode_point()
[all …]