mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 00:46:47 +07:00
3c7eb3cc83
The md5_transform function is no longer used any where in the tree, except for the crypto api's actual implementation of md5, so we can drop the function from lib and put it as a static function of the crypto file, where it belongs. There should be no new users of md5_transform, anyway, since there are more modern ways of doing what it once achieved. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Reviewed-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
14 lines
280 B
C
14 lines
280 B
C
#ifndef __CRYPTOHASH_H
|
|
#define __CRYPTOHASH_H
|
|
|
|
#include <uapi/linux/types.h>
|
|
|
|
#define SHA_DIGEST_WORDS 5
|
|
#define SHA_MESSAGE_BYTES (512 /*bits*/ / 8)
|
|
#define SHA_WORKSPACE_WORDS 16
|
|
|
|
void sha_init(__u32 *buf);
|
|
void sha_transform(__u32 *digest, const char *data, __u32 *W);
|
|
|
|
#endif
|