capsule_core/crypto/keys/
mod.rs1pub(crate) mod album;
11#[cfg(feature = "native")]
15pub mod albumstore;
16pub mod directory;
17pub(crate) mod hardware;
18pub(crate) mod hybrid_sig;
19pub(crate) mod kem;
20pub(crate) mod kem_p256;
21pub(crate) mod keystore;
22pub(crate) mod master;
23pub(crate) mod p256;
24pub(crate) mod safety_code;
25pub(crate) mod signer;
26pub(crate) mod software;
27
28pub use album::{Amk, AmkVersion};
29#[cfg(feature = "native")]
30pub use albumstore::{
31 ALBUM_STORE_FILE, AlbumStore, AlbumStoreError, AmkRow, EscrowCoverage, PersistedAlbum,
32 PersistedAuthority,
33};
34pub use directory::{DekPublic, DeviceDirectory, DeviceEntry, DirectoryCore, DirectoryError};
35#[cfg(any(test, feature = "test-support"))]
38pub use hardware::MockHardwareSigner;
39pub use hardware::{
40 HardwareBackedSigner, HardwareKeyAgreement, HardwareSigner, HardwareSignerError,
41};
42pub use hybrid_sig::{ClassicalAlgorithm, HybridSignature, HybridSigningKey, HybridVerifyingKey};
43pub use kem::ESEED_LEN;
47pub(crate) use kem::encapsulate_to_public_derand;
48pub use kem::{DEK_CIPHERTEXT_LEN, DEK_PUBLIC_LEN, DekKeypair, encapsulate_to_public};
49#[cfg(any(test, feature = "test-support"))]
50pub use kem_p256::MockP256KeyAgreement;
51pub use kem_p256::{
52 DEK_P256_CIPHERTEXT_LEN, DEK_P256_PUBLIC_LEN, P256HybridDek, encapsulate_to_p256_public,
53};
54pub use keystore::{Account, AccountFile, DekBinding, DeviceDek, DeviceKeys};
55pub use master::MasterKey;
56pub use p256::P256HybridSigningKey;
57pub use safety_code::{
58 KEY_COMMITMENT_LEN, SAFETY_CODE_CHUNK, SAFETY_CODE_DIGITS, commitment_matches, key_commitment,
59 safety_code,
60};
61pub use signer::Signer;
62pub use software::SoftwareSigner;