#pkcs11 #cryptoki #hsm

cryptoki

Rust-native wrapper around the PKCS #11 API

4 releases (2 breaking)

0.3.0 Jan 14, 2022
0.2.0 Aug 3, 2021
0.1.1 Mar 31, 2021
0.1.0 Mar 18, 2021

#73 in Hardware support

Download history 30/week @ 2021-10-06 193/week @ 2021-10-13 236/week @ 2021-10-20 141/week @ 2021-10-27 210/week @ 2021-11-03 206/week @ 2021-11-10 150/week @ 2021-11-17 323/week @ 2021-11-24 136/week @ 2021-12-01 139/week @ 2021-12-08 65/week @ 2021-12-15 17/week @ 2021-12-22 49/week @ 2021-12-29 204/week @ 2022-01-05 267/week @ 2022-01-12 106/week @ 2022-01-19

629 downloads per month
Used in parsec-service

Apache-2.0

1MB
26K SLoC

Cryptoki Rust Wrapper

Crates.io Code documentation

This is the high-level, Rust idiomatic wrapper crate for PKCS #11.

Copyright 2021 Contributors to the Parsec project.


lib.rs:

Rust PKCS11 new abstraction

The items in the new module only expose idiomatic and safe Rust types and functions to interface with the PKCS11 API. All the PKCS11 items might not be implemented but everything that is implemented is safe.

The modules under new follow the structure of the PKCS11 document version 2.40 available here.

Dependencies

~0.4–2MB
~43K SLoC