Skip to content

group: Removes use of elliptic Marshal and Unmarshal functions.#556

Merged
armfazh merged 1 commit intocloudflare:mainfrom
armfazh:fixDepElliptic
Jul 21, 2025
Merged

group: Removes use of elliptic Marshal and Unmarshal functions.#556
armfazh merged 1 commit intocloudflare:mainfrom
armfazh:fixDepElliptic

Conversation

@armfazh
Copy link
Contributor

@armfazh armfazh commented Jul 17, 2025

Removes use of elliptic Marshal and Unmarshal functions.

Fixes #549

@armfazh armfazh requested review from Lekensteyn and bwesterb July 17, 2025 00:20
@armfazh armfazh added the fix-A-bug code that fix a bug label Jul 17, 2025
group/short.go Outdated
ec := e.wG.c
if e.wG == P384 {
ec = elliptic.P384()
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this line?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is because the ECDH function checks whether ec is an elliptic.Curve object.

I made changes to avoid this check.

@armfazh armfazh merged commit efd1dce into cloudflare:main Jul 21, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix-A-bug code that fix a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

group: elliptic.Marshal is deprecated

2 participants