Crate cryptoki

source ·
Expand description

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.

§Conformance Notes

Throughout this crate, many functions and other items include additional “Conformance” notes. These notes may provide guarantees about behavior or additional, contextual information. In all cases, such items pertain to information from the PKCS#11 standard and are contingent on the provider being accessed through this crate conforming to that standard. That is, this crate is permitted to assume these guarantees, and is does not necessarily check for or enforce them itself.

Modules§

  • Pkcs11 context and initialization types
  • Pkcs11 return codes and crate Result/Error types
  • Data types for mechanisms
  • Object types (including Attributes)
  • Session types
  • Slot and token types
  • PKCS11 General Data Types