Merge tag 'timers_urgent_for_v6.13_rc1' of git://git.kernel.org/pub/scm/linux/kernel...
[drm/drm-misc.git] / fs / smb / common / md4.h
blob5337becc699ab928bdbcd5023182048a989e3557
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3 * Common values for ARC4 Cipher Algorithm
4 */
6 #ifndef _CIFS_MD4_H
7 #define _CIFS_MD4_H
9 #include <linux/types.h>
11 #define MD4_DIGEST_SIZE 16
12 #define MD4_HMAC_BLOCK_SIZE 64
13 #define MD4_BLOCK_WORDS 16
14 #define MD4_HASH_WORDS 4
16 struct md4_ctx {
17 u32 hash[MD4_HASH_WORDS];
18 u32 block[MD4_BLOCK_WORDS];
19 u64 byte_count;
23 int cifs_md4_init(struct md4_ctx *mctx);
24 int cifs_md4_update(struct md4_ctx *mctx, const u8 *data, unsigned int len);
25 int cifs_md4_final(struct md4_ctx *mctx, u8 *out);
27 #endif /* _CIFS_MD4_H */