pub struct StreamSealer { /* private fields */ }
This is supported on crate feature
safe_api
only.Expand description
Streaming authenticated encryption.
Implementations
Initialize a StreamSealer
struct with a given key.
pub fn seal_chunk(
&mut self,
plaintext: &[u8],
tag: &StreamTag
) -> Result<Vec<u8>, UnknownCryptoError>
pub fn seal_chunk(
&mut self,
plaintext: &[u8],
tag: &StreamTag
) -> Result<Vec<u8>, UnknownCryptoError>
Encrypts plaintext
. The StreamTag
indicates the type of message.