pub struct SingleKeyProvider { /* private fields */ }Expand description
The default single-key provider: writes and reads under exactly one
key. This is what DiskArtifactStore::new wraps the caller’s
[u8; 32] in, so the historical single-key constructor keeps its exact
behaviour (one active key, that same key the only accepted read key).
The key is held in a Zeroizing so it is scrubbed on drop, matching
the store’s own hmac_key handling.
Implementations§
Trait Implementations§
Source§impl KeyProvider for SingleKeyProvider
impl KeyProvider for SingleKeyProvider
Source§fn active_key(&self) -> [u8; 32]
fn active_key(&self) -> [u8; 32]
The key new
puts sign with. MUST be one of Self::read_keys.Auto Trait Implementations§
impl Freeze for SingleKeyProvider
impl RefUnwindSafe for SingleKeyProvider
impl Send for SingleKeyProvider
impl Sync for SingleKeyProvider
impl Unpin for SingleKeyProvider
impl UnsafeUnpin for SingleKeyProvider
impl UnwindSafe for SingleKeyProvider
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more