Skip to main content

ribergshamra_keys/
lib.rs

1#![forbid(unsafe_code)]
2
3//! Key management for the ribergshamra XML Security library.
4//!
5//! Supports loading keys from PEM, DER, PKCS#8, PKCS#12, and raw binary formats.
6//! Provides a `KeysManager` for named key lookup and a `KeyInfo` XML processor.
7//!
8//! ## Shared infrastructure
9//!
10//! Trust store management, certificate chain building/verification, and
11//! cryptographic algorithm support are re-exported from the shared [`ritsp_ltv`]
12//! crate. This follows the same "thin facade" pattern used by underskrift
13//! (PDF signing library).
14
15#[cfg(feature = "rustcrypto")]
16pub mod key;
17#[cfg(not(feature = "rustcrypto"))]
18#[path = "alternate/key.rs"]
19pub mod key;
20pub mod keyinfo;
21pub mod keysxml;
22#[cfg(feature = "rustcrypto")]
23pub mod loader;
24#[cfg(not(feature = "rustcrypto"))]
25#[path = "alternate/loader.rs"]
26pub mod loader;
27pub mod manager;
28pub mod trust;
29pub mod x509;
30
31// Re-export shared infrastructure from ritsp-ltv
32pub use ritsp_ltv::crypto as tsp_crypto;
33pub use ritsp_ltv::error as tsp_error;
34
35pub use key::{Key, KeyData, KeyUsage};
36pub use keyinfo::{build_x509_key_info, build_x509_key_info_from_der};
37pub use manager::KeysManager;