diff options
Diffstat (limited to 'src/lib/libcrypto/ec/ecp_nistp224.c')
-rw-r--r-- | src/lib/libcrypto/ec/ecp_nistp224.c | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/src/lib/libcrypto/ec/ecp_nistp224.c b/src/lib/libcrypto/ec/ecp_nistp224.c index 03f2d9c1d7..696024a549 100644 --- a/src/lib/libcrypto/ec/ecp_nistp224.c +++ b/src/lib/libcrypto/ec/ecp_nistp224.c | |||
@@ -233,51 +233,51 @@ typedef struct { | |||
233 | int references; | 233 | int references; |
234 | } NISTP224_PRE_COMP; | 234 | } NISTP224_PRE_COMP; |
235 | 235 | ||
236 | const EC_METHOD *EC_GFp_nistp224_method(void) | 236 | const EC_METHOD * |
237 | { | 237 | EC_GFp_nistp224_method(void) |
238 | { | ||
238 | static const EC_METHOD ret = { | 239 | static const EC_METHOD ret = { |
239 | EC_FLAGS_DEFAULT_OCT, | 240 | .flags = EC_FLAGS_DEFAULT_OCT, |
240 | NID_X9_62_prime_field, | 241 | .field_type = NID_X9_62_prime_field, |
241 | ec_GFp_nistp224_group_init, | 242 | .group_init = ec_GFp_nistp224_group_init, |
242 | ec_GFp_simple_group_finish, | 243 | .group_finish = ec_GFp_simple_group_finish, |
243 | ec_GFp_simple_group_clear_finish, | 244 | .group_clear_finish = ec_GFp_simple_group_clear_finish, |
244 | ec_GFp_nist_group_copy, | 245 | .group_copy = ec_GFp_nist_group_copy, |
245 | ec_GFp_nistp224_group_set_curve, | 246 | .group_set_curve = ec_GFp_nistp224_group_set_curve, |
246 | ec_GFp_simple_group_get_curve, | 247 | .group_get_curve = ec_GFp_simple_group_get_curve, |
247 | ec_GFp_simple_group_get_degree, | 248 | .group_get_degree = ec_GFp_simple_group_get_degree, |
248 | ec_GFp_simple_group_check_discriminant, | 249 | .group_check_discriminant = |
249 | ec_GFp_simple_point_init, | 250 | ec_GFp_simple_group_check_discriminant, |
250 | ec_GFp_simple_point_finish, | 251 | .point_init = ec_GFp_simple_point_init, |
251 | ec_GFp_simple_point_clear_finish, | 252 | .point_finish = ec_GFp_simple_point_finish, |
252 | ec_GFp_simple_point_copy, | 253 | .point_clear_finish = ec_GFp_simple_point_clear_finish, |
253 | ec_GFp_simple_point_set_to_infinity, | 254 | .point_copy = ec_GFp_simple_point_copy, |
254 | ec_GFp_simple_set_Jprojective_coordinates_GFp, | 255 | .point_set_to_infinity = ec_GFp_simple_point_set_to_infinity, |
255 | ec_GFp_simple_get_Jprojective_coordinates_GFp, | 256 | .point_set_Jprojective_coordinates_GFp = |
256 | ec_GFp_simple_point_set_affine_coordinates, | 257 | ec_GFp_simple_set_Jprojective_coordinates_GFp, |
257 | ec_GFp_nistp224_point_get_affine_coordinates, | 258 | .point_get_Jprojective_coordinates_GFp = |
258 | 0 /* point_set_compressed_coordinates */, | 259 | ec_GFp_simple_get_Jprojective_coordinates_GFp, |
259 | 0 /* point2oct */, | 260 | .point_set_affine_coordinates = |
260 | 0 /* oct2point */, | 261 | ec_GFp_simple_point_set_affine_coordinates, |
261 | ec_GFp_simple_add, | 262 | .point_get_affine_coordinates = |
262 | ec_GFp_simple_dbl, | 263 | ec_GFp_nistp224_point_get_affine_coordinates, |
263 | ec_GFp_simple_invert, | 264 | .add = ec_GFp_simple_add, |
264 | ec_GFp_simple_is_at_infinity, | 265 | .dbl = ec_GFp_simple_dbl, |
265 | ec_GFp_simple_is_on_curve, | 266 | .invert = ec_GFp_simple_invert, |
266 | ec_GFp_simple_cmp, | 267 | .is_at_infinity = ec_GFp_simple_is_at_infinity, |
267 | ec_GFp_simple_make_affine, | 268 | .is_on_curve = ec_GFp_simple_is_on_curve, |
268 | ec_GFp_simple_points_make_affine, | 269 | .point_cmp = ec_GFp_simple_cmp, |
269 | ec_GFp_nistp224_points_mul, | 270 | .make_affine = ec_GFp_simple_make_affine, |
270 | ec_GFp_nistp224_precompute_mult, | 271 | .points_make_affine = ec_GFp_simple_points_make_affine, |
271 | ec_GFp_nistp224_have_precompute_mult, | 272 | .mul = ec_GFp_nistp224_points_mul, |
272 | ec_GFp_nist_field_mul, | 273 | .precompute_mult = ec_GFp_nistp224_precompute_mult, |
273 | ec_GFp_nist_field_sqr, | 274 | .have_precompute_mult = ec_GFp_nistp224_have_precompute_mult, |
274 | 0 /* field_div */, | 275 | .field_mul = ec_GFp_nist_field_mul, |
275 | 0 /* field_encode */, | 276 | .field_sqr = ec_GFp_nist_field_sqr |
276 | 0 /* field_decode */, | 277 | }; |
277 | 0 /* field_set_to_one */ }; | ||
278 | 278 | ||
279 | return &ret; | 279 | return &ret; |
280 | } | 280 | } |
281 | 281 | ||
282 | /* Helper functions to convert field elements to/from internal representation */ | 282 | /* Helper functions to convert field elements to/from internal representation */ |
283 | static void bin28_to_felem(felem out, const u8 in[28]) | 283 | static void bin28_to_felem(felem out, const u8 in[28]) |