Skip to main content

CryptoStream

Trait CryptoStream 

Source
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§

Source

fn apply_keystream_byte(&mut self, b: u8) -> u8

Applies the keystream byte to the given byte and returns the result.

Source

fn apply_keystream(&mut self, slice: &[u8]) -> &[u8]

Applies the keystream to the given slice and returns the result.

Source

fn get_plaintext(&self) -> &[u8]

Get the underlying plaintext buffer

Implementors§