Skip to content

Commit 8d894fa

Browse files
committed
feat: expose MD5 compression function
1 parent 5be967d commit 8d894fa

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

md5/CHANGELOG.md

Lines changed: 1 addition & 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])

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/soft.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ pub fn compress_block(state: &mut [u32; 4], input: &[u8; 64]) {
143143
}
144144

145145
#[inline]
146+
/// MD5 compression function
146147
pub fn compress(state: &mut [u32; 4], blocks: &[[u8; 64]]) {
147148
for block in blocks {
148149
compress_block(state, block)

0 commit comments

Comments
 (0)