13 releases
| 0.3.5 | Nov 21, 2025 |
|---|---|
| 0.3.4 | Jun 28, 2025 |
| 0.3.1 | Apr 15, 2025 |
| 0.2.0 | Mar 28, 2024 |
| 0.1.5 | Nov 30, 2023 |
#255 in Cryptography
3,742 downloads per month
Used in 19 crates
(3 directly)
150KB
3.5K
SLoC
Kanidm HSM Crypto
This library allows the use of HSM's, TPM's or SoftHSM's in cryptographic applications. The goal is to simplify interactions with these devices so that applications can utilise these.
Upgrading 0.2 to 0.3
Existing soft tpm keys will continue to work during this upgrade. Most types have changed name and path to better reflect their capabilities within a TPM.
- Tpm functionality has been broken down to specific traits allowing you to mix and match what you need.
- Keys are separated by their cryptographic type, rather than purpose.
- PIN's may now only be set on
StorageKeys. - OpenSSL is no longer required as a library.
ES256andRS256can now be used with X509 Certificate requests and operations.ES256andRS256keys no longer host/store their X509 Certificates.
Some structs have changed paths. This is not an complete list, but should give an idea about the changes.
kanidm_hsm_crypto::Loadable X Key->kanidm_hsm_crypto::structures::Loadable X Keykanidm_hsm_crypto::X Key->kanidm_hsm_crypto::structures::X Keykanidm_hsm_crypto::soft::SoftTpm->kanidm_hsm_crypto::provider::SoftTpmkanidm_hsm_crypto::BoxedDynTpm->kanidm_hsm_crypto::provider::BoxedDynTpmkanidm_hsm_crypto::IdentityKey->kanidm_hsm_crypto::structures::RS256KeyORkanidm_hsm_crypto::structures::ES256Key
There are a number of aliases available to help you rename some types.
Dependencies
~20–36MB
~544K SLoC