1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#![warn(missing_docs)]
#![warn(missing_debug_implementations)]
extern crate base64;
extern crate byteorder;
#[macro_use] extern crate quick_error;
mod error;
mod debug;
mod stdimpls;
mod conversion;
pub mod openssh;
pub use error::Error;
pub enum PublicKey {
#[allow(missing_docs)]
Rsa { exponent: Vec<u8>, modulus: Vec<u8> },
Ed25519([u8; 32]),
}
pub enum PrivateKey {
#[allow(missing_docs)]
Rsa { n: Vec<u8>, e: Vec<u8>, d: Vec<u8>, iqmp: Vec<u8>,
p: Vec<u8>, q: Vec<u8> },
Ed25519([u8; 64]),
}