Skip to main content

bergshamra_keys/
lib.rs

1#![forbid(unsafe_code)]
2
3//! Key management for the Bergshamra 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 [`tsp_ltv`]
12//! crate. This follows the same "thin facade" pattern used by underskrift
13//! (PDF signing library).
14
15pub mod key;
16pub mod keyinfo;
17pub mod keysxml;
18pub mod loader;
19pub mod manager;
20pub mod trust;
21pub mod x509;
22
23// Re-export shared infrastructure from tsp-ltv
24pub use tsp_ltv::crypto as tsp_crypto;
25pub use tsp_ltv::error as tsp_error;
26
27pub use key::{Key, KeyData, KeyUsage};
28pub use keyinfo::{build_x509_key_info, build_x509_key_info_from_der};
29pub use manager::KeysManager;