| Crates.io | kanidm-hsm-crypto |
| lib.rs | kanidm-hsm-crypto |
| version | 0.3.4 |
| created_at | 2023-11-01 01:41:21.11401+00 |
| updated_at | 2025-06-28 00:49:31.799432+00 |
| description | A library for easily interacting with a HSM or TPM |
| homepage | https://github.com/kanidm/hsm-crypto/ |
| repository | https://github.com/kanidm/hsm-crypto/ |
| max_upload_size | |
| id | 1020565 |
| size | 216,395 |
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.
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.
StorageKeys.ES256 and RS256 can now be used with X509 Certificate requests and operations.ES256 and RS256 keys 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::RS256Key OR kanidm_hsm_crypto::structures::ES256KeyThere are a number of aliases available to help you rename some types.