linux/include/linux/cryptohash.h
<<
>>
Prefs
   1/* SPDX-License-Identifier: GPL-2.0 */
   2#ifndef __CRYPTOHASH_H
   3#define __CRYPTOHASH_H
   4
   5#include <uapi/linux/types.h>
   6
   7/*
   8 * An implementation of SHA-1's compression function.  Don't use in new code!
   9 * You shouldn't be using SHA-1, and even if you *have* to use SHA-1, this isn't
  10 * the correct way to hash something with SHA-1 (use crypto_shash instead).
  11 */
  12#define SHA1_DIGEST_WORDS 5
  13#define SHA1_BLOCK_SIZE 64
  14#define SHA1_WORKSPACE_WORDS 16
  15void sha1_init(__u32 *buf);
  16void sha1_transform(__u32 *digest, const char *data, __u32 *W);
  17
  18#endif
  19