[][src]Trait tink_streaming_aead::subtle::noncebased::SegmentEncrypter

pub trait SegmentEncrypter {
    fn encrypt_segment(
        &self,
        segment: &[u8],
        nonce: &[u8]
    ) -> Result<Vec<u8>, TinkError>; }

SegmentEncrypter facilitates implementing various streaming AEAD encryption modes.

Required methods

fn encrypt_segment(
    &self,
    segment: &[u8],
    nonce: &[u8]
) -> Result<Vec<u8>, TinkError>

Loading content...

Implementors

Loading content...