RustCrypto / block-modes

Collection of generic block mode algorithms written in pure Rust
64 stars 13 forks source link

the trait `Clone` is not implemented for `Ctr128LE` #23

Closed jimouris closed 2 years ago

jimouris commented 2 years ago

Hi, pretty much whatever the title says the trait Clone is not implemented for Ctr128LE. I'm trying to create a struct:

#[derive(Clone)]
pub struct PrgStream {
    stream: Aes128Ctr128LE,
}

and Clone is not supported.

newpavlov commented 2 years ago

Yeah, deriving Clone on CtrCore results in a redundant Clone bound on used flavor. Direct implementation without the bound should fix it.

jimouris commented 2 years ago

Thanks!