#signing #hsm #encryption

nethsm

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

11 releases (6 breaking)

new 0.7.3 Dec 13, 2024
0.7.1 Nov 27, 2024
0.3.0 Jul 12, 2024
0.1.0 Mar 23, 2024

#636 in Cryptography

Download history 152/week @ 2024-08-29 227/week @ 2024-09-05 101/week @ 2024-09-12 33/week @ 2024-09-19 22/week @ 2024-09-26 6/week @ 2024-10-03 2/week @ 2024-10-10 213/week @ 2024-11-21 109/week @ 2024-11-28 134/week @ 2024-12-05

456 downloads per month
Used in 6 crates (4 directly)

Apache-2.0 OR MIT

445KB
5K 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.

Documentation

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

Contributing

Please refer to the contributing guidelines to learn how to contribute to this project.

License

This project may be used under the terms of the Apache-2.0 or MIT license.

Changes to this project - unless stated otherwise - automatically fall under the terms of both of the aforementioned licenses.

Dependencies

~31–43MB
~767K SLoC