Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable support for secp521r1 #512

Merged
merged 1 commit into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/bolos/cx_ec_domain.c
Original file line number Diff line number Diff line change
Expand Up @@ -1539,11 +1539,9 @@ int cx_nid_from_curve(cx_curve_t curve)
case CX_CURVE_BLS12_381_G1:
nid = NID_undef;
break;
#if 0
case CX_CURVE_SECP521R1:
nid = NID_secp521r1;
break;
#endif
default:
nid = -1;
errx(1, "cx_nid_from_curve unsupported curve");
Expand Down
1 change: 1 addition & 0 deletions src/bolos/cx_ecpoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ cx_err_t sys_cx_ecpoint_scalarmul(cx_ecpoint_t *ec_P, const uint8_t *k,
case CX_CURVE_SECP256K1:
case CX_CURVE_SECP256R1:
case CX_CURVE_SECP384R1:
case CX_CURVE_SECP521R1:
case CX_CURVE_Stark256:
case CX_CURVE_BrainPoolP256R1:
case CX_CURVE_BrainPoolP256T1:
Expand Down
Loading