Lines Matching +full:non +full:- +full:inclusive
2 * Copyright (C) 2021 - This file is part of libecc project
46 * 2^254 plus eight times a value between 0 and 2^251 - 1 inclusive for X25519
47 * (2^447 plus four times a value between 0 and 2^445 - 1 inclusive for X448).
65 scalar_decoded[len - 1 - i] = scalar[i]; in decode_scalar()
69 scalar_decoded[len - 1] &= 248; in decode_scalar()
75 scalar_decoded[len - 1] &= 252; in decode_scalar()
80 ret = -1; in decode_scalar()
102 u_decoded[len - 1 - i] = u[i]; in decode_u_coordinate()
127 /* NOTE: this square root is possibly non-existing if the in compute_v_from_u()
143 * as non canonical u.
208 v_coord_nn = &(v_coord->fp_val); in x25519_448_core()
216 /* Reject non canonical u values. in x25519_448_core()
219 ret = nn_cmp(v_coord_nn, &(montgomery_curve.A.ctx->p), &cmp); EG(ret, err); in x25519_448_core()
235 * coordinate thanks to the x-coordinate only computations with the Montgomery Ladder), in x25519_448_core()
240 * context of Diffie-Hellman based key exchange as defined in RFC7748. in x25519_448_core()
243 * using the current X25519/448 primitive in other contexts than RFC7748 Diffie-Hellman could be in x25519_448_core()
244 * limited and non interoperable with other implementations of this primive. Another issue is that in x25519_448_core()
340 /* X25519 uses the base point with x-coordinate = 0x09 */ in x25519_448_init_pub_key()
348 /* X448 uses the base point with x-coordinate = 0x05 */ in x25519_448_init_pub_key()
353 ret = -1; in x25519_448_init_pub_key()