Skip to content

Commit ca9321e

Browse files
authored
md5: expose compression function (#735)
1 parent 1f5267d commit ca9321e

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

md5/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
## 0.11.0 (UNRELEASED)
99
### Added
1010
- `alloc` crate feature ([#678])
11+
- Expose compression function from the `block_api` module ([#735])
1112

1213
### Changed
1314
- Edition changed to 2024 and MSRV bumped to 1.85 ([#652])
@@ -24,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2425
[#652]: https://github.com/RustCrypto/hashes/pull/652
2526
[#678]: https://github.com/RustCrypto/hashes/pull/678
2627
[#716]: https://github.com/RustCrypto/hashes/pull/716
28+
[#735]: https://github.com/RustCrypto/hashes/pull/735
2729

2830
## 0.10.6 (2023-09-22)
2931
### Added

md5/src/block_api.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ use digest::{
1010
typenum::{U16, U24, U64, Unsigned},
1111
};
1212

13-
use crate::{compress::compress, consts};
13+
pub use crate::compress::compress;
14+
use crate::consts;
1415

1516
const STATE_LEN: usize = 4;
1617

md5/src/compress.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ cfg_if::cfg_if! {
1212
}
1313

1414
/// MD5 compression function
15-
pub(crate) fn compress(state: &mut [u32; 4], blocks: &[[u8; 64]]) {
15+
pub fn compress(state: &mut [u32; 4], blocks: &[[u8; 64]]) {
1616
compress_inner(state, blocks)
1717
}

0 commit comments

Comments
 (0)