We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e25ce3f commit 72790ddCopy full SHA for 72790dd
1 file changed
src/uucore/src/lib/features/checksum/validate.rs
@@ -741,7 +741,7 @@ fn process_algo_based_line(
741
// If the digest bitlen is known, we can check the format of the expected
742
// checksum with it.
743
let digest_char_length_hint = match (algo_kind, algo_byte_len) {
744
- (AlgoKind::Blake2b, Some(byte_len)) => Some(byte_len),
+ (AlgoKind::Blake2b | AlgoKind::Blake3, Some(byte_len)) => Some(byte_len),
745
(AlgoKind::Shake128 | AlgoKind::Shake256, Some(bit_len)) => Some(bit_len.div_ceil(8)),
746
(AlgoKind::Shake128, None) => Some(sum::Shake128::DEFAULT_BIT_SIZE.div_ceil(8)),
747
(AlgoKind::Shake256, None) => Some(sum::Shake256::DEFAULT_BIT_SIZE.div_ceil(8)),
0 commit comments