Skip to content
This repository was archived by the owner on Apr 11, 2022. It is now read-only.

Commit 04ada98

Browse files
committed
fix typo
1 parent 250f1cb commit 04ada98

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

include/proofofwork.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ enum { pow_md5_digest_length = 16 };
2929
/**
3030
* @param [in] mask the length must be pow_md5_digest_length.
3131
* @param [in] target the length must be pow_md5_digest_length.
32-
* @param [in,out] buffer the length must be pow_md5_digest_length.
32+
* @param [in,out] buffer the length must be at most pow_md5_block_length.
3333
* @param [in] size
3434
* @param [in] indices indices of buffer to modify. the length must be pow_indices.
3535
* @return whether a text is found or not.

src/md5-avx2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ bool pow_md5_mine(uint8_t const *mask, uint8_t const *target, uint8_t *buffer, u
3838
if (indices[i] < -1 or (int64_t)size <= indices[i]) return false;
3939
}
4040
if (indices[0] == -1) return false;
41-
if (size > pow_sha1_block_length - sizeof(uint64_t) / CHAR_BIT - 1) return false;
41+
if (size > pow_md5_block_length - sizeof(uint64_t) / CHAR_BIT - 1) return false;
4242

4343
// load hash
4444
const uint32_t mask_a = ((uint32_t *)mask)[0];

0 commit comments

Comments
 (0)