RustCrypto/traits

`elliptic_curve::SecretKey` supports `to_sec1_der_with_oid`

heliannuuthus opened this issue · 4 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

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

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

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

got it~, thanks :)