Struct lair_keystore::dependencies::sodoken::secretstream::xchacha20poly1305::SecretStreamEncrypt
[−]pub struct SecretStreamEncrypt(_);
Expand description
A structure to facilitate secretstream encryption.
Implementations
impl SecretStreamEncrypt
impl SecretStreamEncrypt
pub fn new<K, H>(key: K, header: H) -> Result<SecretStreamEncrypt, OneErr> where
K: 'static + Into<BufReadSized<{_: usize}>> + Send,
H: 'static + Into<BufExtend> + Send,
pub fn new<K, H>(key: K, header: H) -> Result<SecretStreamEncrypt, OneErr> where
K: 'static + Into<BufReadSized<{_: usize}>> + Send,
H: 'static + Into<BufExtend> + Send,
Construct a new SecretStreamEncrypt instance. Also returns the encryption header bytes.
pub async fn push_message<M, A, C>(
&'_ mut self,
message: M,
adata: Option<A>,
cipher: C
) -> Result<(), OneErr> where
M: 'static + Into<BufRead> + Send,
A: 'static + Into<BufRead> + Send,
C: 'static + Into<BufExtend> + Send,
pub async fn push_message<M, A, C>(
&'_ mut self,
message: M,
adata: Option<A>,
cipher: C
) -> Result<(), OneErr> where
M: 'static + Into<BufRead> + Send,
A: 'static + Into<BufRead> + Send,
C: 'static + Into<BufExtend> + Send,
Encrypt a “Message” tagged message onto the output stream.
pub async fn push_push<M, A, C>(
&'_ mut self,
message: M,
adata: Option<A>,
cipher: C
) -> Result<(), OneErr> where
M: 'static + Into<BufRead> + Send,
A: 'static + Into<BufRead> + Send,
C: 'static + Into<BufExtend> + Send,
pub async fn push_push<M, A, C>(
&'_ mut self,
message: M,
adata: Option<A>,
cipher: C
) -> Result<(), OneErr> where
M: 'static + Into<BufRead> + Send,
A: 'static + Into<BufRead> + Send,
C: 'static + Into<BufExtend> + Send,
Encrypt a “Push” tagged message onto the output stream.
pub async fn push_rekey<M, A, C>(
&'_ mut self,
message: M,
adata: Option<A>,
cipher: C
) -> Result<(), OneErr> where
M: 'static + Into<BufRead> + Send,
A: 'static + Into<BufRead> + Send,
C: 'static + Into<BufExtend> + Send,
pub async fn push_rekey<M, A, C>(
&'_ mut self,
message: M,
adata: Option<A>,
cipher: C
) -> Result<(), OneErr> where
M: 'static + Into<BufRead> + Send,
A: 'static + Into<BufRead> + Send,
C: 'static + Into<BufExtend> + Send,
Encrypt a “Rekey” tagged message onto the output stream.
pub async fn push_final<M, A, C>(
&'_ mut self,
message: M,
adata: Option<A>,
cipher: C
) -> Result<(), OneErr> where
M: 'static + Into<BufRead> + Send,
A: 'static + Into<BufRead> + Send,
C: 'static + Into<BufExtend> + Send,
pub async fn push_final<M, A, C>(
&'_ mut self,
message: M,
adata: Option<A>,
cipher: C
) -> Result<(), OneErr> where
M: 'static + Into<BufRead> + Send,
A: 'static + Into<BufRead> + Send,
C: 'static + Into<BufExtend> + Send,
Encrypt a “Final” tagged message onto the output stream.
pub fn rekey(&mut self)
pub fn rekey(&mut self)
Trigger a rekey without a tag. The decryption side must manually rekey at the same point.
Auto Trait Implementations
impl RefUnwindSafe for SecretStreamEncrypt
impl Send for SecretStreamEncrypt
impl Sync for SecretStreamEncrypt
impl Unpin for SecretStreamEncrypt
impl UnwindSafe for SecretStreamEncrypt
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourcefn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
T: Future, type Output = <T as Future>::Output;
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more