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

use noble/curves #358

Merged
merged 1 commit into from
Dec 17, 2023
Merged

use noble/curves #358

merged 1 commit into from
Dec 17, 2023

Conversation

shinyoshiaki
Copy link
Owner

@shinyoshiaki shinyoshiaki commented Dec 17, 2023

@shinyoshiaki shinyoshiaki merged commit bfea242 into develop Dec 17, 2023
4 checks passed
publicKey: Buffer;
privateKey: Buffer;
}): Buffer => {
const elliptic = new ec("p256"); // aka secp256r1
Copy link
Collaborator

Choose a reason for hiding this comment

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

elliptic is still being used here? seem to have added a dependency rather than replaced.

Choose a reason for hiding this comment

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

yeah, seems like useless change

Copy link
Collaborator

@koush koush Dec 17, 2023

Choose a reason for hiding this comment

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

that code isn't used anymore, from what I see it looks like it was there to validate elliptic vs noble/curves outputs side by side, but not removed after validation. I've already submitted a pull request to completely remove elliptic.


import { NamedCurveAlgorithm, NamedCurveAlgorithms } from "./const";
import { old_p256PreMasterSecret, p256PreMasterSecret } from "./ec";
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think old_p256PreMasterSecret needs to be removed? not seeing it used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants