Struct aead::stream::StreamLE31 [−][src]
pub struct StreamLE31<A> where
A: AeadInPlace,
A::NonceSize: Sub<U4>,
<<A as AeadCore>::NonceSize as Sub<U4>>::Output: ArrayLength<u8>, { /* fields omitted */ }
stream
only.Expand description
STREAM as instantiated with a 31-bit little endian counter and 1-bit “last block” flag stored as the most significant bit of the counter when interpreted as a 32-bit integer.
The 31-bit + 1-bit value is stored as the last 4 bytes of the AEAD nonce.
Trait Implementations
impl<A> NewStream<A> for StreamLE31<A> where
A: AeadInPlace,
A::NonceSize: Sub<U4>,
<<A as AeadCore>::NonceSize as Sub<U4>>::Output: ArrayLength<u8>,
impl<A> NewStream<A> for StreamLE31<A> where
A: AeadInPlace,
A::NonceSize: Sub<U4>,
<<A as AeadCore>::NonceSize as Sub<U4>>::Output: ArrayLength<u8>,
impl<A> StreamPrimitive<A> for StreamLE31<A> where
A: AeadInPlace,
A::NonceSize: Sub<U4>,
<<A as AeadCore>::NonceSize as Sub<U4>>::Output: ArrayLength<u8>,
impl<A> StreamPrimitive<A> for StreamLE31<A> where
A: AeadInPlace,
A::NonceSize: Sub<U4>,
<<A as AeadCore>::NonceSize as Sub<U4>>::Output: ArrayLength<u8>,
type NonceOverhead = U4
type NonceOverhead = U4
Number of bytes this STREAM primitive requires from the nonce.
Value to use when incrementing the STREAM counter (i.e. one)
Maximum value of the STREAM counter.
Encrypt an AEAD message in-place at the given position in the STREAM.
Decrypt an AEAD message in-place at the given position in the STREAM.
alloc
only.Encrypt the given plaintext payload, and return the resulting ciphertext as a vector of bytes. Read more
alloc
only.Decrypt the given ciphertext slice, and return the resulting plaintext as a vector of bytes. Read more
Obtain Encryptor
for this StreamPrimitive
.