Skip to main content

FieldKeyProvider

Trait FieldKeyProvider 

Source
pub trait FieldKeyProvider: Send + Sync {
    // Required method
    fn get_key(&self, key_id: &str) -> Option<[u8; 32]>;
}
Expand description

Trait for resolving encryption key IDs to key material during reads.

Required Methods§

Source

fn get_key(&self, key_id: &str) -> Option<[u8; 32]>

Look up an encryption key by its ID.

Returns the 32-byte AES-256 key material, or None if the key ID is unknown (e.g. after key deletion or misconfiguration).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§