Crates.io | libyubihsm |
lib.rs | libyubihsm |
version | 0.2.1 |
source | src |
created_at | 2018-04-04 00:08:13.708716 |
updated_at | 2018-04-25 21:06:54.601091 |
description | FFI bindings to libyubihsm.so |
homepage | |
repository | https://github.com/coreos/libyubihsm-rs |
max_upload_size | |
id | 58863 |
size | 164,619 |
Rust library for interfacing with the YubiHSM2.
libyubihsm-rs requires the YubiHSM2 SDK in order
to build. Once downloaded, libyubihsm.so.1
(and a matching libyubihsm.so
symlink) should be
placed in the system library directory.
Before working with the YubiHSM2, it's recommended to read the Concepts
page in the YubiHSM2 documentation. As explained
there, most of the YubiHSM2's functionality requires the use of a Session
. Session
s can be
created through a Connector
, which connects to a running instance of yubihsm-connector
(which
is included in the SDK). Once a Session
has been obtained, it can be used for cryptographic
functions provided by the YubiHSM2.
libyubihsm-rs is published on crates. It can be added as a dependency by adding
the following to your Cargo.toml
:
[dependencies.libyubihsm]
version = "0.1"
Documentation is not currently hosted anywhere, but can be built by cloning this repository and
running cargo doc
.