haskell-tls / hs-certificate

Certificate and Key Reader/Writer in haskell
60 stars 60 forks source link

EC serialize point function? #123

Open moll opened 4 years ago

moll commented 4 years ago

Hey!

Thanks for maintaining Cryptonite and the X509 related libraries!

I'm attempting to create a new X509 cert with an EC key. One step towards achieving that involves generating an EC key and putting its serialized point to X509.PubKeyEC_Named. While there is a function to deserialize bytes to a SerializedPoint, I noticed there's none to do the initial serialization Should there be? There are tests that do so, but those aren't part of the public API of the library.

Thanks!