#hsm #signing #encryption

nethsm

A high-level library to interact with the API of a Nitrokey NetHSM

7 releases (breaking)

0.6.0 Sep 11, 2024
0.5.0 Sep 6, 2024
0.4.0 Aug 30, 2024
0.3.0 Jul 12, 2024
0.1.0 Mar 23, 2024

#1619 in Cryptography

Download history 1/week @ 2024-07-23 55/week @ 2024-07-30 150/week @ 2024-08-27 135/week @ 2024-09-03 181/week @ 2024-09-10 33/week @ 2024-09-17 28/week @ 2024-09-24 12/week @ 2024-10-01 4/week @ 2024-10-08

399 downloads per month
Used in 2 crates

Apache-2.0 OR MIT

375KB
4K SLoC

NetHSM

A high-level library abstracting the use of the nethsm-sdk-rs library.

The NetHSM is a hardware appliance, that serves as secure store for cryptographic keys. With the help of a REST API it is possible to communicate with the device (as well as the official nethsm container) for setup and various cryptographic actions.

The nethsm-sdk-rs library is auto-generated using openapi-generator. This leads to a broad API surface with sparse documentation, that this crate attempts to rectify with the help of a central struct used for authentication setup and communication.

Testing

This library is integration tested against Nitrokey's official nethsm container. To run these long running tests a podman installation is required. The tests handle the creation and teardown of containers as needed.

cargo test --all -- --ignored

License

This project is licensed under the terms of the Apache-2.0 and MIT.

Dependencies

~30–43MB
~753K SLoC