-
Notifications
You must be signed in to change notification settings - Fork 154
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
Bump cipher
to 0.5.0-pre.4
#583
Conversation
404fe84
to
fdabf6c
Compare
@newpavlov I'd love to get some help to bump |
@baloo If you encounter difficulties with fixing the mgm CI jobs, you can exclude it from the common workspace. |
Cargo.toml
Outdated
[patch.crates-io] | ||
|
||
# https://github.com/RustCrypto/block-ciphers/pull/413 | ||
aes = { git = "https://github.com/RustCrypto/block-ciphers.git" } | ||
|
||
# https://github.com/RustCrypto/block-modes/pull/56 | ||
ctr = { git = "https://github.com/RustCrypto/block-modes.git" } | ||
|
||
# pending pre-release | ||
universal-hash = { git = "https://github.com/RustCrypto/traits.git" } | ||
# https://github.com/RustCrypto/traits/pull/1531 | ||
aead = { git = "https://github.com/RustCrypto/traits.git" } | ||
|
||
# https://github.com/RustCrypto/MACs/pull/158 | ||
cmac = { git = "https://github.com/RustCrypto/MACs.git" } | ||
pmac = { git = "https://github.com/RustCrypto/MACs.git" } | ||
|
||
# https://github.com/RustCrypto/stream-ciphers/pull/345 | ||
chacha20 = { git = "https://github.com/RustCrypto/stream-ciphers.git" } | ||
|
||
# https://github.com/RustCrypto/universal-hashes/pull/196 | ||
ghash = { git = "https://github.com/RustCrypto/universal-hashes.git" } | ||
polyval = { git = "https://github.com/RustCrypto/universal-hashes.git" } | ||
poly1305 = { git = "https://github.com/RustCrypto/universal-hashes.git" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we could kick out some releases of these so we have a patch-free baseline to work from
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that'd be lovely!
In order, I think I'd need:
- First step:
- traits/aead
- traits/universal-hash
- block-ciphers/aes
- block-ciphers/belt-block
- block-ciphers/des
- block-ciphers/kuznyechik
- block-ciphers/magma
- stream-ciphers/chacha20
- second
- macs/cmac
- macs/pmac
- block-modes/ctr
- universal-hashes/polyval
- universal-hashes/poly1305
- third
- universal-hashes/ghash
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's a lot of releases! I can throw in the first step of those in a couple PRs if you'd like
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure
15a6e11
to
85cef52
Compare
While we wait for the release of belt-block (which is a blocker for macs and ctr bumps), I got this in a state that I think should be merge-able. |
1ec39b4
to
19ed824
Compare
@baloo this needs a rebase now that we've landed |
19ed824
to
dbf25db
Compare
let (b0, b1) = two_blocks.split_at_mut(BLOCK_SIZE); | ||
[b0.into(), b1.into()] | ||
[b0.try_into().unwrap(), b1.try_into().unwrap()] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @dignifiedquire I think that is okay with the debug_assert
on top.
@@ -371,7 +373,7 @@ where | |||
let mut offset_i = [Block::default(); WIDTH]; | |||
offset_i[offset_i.len() - 1] = initial_offset(&self.cipher, nonce, TagSize::to_u32()); | |||
let mut checksum_i = Block::default(); | |||
for wide_blocks in buffer.chunks_exact_mut(16 * WIDTH) { | |||
for wide_blocks in buffer.chunks_exact_mut(<Block as AssocArraySize>::Size::USIZE * WIDTH) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could use an aliased type in hybrid-array
5ffcca0
to
e8e96a5
Compare
e8e96a5
to
b4fa6d4
Compare
Depends:
cipher
dependency to0.5.0-pre.4
block-ciphers#413cipher
to0.5.0-pre.4
block-modes#56digest
/cipher
to0.11.0-pre.8
/0.5.0-pre.4
MACs#158hybrid-array
migration traits#1531universal-hash
to0.6.0-pre
universal-hashes#196