removed unused der parsing
diff --git a/src/crypto.rs b/src/crypto.rs
index 650698d..f4512fa 100644
--- a/src/crypto.rs
+++ b/src/crypto.rs
@@ -657,21 +657,6 @@
}
}
-fn from_pkcs1(input: &[u8]) -> Option<Vec<u8>> {
- let _input = Input::from(&input);
- _input
- .read_all(derp::Error::Read, |i| {
- derp::nested(i, Tag::Sequence, |i| {
- let _ = derp::positive_integer(i)?;
- let _ = derp::positive_integer(i)?;
- // if the input was already pkcs1, just return it
- Ok(input.to_vec())
- })
- })
- .ok()
-}
-
-
fn write_spki(public: &[u8], key_type: &KeyType) -> ::std::result::Result<Vec<u8>, derp::Error> {
let mut output = Vec::new();
{