(data: &[u8], bits: u32)
| 23 | // PKCS#1 |
| 24 | |
| 25 | fn uint_from_slice(data: &[u8], bits: u32) -> pkcs1::Result<BoxedUint> { |
| 26 | BoxedUint::from_be_slice(data, bits).map_err(|_| pkcs1::Error::KeyMalformed) |
| 27 | } |
| 28 | |
| 29 | impl pkcs1::DecodeRsaPrivateKey for PrivateKey { |
| 30 | fn from_pkcs1_der(bytes: &[u8]) -> pkcs1::Result<Self> { |