Skip to main content

Module kdf

Module kdf 

Source
Expand description

KdfPlugin trait โ€” the Rust-side counterpart of the KDF v0 wire protocol.

Plugin authors implement this trait on their KDF state type, then apply #[plugin_interface(name = "kdf", version = 0)] to the impl block.

Method โ†’ symbol mapping (see crates/confium-core/src/ffi/kdf.rs for the loader-side wire types):

trait methodFFI symbolpurpose
KdfPlugin::createcfmp_kdf_createconstruct a new instance
KdfPlugin::set_saltcfmp_kdf_set_saltset the salt
KdfPlugin::set_iterationscfmp_kdf_set_iterationsset iteration count
KdfPlugin::set_memory_costcfmp_kdf_set_memory_costset memory cost
KdfPlugin::set_parallelismcfmp_kdf_set_parallelismset parallelism
KdfPlugin::set_hashcfmp_kdf_set_hashset hash algorithm
KdfPlugin::derivecfmp_kdf_derivederive key material
Dropcfmp_kdf_destroyreclaim the boxed state

Traitsยง

KdfPlugin
Trait implemented by KDF plugins.