ssh-keys 0.1.4

Parser of ssh public and private keys
Documentation
//! Public and private key parser
//!
//! The only key format supported so far is ``openssh``.
//!
//! [Docs](https://docs.rs/ssh-keys/) |
//! [Github](https://github.com/tailhook/ssh-keys/) |
//! [Crate](https://crates.io/crates/ssh-keys)
//!
#![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;

/// Public key enum
pub enum PublicKey {
    /// RSA key
    #[allow(missing_docs)]
    Rsa { exponent: Vec<u8>, modulus: Vec<u8> },
    /// Ed25519 (eliptic curves) key
    Ed25519([u8; 32]),
}

/// Secret key enum
pub enum PrivateKey {
    /// RSA key
    #[allow(missing_docs)]
    Rsa { n: Vec<u8>, e: Vec<u8>, d: Vec<u8>, iqmp: Vec<u8>,
          p: Vec<u8>, q: Vec<u8> },
    /// Ed25519 (eliptic curves) key
    Ed25519([u8; 64]),
}