RustCrypto / RSA

RSA implementation in pure Rust
Apache License 2.0
536 stars 146 forks source link

there is an associated function `from_pkcs8_pem` with a similar name #430

Closed OstrichRunning closed 3 months ago

OstrichRunning commented 3 months ago

let mut pem = String::new(); let private_key = RsaPrivateKey::from_pkcs1_pem(&pem)?;

tarcieri commented 3 months ago

Yes? PKCS#1 and PKCS#8 are two different standards for encoding RSA keys. PKCS#8 is a newer format and acts as a wrapper for the older PKCS#1, which was RSA only.

What is your specific concern?

OstrichRunning commented 3 months ago

Yes? PKCS#1 and PKCS#8 are two different standards for encoding RSA keys. PKCS#8 is a newer format and acts as a wrapper for the older PKCS#1, which was RSA only.

What is your specific concern?

I understand