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

elliptic_curve::SecretKey supports to_sec1_der_with_oid #1646

Open
heliannuuthus opened this issue Aug 15, 2024 · 3 comments
Open

elliptic_curve::SecretKey supports to_sec1_der_with_oid #1646

heliannuuthus opened this issue Aug 15, 2024 · 3 comments

Comments

@heliannuuthus
Copy link

I see that the to_sec1_der() method currently specifies EcParameters::NamedCurve as Option::None. In the protocol(sec1#114), I see that this field is optional. Can I set it to the correct value or provide another method to return OID?

image

@tarcieri
Copy link
Member

It can be changed to introspect AssociatedOid and include it in the serialized document

@tarcieri
Copy link
Member

You're also free to change it yourself, though it should probably be included by default

@heliannuuthus
Copy link
Author

You're also free to change it yourself, though it should probably be included by default您也可以自己更改它,尽管它可能应该默认包含在内

got it~, thanks :)

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

No branches or pull requests

2 participants