pub trait CryptoStream {
// Required methods
fn apply_keystream_byte(&mut self, b: u8) -> u8;
fn apply_keystream(&mut self, slice: &[u8]) -> &[u8] ⓘ;
fn get_plaintext(&self) -> &[u8] ⓘ;
}Expand description
Crypto Stream
Required Methods§
Sourcefn apply_keystream_byte(&mut self, b: u8) -> u8
fn apply_keystream_byte(&mut self, b: u8) -> u8
Applies the keystream byte to the given byte and returns the result.
Sourcefn apply_keystream(&mut self, slice: &[u8]) -> &[u8] ⓘ
fn apply_keystream(&mut self, slice: &[u8]) -> &[u8] ⓘ
Applies the keystream to the given slice and returns the result.
Sourcefn get_plaintext(&self) -> &[u8] ⓘ
fn get_plaintext(&self) -> &[u8] ⓘ
Get the underlying plaintext buffer