pub struct SecretVecEncoder { /* private fields */ }Expand description
Preallocated heap-backed incremental secret encoder.
Implementations§
Source§impl SecretVecEncoder
impl SecretVecEncoder
Sourcepub fn new<S: Codec>(
codec: &Base64<S>,
maximum_input_len: usize,
) -> Result<Self, SecretEncodeError>
pub fn new<S: Codec>( codec: &Base64<S>, maximum_input_len: usize, ) -> Result<Self, SecretEncodeError>
Preallocates the complete encoded output before accepting input.
Sourcepub fn update(
&mut self,
input: &SecretInput<'_>,
) -> Result<Progress, SecretEncodeError>
pub fn update( &mut self, input: &SecretInput<'_>, ) -> Result<Progress, SecretEncodeError>
Encodes one classified chunk into preallocated secret storage.
Sourcepub fn finish(self) -> Result<SecretVec, SecretEncodeError>
pub fn finish(self) -> Result<SecretVec, SecretEncodeError>
Completes encoding and returns redacted heap storage.
Sourcepub fn encode<S: Codec>(
codec: &Base64<S>,
input: &SecretInput<'_>,
) -> Result<SecretVec, SecretEncodeError>
pub fn encode<S: Codec>( codec: &Base64<S>, input: &SecretInput<'_>, ) -> Result<SecretVec, SecretEncodeError>
Encodes one complete classified input into a secret vector.
Sourcepub const fn state(&self) -> &SecretEncoderState
pub const fn state(&self) -> &SecretEncoderState
Returns public encoder metadata without exposing output bytes.
Trait Implementations§
Source§impl Debug for SecretVecEncoder
Available on crate feature alloc only.
impl Debug for SecretVecEncoder
Available on crate feature
alloc only.Source§impl Drop for SecretVecEncoder
Available on crate feature alloc only.
impl Drop for SecretVecEncoder
Available on crate feature
alloc only.Auto Trait Implementations§
impl Freeze for SecretVecEncoder
impl RefUnwindSafe for SecretVecEncoder
impl Send for SecretVecEncoder
impl Sync for SecretVecEncoder
impl Unpin for SecretVecEncoder
impl UnsafeUnpin for SecretVecEncoder
impl UnwindSafe for SecretVecEncoder
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