mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
hashsum: pass spell checker
This commit is contained in:
parent
3a0f292510
commit
163472ff7b
1 changed files with 11 additions and 11 deletions
|
@ -83,7 +83,7 @@ impl Digest for blake3::Hasher {
|
|||
}
|
||||
|
||||
// Implements the Digest trait for sha2 / sha3 algorithms with fixed output
|
||||
macro_rules! impl_digest_rustcryptocommon {
|
||||
macro_rules! impl_digest_common {
|
||||
($type: ty, $size: expr) => {
|
||||
impl Digest for $type {
|
||||
fn new() -> Self {
|
||||
|
@ -136,17 +136,17 @@ macro_rules! impl_digest_shake {
|
|||
};
|
||||
}
|
||||
|
||||
impl_digest_rustcryptocommon!(md5::Md5, 128);
|
||||
impl_digest_rustcryptocommon!(sha1::Sha1, 160);
|
||||
impl_digest_rustcryptocommon!(sha2::Sha224, 224);
|
||||
impl_digest_rustcryptocommon!(sha2::Sha256, 256);
|
||||
impl_digest_rustcryptocommon!(sha2::Sha384, 384);
|
||||
impl_digest_rustcryptocommon!(sha2::Sha512, 512);
|
||||
impl_digest_common!(md5::Md5, 128);
|
||||
impl_digest_common!(sha1::Sha1, 160);
|
||||
impl_digest_common!(sha2::Sha224, 224);
|
||||
impl_digest_common!(sha2::Sha256, 256);
|
||||
impl_digest_common!(sha2::Sha384, 384);
|
||||
impl_digest_common!(sha2::Sha512, 512);
|
||||
|
||||
impl_digest_rustcryptocommon!(sha3::Sha3_224, 224);
|
||||
impl_digest_rustcryptocommon!(sha3::Sha3_256, 256);
|
||||
impl_digest_rustcryptocommon!(sha3::Sha3_384, 384);
|
||||
impl_digest_rustcryptocommon!(sha3::Sha3_512, 512);
|
||||
impl_digest_common!(sha3::Sha3_224, 224);
|
||||
impl_digest_common!(sha3::Sha3_256, 256);
|
||||
impl_digest_common!(sha3::Sha3_384, 384);
|
||||
impl_digest_common!(sha3::Sha3_512, 512);
|
||||
impl_digest_shake!(sha3::Shake128);
|
||||
impl_digest_shake!(sha3::Shake256);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue