It seems like in openssl
, you can generate RSA keys and enc/decrypt (openssl::rsa::Rsa - Rust) but not sign, while in ring
, you can only sign/verify but not
generate or enc/decrypt (ring::signature - Rust).
So if I wanted to generate a key and use it to sign something, I would need openssl
to generate it and ring
to do the signing? One tiny problem: ring::signature::RSAKeyPair - Rust you can't just feed the public and private keys to ring::signature::RSAKeyPair - it has to first be formatted with some format.
So it seems like I would need 3 different libraries for this (assuming there is some library for formatting it in PKCS#8 or DER)?
Edit: Oh it seems like signing would rather be done throught this module openssl::sign - Rust - openssl
it is then.