Skip to content

Commit 284032c

Browse files
authored
pkcs8 v0.7.6 (#18)
1 parent 82d2f95 commit 284032c

4 files changed

Lines changed: 27 additions & 17 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.

pkcs8/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ 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.7.6 (2021-09-14)
8+
### Added
9+
- `3des` and `des-insecure` features
10+
- `sha1` feature
11+
- Support for AES-192-CBC
12+
13+
### Changed
14+
- Moved to `formats` repo ([#2])
15+
16+
[#2]: https://github.com/RustCrypto/formats/pull/2
17+
718
## 0.7.5 (2021-07-26)
819
### Added
920
- Support for customizing PEM `LineEnding`

pkcs8/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pkcs8"
3-
version = "0.7.5" # Also update html_root_url in lib.rs when bumping this
3+
version = "0.7.6" # Also update html_root_url in lib.rs when bumping this
44
description = """
55
Pure Rust implementation of Public-Key Cryptography Standards (PKCS) #8:
66
Private-Key Information Syntax Specification (RFC 5208), with additional
@@ -29,13 +29,13 @@ zeroize = { version = "1", optional = true, default-features = false, features =
2929
hex-literal = "0.3"
3030

3131
[features]
32-
encryption = ["alloc", "pkcs5/alloc", "pkcs5/pbes2", "rand_core"]
33-
std = ["alloc", "der/std"]
3432
alloc = ["der/alloc", "zeroize"]
33+
3des = ["encryption", "pkcs5/3des"]
34+
des-insecure = ["encryption", "pkcs5/des-insecure"]
35+
encryption = ["alloc", "pkcs5/alloc", "pkcs5/pbes2", "rand_core"]
3536
pem = ["alloc", "pem-rfc7468/alloc"]
3637
sha1 = ["encryption", "pkcs5/sha1"]
37-
des-insecure = ["encryption", "pkcs5/des-insecure"]
38-
3des = ["encryption", "pkcs5/3des"]
38+
std = ["alloc", "der/std"]
3939

4040
[package.metadata.docs.rs]
4141
all-features = true

pkcs8/src/lib.rs

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -79,20 +79,19 @@
7979
//! - PBKDF2 ([RFC 8018](https://datatracker.ietf.org/doc/html/rfc8018#section-5.2))
8080
//! - SHA-2 based PRF with HMAC-SHA224, HMAC-SHA256, HMAC-SHA384, or HMAC-SHA512
8181
//! - SHA-1 based PRF with HMAC-SHA1, when the `sha1` feature of this crate is enabled.
82-
//! - Symmetric encryption: AES-128-CBC, AES-192-CBC, or AES-256-CBC (best available options for PKCS#5v2)
82+
//! - Symmetric encryption: AES-128-CBC, AES-192-CBC, or AES-256-CBC
83+
//! (best available options for PKCS#5v2)
8384
//!
84-
//! # DES-CBC and DES-EDE3-CBC (3DES) Support
85-
//! When the `des-insecure` and `3des` features are enabled this crate provides support for Private Keys encrypted
86-
//! with DES-CBC and DES-EDE3-CBC (3DES or Triple DES) symmetric encryption, respectively.
85+
//! ## Legacy DES-CBC and DES-EDE3-CBC (3DES) support (optional)
86+
//! When the `des-insecure` and/or `3des` features are enabled this crate provides support for
87+
//! private keys encrypted with with DES-CBC and DES-EDE3-CBC (3DES or Triple DES) symmetric
88+
//! encryption, respectively.
8789
//!
88-
//! **WARNING**
90+
//! ⚠️ WARNING ⚠️
8991
//!
90-
//! DES support is implemented to allow for decryption of legacy files. DES is considered insecure due to
91-
//! its short key size and SHOULD NOT be used for new keys. The algorithms implemented under the `encryption`
92-
//! feature should be used where possible.
93-
//!
94-
//! **WARNING**
92+
//! DES support is implemented to allow for decryption of legacy files.
9593
//!
94+
//! DES is considered insecure due to its short key size. New keys should use AES instead.
9695
//!
9796
//! # PKCS#1 support (optional)
9897
//! When the `pkcs1` feature of this crate is enabled, this crate provides
@@ -113,7 +112,7 @@
113112
#![doc(
114113
html_logo_url = "https://raw.githubusercontent.com/RustCrypto/meta/master/logo.svg",
115114
html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/meta/master/logo.svg",
116-
html_root_url = "https://docs.rs/pkcs8/0.7.5"
115+
html_root_url = "https://docs.rs/pkcs8/0.7.6"
117116
)]
118117
#![forbid(unsafe_code, clippy::unwrap_used)]
119118
#![warn(missing_docs, rust_2018_idioms, unused_qualifications)]

0 commit comments

Comments
 (0)