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

cipher: integrate block-modes #394

Closed
wants to merge 9 commits into from
Closed

cipher: integrate block-modes #394

wants to merge 9 commits into from

Conversation

newpavlov
Copy link
Member

@newpavlov newpavlov commented Dec 13, 2020

A number of changes for cipher v0.3.

Edit: many of these changes were already merged in #435 -@tarcieri

pub type Block<M> = GenericArray<u8, <M as BlockModeCore>::BlockSize>;

/// Core trait for a block cipher mode of operation.
pub trait BlockModeCore {
Copy link
Member

Choose a reason for hiding this comment

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

Small nit: why not just BlockMode?

@@ -14,9 +14,12 @@ categories = ["cryptography", "no-std"]
[dependencies]
generic-array = "0.14"
blobby = { version = "0.3", optional = true }
block-padding = { verstion = "0.2", optional = true }
Copy link
Member

@tarcieri tarcieri Dec 26, 2020

Choose a reason for hiding this comment

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

Typo: verstion

Suggested change
block-padding = { verstion = "0.2", optional = true }
block-padding = { version = "0.2", optional = true }

@tarcieri
Copy link
Member

I went ahead and landed most of this PR except for the WIP block-modes integration in #435, and updated this PR title to reflect that.

It should hopefully be easy to rebase or cherry-pick the remaining work.

@tarcieri tarcieri changed the title cipher: v0.3 changes cipher: integrate block-modes Dec 30, 2020
@newpavlov newpavlov closed this Dec 30, 2020
@newpavlov newpavlov deleted the cipher/v03_changes branch December 30, 2020 16:11
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.

None yet

2 participants