Lines Matching +full:point +full:- +full:to +full:- +full:point

16  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
46 * ecc_swap_digits() - Copy ndigits from big endian array to native array
49 * @ndigits: Number of digits to copy
57 out[i] = get_unaligned_be64(&src[ndigits - 1 - i]); in ecc_swap_digits()
61 * ecc_digits_from_bytes() - Create ndigits-sized digits array from byte array
65 * @ndigits: Number of digits to create from byte array
67 * The first byte in the input byte array is expected to hold the most
74 * ecc_is_key_valid() - Validate a given ECDH private key
76 * @curve_id: id representing the curve to use
78 * @private_key: private key to be used for the given curve
87 * ecc_gen_privkey() - Generates an ECC private key.
90 * point G.
91 * @curve_id: id representing the curve to use
102 * ecc_make_pub_key() - Compute an ECC public key
104 * @curve_id: id representing the curve to use
116 * crypto_ecdh_shared_secret() - Compute a shared secret
118 * @curve_id: id representing the curve to use
135 * ecc_is_pubkey_valid_partial() - Partial public key validation
138 * @pk: public key as a point
140 * Valdiate public key according to SP800-56A section 5.6.2.3.4 ECC Partial
141 * Public-Key Validation Routine.
146 * Return: 0 if validation is successful, -EINVAL if validation is failed.
152 * ecc_is_pubkey_valid_full() - Full public key validation
155 * @pk: public key as a point
157 * Valdiate public key according to SP800-56A section 5.6.2.3.3 ECC Full
158 * Public-Key Validation Routine.
160 * Return: 0 if validation is successful, -EINVAL if validation is failed.
166 * vli_is_zero() - Determine is vli is zero
168 * @vli: vli to check.
174 * vli_cmp() - compare left and right vlis
180 * Returns sign of @left - @right, i.e. -1 if @left < @right,
186 * vli_sub() - Subtracts right from left
188 * @result: where to write result
193 * Note: can modify in-place.
201 * vli_from_be64() - Load vli from big-endian u64 array
210 * vli_from_le64() - Load vli from little-endian u64 array
219 * vli_mod_inv() - Modular inversion
221 * @result: where to write vli number
222 * @input: vli value to operate on
230 * vli_mod_mult_slow() - Modular multiplication
232 * @result: where to write result value
233 * @left: vli number to multiply with @right
234 * @right: vli number to multiply with @left
244 * vli_num_bits() - Counts the number of bits required for vli.
246 * @vli: vli to check.
249 * Return: The number of bits required to represent @vli.
254 * ecc_aloc_point() - Allocate ECC point.
258 * Return: Pointer to the allocated point or NULL if allocation failed.
263 * ecc_free_point() - Free ECC point.
265 * @p: The point to free.
270 * ecc_point_is_zero() - Check if point is zero.
272 * @p: Point to check for zero.
274 * Return: true if point is the point at infinity, false otherwise.
276 bool ecc_point_is_zero(const struct ecc_point *point);
279 * ecc_point_mult_shamir() - Add two points multiplied by scalars
281 * @result: resulting point
282 * @x: scalar to multiply with @p
283 * @p: point to multiply with @x
284 * @y: scalar to multiply with @q
285 * @q: point to multiply with @y