Expand description
Raw PKCS#11 provider acquisition and ABI-layout reexports.
With the default native feature, function_list and interface_list
call provider exports without calling C_Initialize. Loading a provider can
execute foreign code, and pointers returned by acquisition remain usable
only while the provider library and its data remain valid.
Without default features, this is a no_std wrapper around pkcs11_abi
with no other dependencies. That build provides target-layout APIs;
native tables, parameter declarations and acquisition require native.
Re-exports§
pub use acquire::RawInterface;pub use acquire::function_list;pub use acquire::interface_list;
Modules§
- acquire
- Raw function-table acquisition before PKCS#11 initialization.
- 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.
Structs§
- CK_
MU_ GEN_ PARAMS - Proposed parameters for
CKM_ML_DSA_EXTERNAL_MU_GEN. - CK_
X9_ 42_ MQV_ DERIVE_ PARAMS - X9.42 MQV parameters using the published
pOtherInfo,pPublicData, andpPublicData2field names. - FnField
- A (field_name, byte_offset) pair for a function pointer field.
- Interface
Layout - Byte offsets and total stride of one
CK_INTERFACEentry. - Table
Span - A prefix of one shared field table. The 2.00 ABI reuses the first 67 entries of the 68-entry base table instead of copying their names.
- Version
- A PKCS#11 major/minor version used for table-prefix selection.
Enums§
- Layout
Error - Failure while calculating or reading a target layout.
- Linux
Layout - A supported little-endian Linux PKCS#11 data model.
- Provenance
- Caller-asserted route by which a function table was obtained.
- Selection
- Result of selecting the safely understood portion of a function table.
- Surface
- Caller-asserted origin and reported version of a function table.
- Table
Set - The tables that may be walked over a surface, in walk order.
Constants§
- CKM_
ML_ DSA_ EXTERNAL_ MU - Proposed ML-DSA signing/verification of externally generated mu (
0x403c). - CKM_
ML_ DSA_ EXTERNAL_ MU_ GEN - Proposed ML-DSA external-mu generation identifier (
0x403b).
Statics§
- FUNCTION_
LIST_ 3_ 0_ EXTRA_ FIELDS - The 24 native
CK_FUNCTION_LIST_3_0additions. - FUNCTION_
LIST_ 3_ 2_ EXTRA_ FIELDS - The 12 native
CK_FUNCTION_LIST_3_2additions. - FUNCTION_
LIST_ FIELDS - All 68 native
CK_FUNCTION_LISTfunction fields. - FUNCTION_
NAMES - All standard function names in table order. The slice index is the ordinal.
Functions§
- detect_
null_ ⚠functions - Check a function list struct for NULL function pointers.
- function_
name - Return the name for an ordinal in the shared 104-field catalog.
- function_
offset - Return a target byte offset for a function-pointer ordinal.
- read_
fn_ pointers - Read every function-pointer field from an owned table snapshot.
- read_
function_ pointer - Read a complete function pointer by ordinal from a target snapshot.
- read_
word_ le - Read one complete little-endian target word, zero-extending ILP32 words to
u64. - select
- Bind validated version and provenance to the safe function-list prefix.
- table_
bytes - Return the exact target bytes occupied by a known function-list prefix.
- tables_
for - Select the native field-table spans that are safe for the asserted surface.
Type Aliases§
- CK_
MU_ GEN_ PARAMS_ PTR - Raw pointer to caller-managed
CK_MU_GEN_PARAMS. - CK_
X9_ 42_ MQV_ DERIVE_ PARAMS_ PTR - Raw pointer to caller-managed
CK_X9_42_MQV_DERIVE_PARAMS.