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 method | FFI symbol | purpose |
|---|---|---|
KdfPlugin::create | cfmp_kdf_create | construct a new instance |
KdfPlugin::set_salt | cfmp_kdf_set_salt | set the salt |
KdfPlugin::set_iterations | cfmp_kdf_set_iterations | set iteration count |
KdfPlugin::set_memory_cost | cfmp_kdf_set_memory_cost | set memory cost |
KdfPlugin::set_parallelism | cfmp_kdf_set_parallelism | set parallelism |
KdfPlugin::set_hash | cfmp_kdf_set_hash | set hash algorithm |
KdfPlugin::derive | cfmp_kdf_derive | derive key material |
Drop | cfmp_kdf_destroy | reclaim the boxed state |
Traitsยง
- KdfPlugin
- Trait implemented by KDF plugins.