blob: f6ba4c3e60d793c385fa1e1a21fb3ce00f427fc7 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002#ifndef __CRYPTOHASH_H
3#define __CRYPTOHASH_H
4
Rasmus Villemoes32483402015-02-12 15:02:40 -08005#include <uapi/linux/types.h>
6
Linus Torvalds1da177e2005-04-16 15:20:36 -07007#define SHA_DIGEST_WORDS 5
William Allen Simpsonda5c78c2009-12-02 18:12:09 +00008#define SHA_MESSAGE_BYTES (512 /*bits*/ / 8)
Mandeep Singh Baines1eb19a12011-08-05 18:46:27 -07009#define SHA_WORKSPACE_WORDS 16
Linus Torvalds1da177e2005-04-16 15:20:36 -070010
11void sha_init(__u32 *buf);
12void sha_transform(__u32 *digest, const char *data, __u32 *W);
13
Linus Torvalds1da177e2005-04-16 15:20:36 -070014#endif