Expand description
AeadPlugin trait โ the Rust-side counterpart of the AEAD v0 wire
protocol.
Plugin authors implement this trait on their AEAD state type, then
apply #[plugin_interface(name = "aead", version = 0)] to the impl
block.
Method โ symbol mapping (see crates/confium-core/src/ffi/aead.rs
for the loader-side wire types):
| trait method | FFI symbol | purpose |
|---|---|---|
AeadPlugin::create_with_key | cfmp_aead_create | construct a new instance |
AeadPlugin::set_nonce | cfmp_aead_set_nonce | set the nonce |
AeadPlugin::associated_data_update | cfmp_aead_associated_data_update | absorb associated data |
AeadPlugin::encrypt_update | cfmp_aead_encrypt_update | encrypt a chunk |
AeadPlugin::decrypt_update | cfmp_aead_decrypt_update | decrypt a chunk |
AeadPlugin::finalize | cfmp_aead_finalize | emit the tag |
AeadPlugin::verify_tag | cfmp_aead_verify_tag | verify the tag |
Drop | cfmp_aead_destroy | reclaim the boxed state |
Traitsยง
- Aead
Plugin - Trait implemented by AEAD plugins.