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
#[macro_use] mod macros; mod private; #[cfg(feature = "http_signature")] pub mod http; #[cfg(feature = "jose")] pub mod jose; #[cfg(feature = "x509")] pub mod x509; pub mod algorithm_identifier; pub mod key; pub mod oids; pub mod pem; pub mod signature; pub use algorithm_identifier::AlgorithmIdentifier; #[cfg(test)] mod test_files { pub const RSA_2048_PK_7: &str = include_str!("../../test_assets/private_keys/rsa-2048-pk_7.key"); pub const RSA_4096_PK_3: &str = include_str!("../../test_assets/private_keys/rsa-4096-pk_3.key"); cfg_if::cfg_if! { if #[cfg(feature = "x509")] { pub const RSA_2048_PK_1: &str = include_str!("../../test_assets/private_keys/rsa-2048-pk_1.key"); pub const RSA_2048_PK_2: &str = include_str!("../../test_assets/private_keys/rsa-2048-pk_2.key"); pub const RSA_2048_PK_3: &str = include_str!("../../test_assets/private_keys/rsa-2048-pk_3.key"); pub const RSA_2048_PK_4: &str = include_str!("../../test_assets/private_keys/rsa-2048-pk_4.key"); pub const CSR: &str = include_str!("../../test_assets/certification_request.csr"); pub const INTERMEDIATE_CA: &str = include_str!("../../test_assets/intermediate_ca.crt"); pub const ROOT_CA: &str = include_str!("../../test_assets/root_ca.crt"); }} cfg_if::cfg_if! { if #[cfg(feature = "jose")] { pub const JOSE_JWT_EXAMPLE: &str = include_str!("../../test_assets/jose/jwt_example.txt"); pub const JOSE_JWT_WITH_EXP: &str = include_str!("../../test_assets/jose/jwt_with_exp.txt"); pub const JOSE_JWK_SET: &str = include_str!("../../test_assets/jose/jwk_set.json"); }} }