pub struct EncryptionKey(/* private fields */);Expand description
A purpose-derived key for objects, including an invite’s join request (Appendix D).
Implementations§
Source§impl EncryptionKey
impl EncryptionKey
Sourcepub fn seal_object_chunk(
&self,
path: &str,
prefix: &[u8],
section: u64,
index: u64,
plaintext: &[u8],
) -> Result<Vec<u8>, CryptoError>
pub fn seal_object_chunk( &self, path: &str, prefix: &[u8], section: u64, index: u64, plaintext: &[u8], ) -> Result<Vec<u8>, CryptoError>
Seal an object chunk with a random nonce, binding its whole cleartext prefix. Section 0 holds a write’s header; part i uses section i + 1. A snapshot uses section 0. Indices start at zero within each section. Panics if the storage path is empty.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EncryptionKey
impl RefUnwindSafe for EncryptionKey
impl Send for EncryptionKey
impl Sync for EncryptionKey
impl Unpin for EncryptionKey
impl UnsafeUnpin for EncryptionKey
impl UnwindSafe for EncryptionKey
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