Skip to content

Commit 15f7dd0

Browse files
authored
Upgrade all crates to the 2024 edition and bump MSRV to 1.85 (#47)
1 parent bb44028 commit 15f7dd0

File tree

17 files changed

+52
-70
lines changed

17 files changed

+52
-70
lines changed

.github/workflows/aes-kw.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
strategy:
2323
matrix:
2424
rust:
25-
- 1.81.0 # MSRV
25+
- 1.85.0 # MSRV
2626
- stable
2727
target:
2828
- thumbv7em-none-eabi
@@ -48,7 +48,7 @@ jobs:
4848
strategy:
4949
matrix:
5050
rust:
51-
- 1.81.0 # MSRV
51+
- 1.85.0 # MSRV
5252
- stable
5353
steps:
5454
- uses: actions/checkout@v4

.github/workflows/belt-kwp.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
strategy:
2323
matrix:
2424
rust:
25-
- 1.81.0 # MSRV
25+
- 1.85.0 # MSRV
2626
- stable
2727
target:
2828
- thumbv7em-none-eabi
@@ -48,7 +48,7 @@ jobs:
4848
strategy:
4949
matrix:
5050
rust:
51-
- 1.81.0 # MSRV
51+
- 1.85.0 # MSRV
5252
- stable
5353
steps:
5454
- uses: actions/checkout@v4

.github/workflows/workspace.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- uses: actions-rs/toolchain@v1
1919
with:
2020
profile: minimal
21-
toolchain: 1.82.0 # MSRV
21+
toolchain: 1.85.0 # MSRV
2222
components: clippy
2323
override: true
2424
- run: cargo clippy --all -- -D warnings

Cargo.lock

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

aes-kw/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
- Bump `aes` dependency to v0.9 ([#34])
1313
- `Kek` type is split into separate `AesKw` and `AesKwp` types ([#40])
1414
- `wrap` and `unwrap` methods now return resulting slice ([#40])
15+
- Edition changed to 2024 and MSRV bumped to 1.85 ([#47])
16+
- Relax MSRV policy and allow MSRV bumps in patch releases
1517

1618
### Removed
1719
- `Kek::new` inherent method in favor of implementing `InnerInit` ([#40])
@@ -21,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2123
[#34]: https://github.com/RustCrypto/key-wraps/pull/34
2224
[#35]: https://github.com/RustCrypto/key-wraps/pull/35
2325
[#40]: https://github.com/RustCrypto/key-wraps/pull/40
26+
[#47]: https://github.com/RustCrypto/key-wraps/pull/47
2427

2528
## 0.2.1 (2022-04-20)
2629
### Changed

aes-kw/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ repository = "https://github.com/RustCrypto/key-wraps"
99
keywords = ["crypto", "AES-KW", "KW", "AES-KWP", "KWP"]
1010
categories = ["cryptography", "no-std"]
1111
readme = "README.md"
12-
edition = "2021"
13-
rust-version = "1.81"
12+
edition = "2024"
13+
rust-version = "1.85"
1414

1515
[dependencies]
16-
aes = "=0.9.0-pre.2"
16+
aes = "=0.9.0-pre.3"
1717

18-
const-oid = { version = "0.10.0-rc.3", optional = true }
18+
const-oid = { version = "0.10", optional = true }
1919

2020
[dev-dependencies]
21-
hex-literal = "0.3"
21+
hex-literal = "1"
2222

2323
[features]
2424
default = ["oid"]

aes-kw/README.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,6 @@ let unwrapped_key = kw.unwrap_fixed_key::<U16>(&wrapped_key).unwrap();
8787
assert_eq!(unwrapped_key, key);
8888
```
8989

90-
## Minimum Supported Rust Version
91-
92-
This crate requires **Rust 1.81** at a minimum.
93-
94-
We may change the MSRV in the future, but it will be accompanied by a minor
95-
version bump.
96-
9790
## License
9891

9992
Licensed under either of:
@@ -116,7 +109,7 @@ dual licensed as above, without any additional terms or conditions.
116109
[docs-image]: https://docs.rs/aes-kw/badge.svg
117110
[docs-link]: https://docs.rs/aes-kw/
118111
[license-image]: https://img.shields.io/badge/license-Apache2.0/MIT-blue.svg
119-
[rustc-image]: https://img.shields.io/badge/rustc-1.81+-blue.svg
112+
[rustc-image]: https://img.shields.io/badge/rustc-1.85+-blue.svg
120113
[build-image]: https://github.com/RustCrypto/key-wraps/actions/workflows/aes-kw.yml/badge.svg
121114
[build-link]: https://github.com/RustCrypto/key-wraps/actions/workflows/aes-kw.yml
122115

aes-kw/src/ctx.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::IV_LEN;
22
use aes::cipher::{
3-
typenum::U16, Block, BlockCipherDecBackend, BlockCipherDecClosure, BlockCipherEncBackend,
4-
BlockCipherEncClosure, BlockSizeUser,
3+
Block, BlockCipherDecBackend, BlockCipherDecClosure, BlockCipherEncBackend,
4+
BlockCipherEncClosure, BlockSizeUser, typenum::U16,
55
};
66

77
pub(crate) struct Ctx<'a> {

aes-kw/src/kw.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
use core::ops::{Add, Rem};
22

3-
use crate::{ctx::Ctx, error::IntegrityCheckFailed, Error, IvLen, IV_LEN};
3+
use crate::{Error, IV_LEN, IvLen, ctx::Ctx, error::IntegrityCheckFailed};
44
use aes::cipher::{
5+
Array, Block, BlockCipherDecrypt, BlockCipherEncrypt,
56
array::ArraySize,
67
crypto_common::{InnerInit, InnerUser},
7-
typenum::{Mod, NonZero, Sum, Zero, U16},
8-
Array, Block, BlockCipherDecrypt, BlockCipherEncrypt,
8+
typenum::{Mod, NonZero, Sum, U16, Zero},
99
};
1010

1111
/// Default Initial Value for AES-KW as defined in RFC3394 § 2.2.3.1.

aes-kw/src/kwp.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
use core::ops::{Add, Div, Mul};
22

3-
use crate::{ctx::Ctx, Error, IntegrityCheckFailed, IvLen, IV_LEN};
3+
use crate::{Error, IV_LEN, IntegrityCheckFailed, IvLen, ctx::Ctx};
44
use aes::cipher::{
5+
Array, Block, BlockCipherDecrypt, BlockCipherEncrypt,
56
array::ArraySize,
6-
consts::{B1, U4294967296, U7},
7+
consts::{B1, U7, U4294967296},
78
crypto_common::{InnerInit, InnerUser},
89
typenum::{Add1, IsLess, Le, NonZero, Prod, Quot, Sum, U16},
9-
Array, Block, BlockCipherDecrypt, BlockCipherEncrypt,
1010
};
1111

1212
/// Maximum length of the AES-KWP input data (2^32 bytes) represented as a `typenum` type.

0 commit comments

Comments
 (0)