Home
last modified time | relevance | path

Searched full:curve (Results 1 – 25 of 285) sorted by relevance

12345678910>>...12

/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn20/
Ddcn20_dpp_cm.c579 const struct gamma_curve *curve; in dpp20_program_shaper_luta_settings() local
604 curve = params->arr_curve_points; in dpp20_program_shaper_luta_settings()
606 CM_SHAPER_RAMA_EXP_REGION0_LUT_OFFSET, curve[0].offset, in dpp20_program_shaper_luta_settings()
607 CM_SHAPER_RAMA_EXP_REGION0_NUM_SEGMENTS, curve[0].segments_num, in dpp20_program_shaper_luta_settings()
608 CM_SHAPER_RAMA_EXP_REGION1_LUT_OFFSET, curve[1].offset, in dpp20_program_shaper_luta_settings()
609 CM_SHAPER_RAMA_EXP_REGION1_NUM_SEGMENTS, curve[1].segments_num); in dpp20_program_shaper_luta_settings()
611 curve += 2; in dpp20_program_shaper_luta_settings()
613 CM_SHAPER_RAMA_EXP_REGION2_LUT_OFFSET, curve[0].offset, in dpp20_program_shaper_luta_settings()
614 CM_SHAPER_RAMA_EXP_REGION2_NUM_SEGMENTS, curve[0].segments_num, in dpp20_program_shaper_luta_settings()
615 CM_SHAPER_RAMA_EXP_REGION3_LUT_OFFSET, curve[1].offset, in dpp20_program_shaper_luta_settings()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn20/
Ddcn20_dpp_cm.c579 const struct gamma_curve *curve; in dpp20_program_shaper_luta_settings() local
604 curve = params->arr_curve_points; in dpp20_program_shaper_luta_settings()
606 CM_SHAPER_RAMA_EXP_REGION0_LUT_OFFSET, curve[0].offset, in dpp20_program_shaper_luta_settings()
607 CM_SHAPER_RAMA_EXP_REGION0_NUM_SEGMENTS, curve[0].segments_num, in dpp20_program_shaper_luta_settings()
608 CM_SHAPER_RAMA_EXP_REGION1_LUT_OFFSET, curve[1].offset, in dpp20_program_shaper_luta_settings()
609 CM_SHAPER_RAMA_EXP_REGION1_NUM_SEGMENTS, curve[1].segments_num); in dpp20_program_shaper_luta_settings()
611 curve += 2; in dpp20_program_shaper_luta_settings()
613 CM_SHAPER_RAMA_EXP_REGION2_LUT_OFFSET, curve[0].offset, in dpp20_program_shaper_luta_settings()
614 CM_SHAPER_RAMA_EXP_REGION2_NUM_SEGMENTS, curve[0].segments_num, in dpp20_program_shaper_luta_settings()
615 CM_SHAPER_RAMA_EXP_REGION3_LUT_OFFSET, curve[1].offset, in dpp20_program_shaper_luta_settings()
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn32/
Ddcn32_mpc.c344 const struct gamma_curve *curve; in mpc32_program_shaper_luta_settings() local
367 curve = params->arr_curve_points; in mpc32_program_shaper_luta_settings()
369 MPCC_MCM_SHAPER_RAMA_EXP_REGION0_LUT_OFFSET, curve[0].offset, in mpc32_program_shaper_luta_settings()
370 MPCC_MCM_SHAPER_RAMA_EXP_REGION0_NUM_SEGMENTS, curve[0].segments_num, in mpc32_program_shaper_luta_settings()
371 MPCC_MCM_SHAPER_RAMA_EXP_REGION1_LUT_OFFSET, curve[1].offset, in mpc32_program_shaper_luta_settings()
372 MPCC_MCM_SHAPER_RAMA_EXP_REGION1_NUM_SEGMENTS, curve[1].segments_num); in mpc32_program_shaper_luta_settings()
374 curve += 2; in mpc32_program_shaper_luta_settings()
376 MPCC_MCM_SHAPER_RAMA_EXP_REGION0_LUT_OFFSET, curve[0].offset, in mpc32_program_shaper_luta_settings()
377 MPCC_MCM_SHAPER_RAMA_EXP_REGION0_NUM_SEGMENTS, curve[0].segments_num, in mpc32_program_shaper_luta_settings()
378 MPCC_MCM_SHAPER_RAMA_EXP_REGION1_LUT_OFFSET, curve[1].offset, in mpc32_program_shaper_luta_settings()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn30/
Ddcn30_dpp.c786 const struct gamma_curve *curve; in dpp3_program_shaper_luta_settings() local
811 curve = params->arr_curve_points; in dpp3_program_shaper_luta_settings()
813 CM_SHAPER_RAMA_EXP_REGION0_LUT_OFFSET, curve[0].offset, in dpp3_program_shaper_luta_settings()
814 CM_SHAPER_RAMA_EXP_REGION0_NUM_SEGMENTS, curve[0].segments_num, in dpp3_program_shaper_luta_settings()
815 CM_SHAPER_RAMA_EXP_REGION1_LUT_OFFSET, curve[1].offset, in dpp3_program_shaper_luta_settings()
816 CM_SHAPER_RAMA_EXP_REGION1_NUM_SEGMENTS, curve[1].segments_num); in dpp3_program_shaper_luta_settings()
818 curve += 2; in dpp3_program_shaper_luta_settings()
820 CM_SHAPER_RAMA_EXP_REGION2_LUT_OFFSET, curve[0].offset, in dpp3_program_shaper_luta_settings()
821 CM_SHAPER_RAMA_EXP_REGION2_NUM_SEGMENTS, curve[0].segments_num, in dpp3_program_shaper_luta_settings()
822 CM_SHAPER_RAMA_EXP_REGION3_LUT_OFFSET, curve[1].offset, in dpp3_program_shaper_luta_settings()
[all …]
Ddcn30_mpc.c468 const struct gamma_curve *curve; in mpc3_program_shaper_luta_settings() local
491 curve = params->arr_curve_points; in mpc3_program_shaper_luta_settings()
493 MPC_RMU_SHAPER_RAMA_EXP_REGION0_LUT_OFFSET, curve[0].offset, in mpc3_program_shaper_luta_settings()
494 MPC_RMU_SHAPER_RAMA_EXP_REGION0_NUM_SEGMENTS, curve[0].segments_num, in mpc3_program_shaper_luta_settings()
495 MPC_RMU_SHAPER_RAMA_EXP_REGION1_LUT_OFFSET, curve[1].offset, in mpc3_program_shaper_luta_settings()
496 MPC_RMU_SHAPER_RAMA_EXP_REGION1_NUM_SEGMENTS, curve[1].segments_num); in mpc3_program_shaper_luta_settings()
498 curve += 2; in mpc3_program_shaper_luta_settings()
500 MPC_RMU_SHAPER_RAMA_EXP_REGION0_LUT_OFFSET, curve[0].offset, in mpc3_program_shaper_luta_settings()
501 MPC_RMU_SHAPER_RAMA_EXP_REGION0_NUM_SEGMENTS, curve[0].segments_num, in mpc3_program_shaper_luta_settings()
502 MPC_RMU_SHAPER_RAMA_EXP_REGION1_LUT_OFFSET, curve[1].offset, in mpc3_program_shaper_luta_settings()
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn30/
Ddcn30_mpc.c481 const struct gamma_curve *curve; in mpc3_program_shaper_luta_settings() local
504 curve = params->arr_curve_points; in mpc3_program_shaper_luta_settings()
506 MPC_RMU_SHAPER_RAMA_EXP_REGION0_LUT_OFFSET, curve[0].offset, in mpc3_program_shaper_luta_settings()
507 MPC_RMU_SHAPER_RAMA_EXP_REGION0_NUM_SEGMENTS, curve[0].segments_num, in mpc3_program_shaper_luta_settings()
508 MPC_RMU_SHAPER_RAMA_EXP_REGION1_LUT_OFFSET, curve[1].offset, in mpc3_program_shaper_luta_settings()
509 MPC_RMU_SHAPER_RAMA_EXP_REGION1_NUM_SEGMENTS, curve[1].segments_num); in mpc3_program_shaper_luta_settings()
511 curve += 2; in mpc3_program_shaper_luta_settings()
513 MPC_RMU_SHAPER_RAMA_EXP_REGION0_LUT_OFFSET, curve[0].offset, in mpc3_program_shaper_luta_settings()
514 MPC_RMU_SHAPER_RAMA_EXP_REGION0_NUM_SEGMENTS, curve[0].segments_num, in mpc3_program_shaper_luta_settings()
515 MPC_RMU_SHAPER_RAMA_EXP_REGION1_LUT_OFFSET, curve[1].offset, in mpc3_program_shaper_luta_settings()
[all …]
Ddcn30_dpp.c864 const struct gamma_curve *curve; in dpp3_program_shaper_luta_settings() local
889 curve = params->arr_curve_points; in dpp3_program_shaper_luta_settings()
891 CM_SHAPER_RAMA_EXP_REGION0_LUT_OFFSET, curve[0].offset, in dpp3_program_shaper_luta_settings()
892 CM_SHAPER_RAMA_EXP_REGION0_NUM_SEGMENTS, curve[0].segments_num, in dpp3_program_shaper_luta_settings()
893 CM_SHAPER_RAMA_EXP_REGION1_LUT_OFFSET, curve[1].offset, in dpp3_program_shaper_luta_settings()
894 CM_SHAPER_RAMA_EXP_REGION1_NUM_SEGMENTS, curve[1].segments_num); in dpp3_program_shaper_luta_settings()
896 curve += 2; in dpp3_program_shaper_luta_settings()
898 CM_SHAPER_RAMA_EXP_REGION2_LUT_OFFSET, curve[0].offset, in dpp3_program_shaper_luta_settings()
899 CM_SHAPER_RAMA_EXP_REGION2_NUM_SEGMENTS, curve[0].segments_num, in dpp3_program_shaper_luta_settings()
900 CM_SHAPER_RAMA_EXP_REGION3_LUT_OFFSET, curve[1].offset, in dpp3_program_shaper_luta_settings()
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dce110/
Ddce110_opp_regamma_v.c118 * build regamma curve by using predefined hw points
133 const struct gamma_curve *curve; in regamma_config_regions_and_segments() local
192 curve = params->arr_curve_points; in regamma_config_regions_and_segments()
198 curve[0].offset, in regamma_config_regions_and_segments()
204 curve[0].segments_num, in regamma_config_regions_and_segments()
210 curve[1].offset, in regamma_config_regions_and_segments()
216 curve[1].segments_num, in regamma_config_regions_and_segments()
226 curve += 2; in regamma_config_regions_and_segments()
231 curve[0].offset, in regamma_config_regions_and_segments()
237 curve[0].segments_num, in regamma_config_regions_and_segments()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dce110/
Ddce110_opp_regamma_v.c120 * build regamma curve by using predefined hw points
135 const struct gamma_curve *curve; in regamma_config_regions_and_segments() local
194 curve = params->arr_curve_points; in regamma_config_regions_and_segments()
200 curve[0].offset, in regamma_config_regions_and_segments()
206 curve[0].segments_num, in regamma_config_regions_and_segments()
212 curve[1].offset, in regamma_config_regions_and_segments()
218 curve[1].segments_num, in regamma_config_regions_and_segments()
228 curve += 2; in regamma_config_regions_and_segments()
233 curve[0].offset, in regamma_config_regions_and_segments()
239 curve[0].segments_num, in regamma_config_regions_and_segments()
[all …]
/kernel/linux/linux-5.10/drivers/staging/fbtft/
Dfb_hx8340bn.c145 * Gamma Curve selection, GC (only GC0 can be customized):
151 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] macro
164 CURVE(i, j) &= mask[i * par->gamma.num_values + j]; in set_gamma()
167 write_reg(par, MIPI_DCS_SET_GAMMA_CURVE, 1 << CURVE(1, 14)); in set_gamma()
169 if (CURVE(1, 14)) in set_gamma()
173 (CURVE(0, 8) << 4) | CURVE(0, 7), in set_gamma()
174 (CURVE(0, 10) << 4) | CURVE(0, 9), in set_gamma()
175 (CURVE(0, 12) << 4) | CURVE(0, 11), in set_gamma()
176 CURVE(0, 2), in set_gamma()
177 (CURVE(0, 4) << 4) | CURVE(0, 3), in set_gamma()
[all …]
Dfb_s6d1121.c119 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] macro
132 CURVE(i, j) &= mask[i * par->gamma.num_values + j]; in set_gamma()
134 write_reg(par, 0x0030, CURVE(0, 1) << 8 | CURVE(0, 0)); in set_gamma()
135 write_reg(par, 0x0031, CURVE(0, 3) << 8 | CURVE(0, 2)); in set_gamma()
136 write_reg(par, 0x0032, CURVE(0, 5) << 8 | CURVE(0, 3)); in set_gamma()
137 write_reg(par, 0x0033, CURVE(0, 7) << 8 | CURVE(0, 6)); in set_gamma()
138 write_reg(par, 0x0034, CURVE(0, 9) << 8 | CURVE(0, 8)); in set_gamma()
139 write_reg(par, 0x0035, CURVE(0, 11) << 8 | CURVE(0, 10)); in set_gamma()
141 write_reg(par, 0x0036, CURVE(1, 1) << 8 | CURVE(1, 0)); in set_gamma()
142 write_reg(par, 0x0037, CURVE(1, 3) << 8 | CURVE(1, 2)); in set_gamma()
[all …]
Dfb_ssd1289.c125 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] macro
137 CURVE(i, j) &= mask[i * par->gamma.num_values + j]; in set_gamma()
139 write_reg(par, 0x0030, CURVE(0, 5) << 8 | CURVE(0, 4)); in set_gamma()
140 write_reg(par, 0x0031, CURVE(0, 7) << 8 | CURVE(0, 6)); in set_gamma()
141 write_reg(par, 0x0032, CURVE(0, 9) << 8 | CURVE(0, 8)); in set_gamma()
142 write_reg(par, 0x0033, CURVE(0, 3) << 8 | CURVE(0, 2)); in set_gamma()
143 write_reg(par, 0x0034, CURVE(1, 5) << 8 | CURVE(1, 4)); in set_gamma()
144 write_reg(par, 0x0035, CURVE(1, 7) << 8 | CURVE(1, 6)); in set_gamma()
145 write_reg(par, 0x0036, CURVE(1, 9) << 8 | CURVE(1, 8)); in set_gamma()
146 write_reg(par, 0x0037, CURVE(1, 3) << 8 | CURVE(1, 2)); in set_gamma()
[all …]
Dfb_st7735r.c136 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] macro
144 CURVE(i, j) &= 0x3f; in set_gamma()
148 CURVE(i, 0), CURVE(i, 1), in set_gamma()
149 CURVE(i, 2), CURVE(i, 3), in set_gamma()
150 CURVE(i, 4), CURVE(i, 5), in set_gamma()
151 CURVE(i, 6), CURVE(i, 7), in set_gamma()
152 CURVE(i, 8), CURVE(i, 9), in set_gamma()
153 CURVE(i, 10), CURVE(i, 11), in set_gamma()
154 CURVE(i, 12), CURVE(i, 13), in set_gamma()
155 CURVE(i, 14), CURVE(i, 15)); in set_gamma()
[all …]
Dfb_hx8347d.c95 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] macro
108 acc += CURVE(i, j); in set_gamma()
109 CURVE(i, j) &= mask[j]; in set_gamma()
116 write_reg(par, 0x40 + (i * 0x10), CURVE(i, 0)); in set_gamma()
117 write_reg(par, 0x41 + (i * 0x10), CURVE(i, 1)); in set_gamma()
118 write_reg(par, 0x42 + (i * 0x10), CURVE(i, 2)); in set_gamma()
119 write_reg(par, 0x43 + (i * 0x10), CURVE(i, 3)); in set_gamma()
120 write_reg(par, 0x44 + (i * 0x10), CURVE(i, 4)); in set_gamma()
121 write_reg(par, 0x45 + (i * 0x10), CURVE(i, 5)); in set_gamma()
122 write_reg(par, 0x46 + (i * 0x10), CURVE(i, 6)); in set_gamma()
[all …]
/kernel/linux/linux-6.6/drivers/staging/fbtft/
Dfb_hx8340bn.c145 * Gamma Curve selection, GC (only GC0 can be customized):
151 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] macro
164 CURVE(i, j) &= mask[i * par->gamma.num_values + j]; in set_gamma()
167 write_reg(par, MIPI_DCS_SET_GAMMA_CURVE, 1 << CURVE(1, 14)); in set_gamma()
169 if (CURVE(1, 14)) in set_gamma()
173 (CURVE(0, 8) << 4) | CURVE(0, 7), in set_gamma()
174 (CURVE(0, 10) << 4) | CURVE(0, 9), in set_gamma()
175 (CURVE(0, 12) << 4) | CURVE(0, 11), in set_gamma()
176 CURVE(0, 2), in set_gamma()
177 (CURVE(0, 4) << 4) | CURVE(0, 3), in set_gamma()
[all …]
Dfb_s6d1121.c119 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] macro
132 CURVE(i, j) &= mask[i * par->gamma.num_values + j]; in set_gamma()
134 write_reg(par, 0x0030, CURVE(0, 1) << 8 | CURVE(0, 0)); in set_gamma()
135 write_reg(par, 0x0031, CURVE(0, 3) << 8 | CURVE(0, 2)); in set_gamma()
136 write_reg(par, 0x0032, CURVE(0, 5) << 8 | CURVE(0, 3)); in set_gamma()
137 write_reg(par, 0x0033, CURVE(0, 7) << 8 | CURVE(0, 6)); in set_gamma()
138 write_reg(par, 0x0034, CURVE(0, 9) << 8 | CURVE(0, 8)); in set_gamma()
139 write_reg(par, 0x0035, CURVE(0, 11) << 8 | CURVE(0, 10)); in set_gamma()
141 write_reg(par, 0x0036, CURVE(1, 1) << 8 | CURVE(1, 0)); in set_gamma()
142 write_reg(par, 0x0037, CURVE(1, 3) << 8 | CURVE(1, 2)); in set_gamma()
[all …]
Dfb_ssd1289.c125 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] macro
137 CURVE(i, j) &= mask[i * par->gamma.num_values + j]; in set_gamma()
139 write_reg(par, 0x0030, CURVE(0, 5) << 8 | CURVE(0, 4)); in set_gamma()
140 write_reg(par, 0x0031, CURVE(0, 7) << 8 | CURVE(0, 6)); in set_gamma()
141 write_reg(par, 0x0032, CURVE(0, 9) << 8 | CURVE(0, 8)); in set_gamma()
142 write_reg(par, 0x0033, CURVE(0, 3) << 8 | CURVE(0, 2)); in set_gamma()
143 write_reg(par, 0x0034, CURVE(1, 5) << 8 | CURVE(1, 4)); in set_gamma()
144 write_reg(par, 0x0035, CURVE(1, 7) << 8 | CURVE(1, 6)); in set_gamma()
145 write_reg(par, 0x0036, CURVE(1, 9) << 8 | CURVE(1, 8)); in set_gamma()
146 write_reg(par, 0x0037, CURVE(1, 3) << 8 | CURVE(1, 2)); in set_gamma()
[all …]
Dfb_st7735r.c136 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] macro
144 CURVE(i, j) &= 0x3f; in set_gamma()
148 CURVE(i, 0), CURVE(i, 1), in set_gamma()
149 CURVE(i, 2), CURVE(i, 3), in set_gamma()
150 CURVE(i, 4), CURVE(i, 5), in set_gamma()
151 CURVE(i, 6), CURVE(i, 7), in set_gamma()
152 CURVE(i, 8), CURVE(i, 9), in set_gamma()
153 CURVE(i, 10), CURVE(i, 11), in set_gamma()
154 CURVE(i, 12), CURVE(i, 13), in set_gamma()
155 CURVE(i, 14), CURVE(i, 15)); in set_gamma()
[all …]
/kernel/linux/linux-5.10/crypto/
Decc.h40 * struct ecc_point - elliptic curve point in affine coordinates
55 * struct ecc_curve - definition of elliptic curve
57 * @name: Short name of the curve.
58 * @g: Generator point of the curve.
59 * @p: Prime number, if Barrett's reduction is used for this curve
63 * @n: Order of the curve group.
64 * @a: Curve parameter a.
65 * @b: Curve parameter b.
92 * ecc_get_curve() - Get a curve given its curve_id
93 * @curve_id: Id of the curve
[all …]
Decrdsa.c3 * Elliptic Curve (Russian) Digital Signature Algorithm for Cryptographic API
38 const struct ecc_curve *curve; /* curve from oid */ member
88 * Digest value, digest algorithm, and curve (modulus) should have the in ecrdsa_verify()
92 if (!ctx->curve || in ecrdsa_verify()
97 req->dst_len != ctx->curve->g.ndigits * sizeof(u64) || in ecrdsa_verify()
98 ctx->pub_key.ndigits != ctx->curve->g.ndigits || in ecrdsa_verify()
116 vli_cmp(r, ctx->curve->n, ndigits) >= 0 || in ecrdsa_verify()
118 vli_cmp(s, ctx->curve->n, ndigits) >= 0) in ecrdsa_verify()
124 if (vli_cmp(e, ctx->curve->n, ndigits) >= 0) in ecrdsa_verify()
125 vli_sub(e, e, ctx->curve->n, ndigits); in ecrdsa_verify()
[all …]
Decc.c550 * Handbook of Elliptic and Hyperelliptic Curve Cryptography.
900 const struct ecc_curve *curve) in vli_mmod_fast() argument
903 const u64 *curve_prime = curve->p; in vli_mmod_fast()
904 const unsigned int ndigits = curve->g.ndigits; in vli_mmod_fast()
907 if (strncmp(curve->name, "nist_", 5) != 0) { in vli_mmod_fast()
942 * Assumes that mod is big enough curve order.
956 const struct ecc_curve *curve) in vli_mod_mult_fast() argument
960 vli_mult(product, left, right, curve->g.ndigits); in vli_mod_mult_fast()
961 vli_mmod_fast(result, product, curve); in vli_mod_mult_fast()
966 const struct ecc_curve *curve) in vli_mod_square_fast() argument
[all …]
/kernel/linux/linux-6.6/drivers/crypto/intel/keembay/
Dkeembay-ocs-ecc.c96 * @curve: The elliptic curve used by this transformation.
101 const struct ecc_curve *curve; member
224 const struct ecc_curve *curve) in kmb_ecc_point_mult() argument
227 u32 op_size = (curve->g.ndigits > ECC_CURVE_NIST_P256_DIGITS) ? in kmb_ecc_point_mult()
229 size_t nbytes = digits_to_bytes(curve->g.ndigits); in kmb_ecc_point_mult()
273 /* Write p = curve prime(GF modulus). */ in kmb_ecc_point_mult()
275 curve->p, nbytes); in kmb_ecc_point_mult()
277 /* Write a = curve coefficient. */ in kmb_ecc_point_mult()
279 curve->a, nbytes); in kmb_ecc_point_mult()
299 * @curve: The curve on which the operation is performed.
[all …]
/kernel/linux/linux-6.6/include/crypto/
Decc_curve.h10 * struct ecc_point - elliptic curve point in affine coordinates
23 * struct ecc_curve - definition of elliptic curve
25 * @name: Short name of the curve.
26 * @g: Generator point of the curve.
27 * @p: Prime number, if Barrett's reduction is used for this curve
31 * @n: Order of the curve group.
32 * @a: Curve parameter a.
33 * @b: Curve parameter b.
45 * ecc_get_curve() - get elliptic curve;
49 * Returns curve if get curve succssful, NULL otherwise
[all …]
/kernel/linux/linux-6.6/crypto/
Decc.c46 /* Returns curv25519 curve param */
583 * Handbook of Elliptic and Hyperelliptic Curve Cryptography.
933 const struct ecc_curve *curve) in vli_mmod_fast() argument
936 const u64 *curve_prime = curve->p; in vli_mmod_fast()
937 const unsigned int ndigits = curve->g.ndigits; in vli_mmod_fast()
940 if (strncmp(curve->name, "nist_", 5) != 0) { in vli_mmod_fast()
975 * Assumes that mod is big enough curve order.
989 const struct ecc_curve *curve) in vli_mod_mult_fast() argument
993 vli_mult(product, left, right, curve->g.ndigits); in vli_mod_mult_fast()
994 vli_mmod_fast(result, product, curve); in vli_mod_mult_fast()
[all …]
Decrdsa.c3 * Elliptic Curve (Russian) Digital Signature Algorithm for Cryptographic API
38 const struct ecc_curve *curve; /* curve from oid */ member
88 * Digest value, digest algorithm, and curve (modulus) should have the in ecrdsa_verify()
92 if (!ctx->curve || in ecrdsa_verify()
97 req->dst_len != ctx->curve->g.ndigits * sizeof(u64) || in ecrdsa_verify()
98 ctx->pub_key.ndigits != ctx->curve->g.ndigits || in ecrdsa_verify()
116 vli_cmp(r, ctx->curve->n, ndigits) >= 0 || in ecrdsa_verify()
118 vli_cmp(s, ctx->curve->n, ndigits) >= 0) in ecrdsa_verify()
124 if (vli_cmp(e, ctx->curve->n, ndigits) >= 0) in ecrdsa_verify()
125 vli_sub(e, e, ctx->curve->n, ndigits); in ecrdsa_verify()
[all …]

12345678910>>...12