traits icon indicating copy to clipboard operation
traits copied to clipboard

`elliptic_curve::SecretKey` supports `to_sec1_der_with_oid`

Open heliannuuthus opened this issue 1 year ago • 3 comments

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

heliannuuthus avatar Aug 15 '24 03:08 heliannuuthus

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

tarcieri avatar Aug 15 '24 03:08 tarcieri

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

tarcieri avatar Aug 15 '24 19:08 tarcieri

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

got it~, thanks :)

heliannuuthus avatar Aug 16 '24 01:08 heliannuuthus

I believe this was fixed in #1707

tarcieri avatar Jan 21 '25 21:01 tarcieri