Skip to content

Commit 72445a7

Browse files
committed
feat(aes): update aes dependency and PAR_BLOCKS const
This updates the AES_PAR_BLOCKS constant from 9 to 8 on x86 backends as this was changed in the aes crate (RustCrypto/block-ciphers@17bbd0b). As the value of this constant was not subject to semver guarantees, this is not a breaking change.
1 parent 3dfc7ed commit 72445a7

File tree

3 files changed

+20
-14
lines changed

3 files changed

+20
-14
lines changed

Cargo.lock

Lines changed: 18 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ homepage = "https://github.com/robinhundt/CryProt"
1414
repository = "https://github.com/robinhundt/CryProt"
1515

1616
[workspace.dependencies]
17-
aes = "=0.9.0-rc.2"
17+
aes = "=0.9.0-rc.4"
1818
anyhow = "1.0.86"
1919
bincode = "1.3.3"
2020
bitvec = "1.0.1"

cryprot-core/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub use block::Block;
2929
/// Do not depend on the value of the constant.
3030
// https://github.com/RustCrypto/block-ciphers/blob/4da9b802de52a3326fdc74d559caddd57042fed2/aes/src/ni.rs#L43
3131
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
32-
pub const AES_PAR_BLOCKS: usize = 9;
32+
pub const AES_PAR_BLOCKS: usize = 8;
3333
#[cfg(target_arch = "aarch64")]
3434
// https://github.com/RustCrypto/block-ciphers/blob/4da9b802de52a3326fdc74d559caddd57042fed2/aes/src/armv8.rs#L32
3535
pub const AES_PAR_BLOCKS: usize = 21;

0 commit comments

Comments
 (0)