Skip to content

Add NonceSize to FromBlockCipher #209

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

Merged
merged 2 commits into from
Jul 3, 2020
Merged

Add NonceSize to FromBlockCipher #209

merged 2 commits into from
Jul 3, 2020

Conversation

newpavlov
Copy link
Member

This change is needed for RustCrypto/block-ciphers#134. GOST modes are somewhat peculiar as they allow additional flexibility, thus breaking the assumption used in the FromBlockCipher trait. Additionally this PR improves the blanket impl by overwriting the new_var method.

Unfortunately it's a breaking change, so a minor release will be needed.

@newpavlov newpavlov requested a review from tarcieri July 3, 2020 15:22
Copy link
Member

@tarcieri tarcieri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this how I did it originally? 😉

@newpavlov
Copy link
Member Author

I think, yes. :)

@newpavlov
Copy link
Member Author

I've bumped stream-cipher to v0.5.0, and because cryptography uses path, I had to bump it to v0.2 as well.

@newpavlov newpavlov merged commit 8d39a09 into master Jul 3, 2020
@newpavlov newpavlov deleted the stream_trait branch July 3, 2020 15:55
dns2utf8 pushed a commit to dns2utf8/traits that referenced this pull request Jan 24, 2023
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 this pull request may close these issues.

2 participants