Lines Matching +full:in2 +full:-
2 * Copyright (C) 2017 - This file is part of libecc project
7 * Jean-Pierre FLORI <jean-pierre.flori@ssi.gouv.fr>
20 * 0 on success, -1 on error.
25 ATTRIBUTE_WARN_UNUSED_RET static inline int _fp_mul_redc1(nn_t out, nn_src_t in1, nn_src_t in2, in _fp_mul_redc1() argument
28 return nn_mul_redc1(out, in1, in2, &(ctx->p), ctx->mpinv); in _fp_mul_redc1()
32 * Compute out = in1 * in2 mod (p) in redcified form.
35 * The function returns 0 on success, -1 on error.
39 int fp_mul_redc1(fp_t out, fp_src_t in1, fp_src_t in2) in fp_mul_redc1() argument
44 ret = fp_check_initialized(in2); EG(ret, err); in fp_mul_redc1()
47 MUST_HAVE((out->ctx == in1->ctx), ret, err); in fp_mul_redc1()
48 MUST_HAVE((out->ctx == in2->ctx), ret, err); in fp_mul_redc1()
50 ret = _fp_mul_redc1(&(out->fp_val), &(in1->fp_val), &(in2->fp_val), in fp_mul_redc1()
51 out->ctx); in fp_mul_redc1()
70 * on success, -1 on error.
81 MUST_HAVE((out->ctx == in->ctx), ret, err); in fp_redcify()
83 ret = _fp_mul_redc1(&(out->fp_val), &(in->fp_val), &(out->ctx->r_square), in fp_redcify()
84 out->ctx); in fp_redcify()
92 * The function returns 0 on success, -1 on error.
106 ret = _fp_mul_redc1(&(out->fp_val), &(in->fp_val), &one, out->ctx); in fp_unredcify()