| 1 | #![deny(warnings)] |
| 2 | #![deny(missing_docs)] |
| 3 | #![deny(missing_debug_implementations)] |
| 4 | |
| 5 | //! The `sshkeys` crate provides types and methods for parsing |
| 6 | //! OpenSSH public keys and certificates. |
| 7 | //! |
| 8 | //! The following public key types are supported. |
| 9 | //! |
| 10 | //! - RSA |
| 11 | //! - DSA |
| 12 | //! - ECDSA |
| 13 | //! - ED25519 |
| 14 | //! |
| 15 | //! The following OpenSSH certificate types are supported as well. |
| 16 | //! |
| 17 | //! - [email protected] |
| 18 | //! - [email protected] |
| 19 | //! - [email protected] |
| 20 | //! - [email protected] |
| 21 | //! - [email protected] |
| 22 | //! - [email protected] |
| 23 | //! |
| 24 | //! # Examples |
| 25 | //! |
| 26 | //! In order to view examples of this crate in use, please refer to the |
| 27 | //! `examples` directory. |
| 28 | |
| 29 | extern crate base64; |
| 30 | extern crate byteorder; |
| 31 | extern crate sha2; |
| 32 | |
| 33 | mod cert; |
| 34 | mod error; |
| 35 | mod keytype; |
| 36 | mod pubkey; |
| 37 | mod reader; |
| 38 | mod writer; |
| 39 | |
| 40 | // Serialization and deserialization support for sshkeys |
| 41 | #[cfg(feature = "serde")] |
| 42 | mod serde; |
| 43 | |
| 44 | pub use self::cert::{CertType, Certificate}; |
| 45 | pub use self::error::{Error, Result}; |
| 46 | pub use self::keytype::{KeyType, KeyTypeKind}; |
| 47 | pub use self::pubkey::{ |
| 48 | Curve, CurveKind, DsaPublicKey, EcdsaPublicKey, Ed25519PublicKey, Fingerprint, FingerprintKind, |
| 49 | PublicKey, PublicKeyKind, RsaPublicKey, |
| 50 | }; |
| 51 | pub use self::reader::Reader; |
| 52 | pub use self::writer::Writer; |