Skip to content

Commit

Permalink
Bump MSRV to 1.81 (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov authored Nov 22, 2024
1 parent 5902ea6 commit 710788b
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ascon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
set-msrv:
uses: RustCrypto/actions/.github/workflows/set-msrv.yml@master
with:
msrv: 1.60.0
msrv: 1.81.0

build:
needs: set-msrv
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/keccak.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
set-msrv:
uses: RustCrypto/actions/.github/workflows/set-msrv.yml@master
with:
msrv: 1.60.0
msrv: 1.81.0

build:
needs: set-msrv
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/workspace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: RustCrypto/actions/cargo-cache@master
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.71.0
toolchain: 1.82.0
components: clippy
- run: cargo clippy --all -- -D warnings

Expand Down
2 changes: 1 addition & 1 deletion ascon/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ keywords = ["Ascon", "crypto", "permutation"]
categories = ["cryptography", "no-std"]
readme = "README.md"
edition = "2021"
rust-version = "1.60"
rust-version = "1.81"

[dependencies]
zeroize = { version = "1.6.0", default-features = false, optional=true }
Expand Down
2 changes: 1 addition & 1 deletion ascon/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ portfolio of the [CAESAR competition].

## Minimum Supported Rust Version

This crate requires **Rust 1.60** at a minimum.
This crate requires **Rust 1.81** at a minimum.

We may change the MSRV in the future, but it will be accompanied by a minor
version bump.
Expand Down
2 changes: 1 addition & 1 deletion keccak/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ keywords = ["crypto", "sponge", "keccak", "keccak-f", "keccak-p"]
categories = ["cryptography", "no-std"]
readme = "README.md"
edition = "2021"
rust-version = "1.60"
rust-version = "1.81"

[features]
asm = [] # Use optimized assembly when available (currently only ARMv8)
Expand Down
2 changes: 1 addition & 1 deletion keccak/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ is built on this crate.

## Minimum Supported Rust Version

Rust **1.60** or higher.
Rust **1.81** or higher.

Minimum supported Rust version can be changed in the future, but it will be
done with a minor version bump.
Expand Down
4 changes: 1 addition & 3 deletions keccak/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,7 @@ pub fn keccak_p<L: LaneSize>(state: &mut [L; PLEN], round_count: usize) {
unroll5!(y_step, {
let y = 5 * y_step;

unroll5!(x, {
array[x] = state[y + x];
});
array.copy_from_slice(&state[y..][..5]);

unroll5!(x, {
let t1 = !array[(x + 1) % 5];
Expand Down

0 comments on commit 710788b

Please sign in to comment.