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
42
43
44
45
46
47
48
49
50
51
52
53
#![doc = include_str!("../README.md")]
#![no_std]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![doc(
html_logo_url = "https://raw.githubusercontent.com/RustCrypto/meta/master/logo.svg",
html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/meta/master/logo.svg",
html_root_url = "https://docs.rs/spki/0.5.4"
)]
#![forbid(unsafe_code, clippy::unwrap_used)]
#![warn(missing_docs, rust_2018_idioms, unused_qualifications)]
#[cfg(feature = "alloc")]
extern crate alloc;
#[cfg(feature = "std")]
extern crate std;
mod algorithm;
mod error;
mod spki;
mod traits;
#[cfg(feature = "alloc")]
mod document;
pub use crate::{
algorithm::AlgorithmIdentifier,
error::{Error, Result},
spki::SubjectPublicKeyInfo,
traits::DecodePublicKey,
};
pub use der::{self, asn1::ObjectIdentifier};
#[cfg(feature = "alloc")]
pub use crate::{document::PublicKeyDocument, traits::EncodePublicKey};