Skip to content

Commit 26a7708

Browse files
authored
pkcs5 v0.8.0 (#2301)
1 parent b11f134 commit 26a7708

8 files changed

Lines changed: 53 additions & 6 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cms/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ aes = "0.9"
4040
getrandom = "0.4"
4141
hex-literal = "1"
4242
pem-rfc7468 = "1"
43-
pkcs5 = "0.8.0-rc.13"
43+
pkcs5 = "0.8"
4444
pbkdf2 = "0.13.0-rc.9"
4545
rand = "0.10"
4646
rsa = { version = "0.10.0-rc.17", features = ["sha2"] }

pkcs12/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ zeroize = { version = "1.8.1", optional = true, default-features = false }
2828

2929
[dev-dependencies]
3030
hex-literal = "1"
31+
pkcs5 = { version = "0.8", features = ["pbes2", "3des"] }
3132
pkcs8 = { version = "0.11.0-rc.10", features = ["pkcs5"] }
32-
pkcs5 = { version = "0.8.0-rc.13", features = ["pbes2", "3des"] }
3333
sha2 = "0.11"
3434
whirlpool = "0.11"
3535

pkcs5/CHANGELOG.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,46 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## 0.8.0 (2026-04-24)
8+
### Added
9+
- `pbes2::Params` constructors ([#1207])
10+
- `EncryptionScheme::generate` method gated on `getrandom` feature ([#2297])
11+
- `pbes2::Parameters::generate` method gated on `getrandom` feature ([#2297])
12+
13+
### Changed
14+
- All types now own rather than borrow their data ([#1195])
15+
- Upgrade to the 2024 edition; MSRV 1.85 ([#1670])
16+
- Bump `rand_core` to v0.10 ([#2198])
17+
- Bump `getrandom` to v0.4 ([#2198])
18+
- Bump `der` to v0.8 ([#2234])
19+
- Bump `sha2` to v0.11 ([#2273])
20+
- Bump `aes` to v0.9 ([#2281])
21+
- Bump `cbc` to v0.2 ([#2282])
22+
- Bump `des` to v0.9 ([#2282])
23+
- Bump `pbkdf2` to v0.13 ([#2291])
24+
- Bump `scrypt` to v0.12 ([#2291])
25+
26+
### Fixed
27+
- Allow empty `algId` PRF parameter for PBES2 params ([#1521])
28+
- Incorrect error was being returned from CBC decryption ([#1678])
29+
30+
### Removed
31+
- `std` feature ([#2294])
32+
33+
[#1195]: https://github.com/RustCrypto/formats/pull/1195
34+
[#1207]: https://github.com/RustCrypto/formats/pull/1207
35+
[#1521]: https://github.com/RustCrypto/formats/pull/1521
36+
[#1670]: https://github.com/RustCrypto/formats/pull/1670
37+
[#1678]: https://github.com/RustCrypto/formats/pull/1678
38+
[#2198]: https://github.com/RustCrypto/formats/pull/2198
39+
[#2234]: https://github.com/RustCrypto/formats/pull/2234
40+
[#2273]: https://github.com/RustCrypto/formats/pull/2273
41+
[#2281]: https://github.com/RustCrypto/formats/pull/2281
42+
[#2282]: https://github.com/RustCrypto/formats/pull/2282
43+
[#2291]: https://github.com/RustCrypto/formats/pull/2291
44+
[#2294]: https://github.com/RustCrypto/formats/pull/2294
45+
[#2297]: https://github.com/RustCrypto/formats/pull/2297
46+
747
## 0.7.1 (2023-03-05)
848
### Changed
949
- Bump `pbkdf2` to v0.12 ([#913])

pkcs5/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pkcs5"
3-
version = "0.8.0-rc.13"
3+
version = "0.8.0"
44
description = """
55
Pure Rust implementation of Public-Key Cryptography Standards (PKCS) #5:
66
Password-Based Cryptography Specification Version 2.1 (RFC 8018)

pkcs5/LICENSE-MIT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2021-2025 The RustCrypto Project Developers
1+
Copyright (c) 2021-2026 The RustCrypto Project Developers
22

33
Permission is hereby granted, free of charge, to any
44
person obtaining a copy of this software and associated

pkcs5/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ Password-Based Cryptography Specification Version 2.1 ([RFC 8018]).
1212

1313
[Documentation][docs-link]
1414

15+
## About
16+
17+
PKCS#5 is a standard for deriving cryptographic keys from a password using a variety of supported
18+
algorithms, and then encrypting/decrypting data (e.g. PKCS#8 private keys) using that derived key.
19+
20+
This crate supports deriving keys from passwords using either the `scrypt` or `pbkdf2` algorithms.
21+
1522
## Minimum Supported Rust Version (MSRV) Policy
1623

1724
MSRV increases are not considered breaking changes and can happen in patch releases.

pkcs8/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ spki = "0.8"
2222

2323
# optional dependencies
2424
rand_core = { version = "0.10", optional = true, default-features = false }
25-
pkcs5 = { version = "0.8.0-rc.13", optional = true, features = ["rand_core"] }
25+
pkcs5 = { version = "0.8", optional = true, features = ["rand_core"] }
2626
subtle = { version = "2", optional = true, default-features = false }
2727

2828
[dev-dependencies]

0 commit comments

Comments
 (0)