Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the trait Clone is not implemented for Ctr128LE #23

Closed
jimouris opened this issue Sep 29, 2022 · 2 comments · Fixed by #24
Closed

the trait Clone is not implemented for Ctr128LE #23

jimouris opened this issue Sep 29, 2022 · 2 comments · Fixed by #24

Comments

@jimouris
Copy link

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
Copy link
Member

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

@jimouris
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants