1#![deny(warnings)]
2#![allow(dead_code)]
3#![warn(unused_extern_crates)]
4#![deny(clippy::suspicious)]
6#![deny(clippy::perf)]
7#![deny(clippy::todo)]
9#![deny(clippy::unimplemented)]
10#![deny(clippy::unwrap_used)]
11#![deny(clippy::expect_used)]
12#![deny(clippy::panic)]
13#![deny(clippy::await_holding_lock)]
14#![deny(clippy::needless_pass_by_value)]
15#![deny(clippy::trivially_copy_pass_by_ref)]
16#![deny(clippy::disallowed_types)]
17#![deny(clippy::manual_let_else)]
18#![allow(clippy::unreachable)]
19
20mod authvalue;
21mod error;
22mod pin;
23pub mod provider;
24pub mod structures;
25
26pub use crypto_glue as glue;
27pub use {authvalue::AuthValue, error::TpmError, pin::PinValue};
28
29pub(crate) mod wrap;
30
31#[cfg(test)]
32mod tests;
33
34#[deprecated(since = "0.3.0", note = "Use `kanidm_hsm_crypto::provider`")]
36pub mod soft {
37 #[deprecated(
38 since = "0.3.0",
39 note = "Use `kanidm_hsm_crypto::provider::SoftTpm` instead."
40 )]
41 pub struct SoftTpm;
42}
43
44#[deprecated(
45 since = "0.3.0",
46 note = "Use `kanidm_hsm_crypto::provider::BoxedDynTpm` instead."
47)]
48pub struct BoxedDynTpm;
49
50#[deprecated(
51 since = "0.3.0",
52 note = "Use `kanidm_hsm_crypto::structures::LoadableHmacS256Key` instead."
53)]
54pub struct LoadableHmacKey;
55
56#[deprecated(
57 since = "0.3.0",
58 note = "Use `kanidm_hsm_crypto::structures::LoadableStorageKey` instead."
59)]
60pub struct LoadableMachineKey;
61
62#[deprecated(
63 since = "0.3.0",
64 note = "Use `kanidm_hsm_crypto::provider::Tpm` and associated traits instead."
65)]
66pub trait Tpm {}
67
68#[deprecated(
69 since = "0.3.0",
70 note = "Use `kanidm_hsm_crypto::structures::LoadableRS256Key` instead."
71)]
72pub struct LoadableMsOapxbcRsaKey;
73
74#[deprecated(
75 since = "0.3.0",
76 note = "Use `kanidm_hsm_crypto::structures::SealedData` instead."
77)]
78pub struct LoadableMsOapxbcSessionKey;
79
80#[deprecated(
81 since = "0.3.0",
82 note = "Use `kanidm_hsm_crypto::structures::HmacS256Key` instead."
83)]
84pub struct HmacKey;