-
I was trying to start from private and public pem files of EC key pairs, with the hope of building a client/server model similar to WireGuard's, where the pem files are used as the starting point of a short-lived secret key exchange but I thought I should be able to use a pure Rust crate and not have to resort to using the Rust openssl crate for reading the two types of pem file. The pem crate decodes the files into tag and contents nicely, but then I became stuck. Is the recommendation to use the openssl after all to convert to private and public keys, or is there a method here or another Rust crate that would be suitable? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There's no similar feature in e.g. |
Beta Was this translation helpful? Give feedback.
ed25519-dalek
supports this via thepkcs8
feature.There's no similar feature in e.g.
x25519-dalek
however it wouldn't be too hard to add using thepkcs8
crate.