Skip to content

Commit 1b849b1

Browse files
authored
block-padding: remove PadType and add pad_detached method (#1225)
`PadType` is used only in the default implementation of `unpad_blocks` and in `inout`. To handle the latter case `Padding::pad_detached` is added.
1 parent 4da176e commit 1b849b1

File tree

5 files changed

+135
-136
lines changed

5 files changed

+135
-136
lines changed

Cargo.lock

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

block-padding/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,23 @@ 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

77
## 0.4.0 (unreleased)
8+
### Added
9+
- `Padding::pad_detached` method ([#1225])
10+
811
### Changed
912
- Migrated from `generic-array` to `hybrid-array` ([#944])
1013
- Edition changed to 2024 and MSRV bumped to 1.85 ([#1149])
1114
- Merged `RawPadding` and `Padding` traits ([#1217])
15+
- Renamed `UnpadError` to `Error` ([#1225])
1216

1317
### Removed
1418
- `Block` type alias ([#1217])
19+
- `PadType` enum and associated type on the `Padding` trait ([#1225])
1520

1621
[#944]: https://github.com/RustCrypto/utils/pull/944
1722
[#1149]: https://github.com/RustCrypto/utils/pull/1149
1823
[#1217]: https://github.com/RustCrypto/utils/pull/1217
24+
[#1225]: https://github.com/RustCrypto/utils/pull/1225
1925

2026
## 0.3.3 (2023-04-02)
2127
### Added

block-padding/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99

1010
Padding and unpadding of messages divided into blocks.
1111

12+
This crate provides the `Padding` trait with padding and unpadding methods.
13+
Additionally, several common padding schemes are available out of the box.
14+
1215
## License
1316

1417
Licensed under either of:

0 commit comments

Comments
 (0)