pub struct UninitKeyStateSlot<'a> { /* private fields */ }Expand description
Caller-owned uninitialized storage for AES-256-GCM key state.
Implementations§
Source§impl<'a> UninitKeyStateSlot<'a>
impl<'a> UninitKeyStateSlot<'a>
Sourcepub fn new(storage: &'a mut [u8]) -> Result<Self, Error>
pub fn new(storage: &'a mut [u8]) -> Result<Self, Error>
Validates caller-provided storage for key-state initialization.
§Errors
Returns Error::KeyStateStorageTooSmall or
Error::KeyStateStorageMisaligned before any key material is touched.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !UnwindSafe for UninitKeyStateSlot<'a>
impl<'a> Freeze for UninitKeyStateSlot<'a>
impl<'a> RefUnwindSafe for UninitKeyStateSlot<'a>
impl<'a> Send for UninitKeyStateSlot<'a>
impl<'a> Sync for UninitKeyStateSlot<'a>
impl<'a> Unpin for UninitKeyStateSlot<'a>
impl<'a> UnsafeUnpin for UninitKeyStateSlot<'a>
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