diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-02-02 11:52:14 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2017-02-02 11:52:14 -0500 |
commit | 1c83a9aab807f7452c4957b2401e1cbf43941820 (patch) | |
tree | d6c819cd48f8f88beeb6bc2ac248f5a79b0d7ed6 /include/linux/cryptohash.h | |
parent | dd01b690f8f4b1e414f89e5a9a5326bf720d6652 (diff) | |
download | linux-stable-1c83a9aab807f7452c4957b2401e1cbf43941820.tar.gz linux-stable-1c83a9aab807f7452c4957b2401e1cbf43941820.tar.bz2 linux-stable-1c83a9aab807f7452c4957b2401e1cbf43941820.zip |
ext4: move halfmd4 into hash.c directly
The "half md4" transform should not be used by any new code. And
fortunately, it's only used now by ext4. Since ext4 supports several
hashing methods, at some point it might be desirable to move to
something like SipHash. As an intermediate step, remove half md4 from
cryptohash.h and lib, and make it just a local function in ext4's
hash.c. There's precedent for doing this; the other function ext can use
for its hashes -- TEA -- is also implemented in the same place. Also, by
being a local function, this might allow gcc to perform some additional
optimizations.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Cc: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'include/linux/cryptohash.h')
-rw-r--r-- | include/linux/cryptohash.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/cryptohash.h b/include/linux/cryptohash.h index f4754282c9c2..3252799832cf 100644 --- a/include/linux/cryptohash.h +++ b/include/linux/cryptohash.h @@ -15,6 +15,4 @@ void sha_transform(__u32 *digest, const char *data, __u32 *W); void md5_transform(__u32 *hash, __u32 const *in); -__u32 half_md4_transform(__u32 buf[4], __u32 const in[8]); - #endif |