bcgit / pc-dart

Pointy Castle - Dart Derived Bouncy Castle APIs
MIT License
241 stars 125 forks source link

Converting ECPrivateKey SEC1 to PCKS8 #198

Open romgrm opened 1 year ago

romgrm commented 1 year ago

Hello ! I'm currently generating an EC keypair that I encode in PEM format.

The back end to which I send the keys tells me that they need the Pkcs8 format and not SEC1.

I wonder if it's possible with this lib, to convert an ECPrivateKey to Pcks8? Or is it only for RSA keys?

Thanks :)