Function shaman::cryptoutil::symm_enc_or_dec [] [src]

pub fn symm_enc_or_dec<S: SynchronousStreamCipher, R: ReadBuffer, W: WriteBuffer>(
    c: &mut S,
    input: &mut R,
    output: &mut W
) -> Result<BufferResult, SymmetricCipherError>

symm_enc_or_dec() implements the necessary functionality to turn a SynchronousStreamCipher into an Encryptor or Decryptor