pub struct SecretArrayFrame<const N: usize> { /* private fields */ }Expand description
Stack-backed secret decode with disjoint private and final arrays.
Implementations§
Source§impl<const N: usize> SecretArrayFrame<N>
impl<const N: usize> SecretArrayFrame<N>
Sourcepub fn new<S: Codec>(codec: &Base64<S>) -> Result<Self, SecretDecodeError>
pub fn new<S: Codec>(codec: &Base64<S>) -> Result<Self, SecretDecodeError>
Creates one empty fixed-capacity secret decode frame.
Sourcepub fn update(
&mut self,
input: &SecretInput<'_>,
) -> Result<Progress, SecretDecodeError>
pub fn update( &mut self, input: &SecretInput<'_>, ) -> Result<Progress, SecretDecodeError>
Consumes one classified chunk without releasing plaintext.
Sourcepub fn finish(self) -> Result<SecretArray<N>, SecretDecodeError>
pub fn finish(self) -> Result<SecretArray<N>, SecretDecodeError>
Applies the result gate and returns secret output only on success.
Sourcepub const fn state(&self) -> &SecretDecoderState
pub const fn state(&self) -> &SecretDecoderState
Returns public decoder metadata without exposing staged bytes.
Trait Implementations§
Source§impl<const N: usize> Debug for SecretArrayFrame<N>
impl<const N: usize> Debug for SecretArrayFrame<N>
Source§impl<const N: usize> Drop for SecretArrayFrame<N>
impl<const N: usize> Drop for SecretArrayFrame<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for SecretArrayFrame<N>
impl<const N: usize> RefUnwindSafe for SecretArrayFrame<N>
impl<const N: usize> Send for SecretArrayFrame<N>
impl<const N: usize> Sync for SecretArrayFrame<N>
impl<const N: usize> Unpin for SecretArrayFrame<N>
impl<const N: usize> UnsafeUnpin for SecretArrayFrame<N>
impl<const N: usize> UnwindSafe for SecretArrayFrame<N>
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