Expand description
PKCS#11 function-table layouts, catalogs, selection, and readers.
Without the default native feature, this is a dependency-free no_std
crate for inspecting little-endian Linux LP64 and ILP32 table snapshots.
The native feature adds tables derived from the compilation target’s
cryptoki-sys bindings, helpers for live native tables, and native
parameter declarations in the params module.
Version and provenance values passed to selection APIs are assertions made by the caller. This crate validates supported combinations and read bounds; it does not authenticate where a table came from.
Re-exports§
pub use layout::FUNCTION_NAMES;pub use layout::InterfaceLayout;pub use layout::LayoutError;pub use layout::LinuxLayout;pub use layout::Provenance;pub use layout::Selection;pub use layout::Version;pub use layout::function_name;pub use layout::function_offset;pub use layout::read_function_pointer;pub use layout::read_word_le;pub use layout::select;pub use layout::table_bytes;pub use params::CK_MU_GEN_PARAMS;pub use params::CK_MU_GEN_PARAMS_PTR;pub use params::CK_X9_42_MQV_DERIVE_PARAMS;pub use params::CK_X9_42_MQV_DERIVE_PARAMS_PTR;pub use params::CKM_ML_DSA_EXTERNAL_MU;pub use params::CKM_ML_DSA_EXTERNAL_MU_GEN;pub use tables::FUNCTION_LIST_3_0_EXTRA_FIELDS;pub use tables::FUNCTION_LIST_3_2_EXTRA_FIELDS;pub use tables::FUNCTION_LIST_FIELDS;pub use tables::FnField;pub use tables::Surface;pub use tables::TableSet;pub use tables::TableSpan;pub use tables::detect_null_functions;pub use tables::read_fn_pointers;pub use tables::tables_for;
Modules§
- layout
- Allocation-free PKCS#11 function-table layout facts for Linux LP64 and ILP32.
- params
- Native parameter declarations for little-endian Linux LP64/ILP32.
- tables
- Compile-time tables mapping function field names to their byte offsets within CK_FUNCTION_LIST, CK_FUNCTION_LIST_3_0, and CK_FUNCTION_LIST_3_2.