Skip to content

Commit 21c2f96

Browse files
committed
sensible values in ec_curves for Ed448/X448
1 parent 3fe4fb5 commit 21c2f96

File tree

1 file changed

+24
-25
lines changed

1 file changed

+24
-25
lines changed

src/lib/crypto/ec_curves.cpp

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -263,36 +263,35 @@ static const ec_curve_desc_t ec_curves[] = {
263263
"0x32C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7",
264264
"0xBC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0",
265265
},
266-
/* TODO: correct values */
267266
#if defined(ENABLE_CRYPTO_REFRESH)
268267
{PGP_CURVE_ED448,
269-
0,
270-
{},
271-
0,
272-
"Ed25519",
273-
"Ed25519",
268+
255,
269+
{0x2B, 0x65, 0x71},
270+
3,
271+
"Ed448",
272+
"Ed448",
274273
true,
275-
"0x00",
276-
"0x00",
277-
"0x00",
278-
"0x00",
279-
"0x00",
280-
"0x00",
281-
"0x00"},
274+
"",
275+
"",
276+
"",
277+
"",
278+
"",
279+
"",
280+
""},
282281
{PGP_CURVE_448,
283-
0,
284-
{},
285-
0x00,
286-
"curve25519",
287-
"Curve25519",
282+
448,
283+
{0x2B, 0x65, 0x6F},
284+
3,
285+
"X448",
286+
"X448",
288287
true,
289-
"0x00",
290-
"0x00",
291-
"0x00",
292-
"0x00",
293-
"0x00",
294-
"0x00",
295-
"0x00"},
288+
"",
289+
"",
290+
"",
291+
"",
292+
"",
293+
"",
294+
""},
296295
#endif
297296
};
298297

0 commit comments

Comments
 (0)