We have rsa::KeyPair::from_pkcs8, but no ec::KeyPair::from_pkcs8 (that I can see).
(Ideally, I'd like a fn that could load either EC or RSA private keys without the application have to know which it has got)
Reading unwrap_key*(), I see that the purpose of the template, which is loaded as a literal OID value,
it seems that it's just the alg_id_value in OID format. unwrap__() compares it as a ("less safe") slice.
Why have an external file for a single OID, which is then turned into an untrusted::Input, when it could just be a literal static slice?
We have rsa::KeyPair::from_pkcs8, but no ec::KeyPair::from_pkcs8 (that I can see).
(Ideally, I'd like a fn that could load either EC or RSA private keys without the application have to know which it has got)
Reading unwrap_key*(), I see that the purpose of the template, which is loaded as a literal OID value,
it seems that it's just the alg_id_value in OID format. unwrap__() compares it as a ("less safe") slice.
Why have an external file for a single OID, which is then turned into an untrusted::Input, when it could just be a literal static slice?