Lines Matching +full:compute +full:-
2 * Copyright (C) 2017 - This file is part of libecc project
7 * Jean-Pierre FLORI <jean-pierre.flori@ssi.gouv.fr>
22 /* Compute out = in1 + in2 mod p in the Montgomery form.
24 * Returns 0 on success, -1 on error.
33 /* Compute out = in1 - in2 mod p in the Montgomery form.
35 * Returns 0 on success, -1 on error.
44 /* Compute out = in1 * in2 mod p in the Montgomery form.
46 * Returns 0 on success, -1 on error.
55 /* Compute out = in * in mod p in the Montgomery form.
57 * Returns 0 on success, -1 on error.
67 * Compute out such that in1 = out * in2 mod p in the Montgomery form.
69 * Returns 0 on success, -1 on error. out must be initialized by the caller.
81 MUST_HAVE((out->ctx == in1->ctx), ret, err); in fp_div_monty()
82 MUST_HAVE((out->ctx == in2->ctx), ret, err); in fp_div_monty()