kanidm / hsm-crypto

A library for cryptographic operations backed by a HSM or TPM
Mozilla Public License 2.0
5 stars 5 forks source link

20231005 basic structures #2

Closed Firstyear closed 1 year ago

Firstyear commented 1 year ago

This adds the basic structures that I want to achieve here. It creates a Hsm trait which has certain operations, and the ability to create keys related to a context. This matches the behaviour of Tpm's that we intend to wrap next.

In addition the immediate benefit of this is that we have the ability to aes-256-gcm encrypt hmac keys at rest.