0001
0002
0003
0004
0005
0006 #ifndef _CIFS_MD4_H
0007 #define _CIFS_MD4_H
0008
0009 #include <linux/types.h>
0010
0011 #define MD4_DIGEST_SIZE 16
0012 #define MD4_HMAC_BLOCK_SIZE 64
0013 #define MD4_BLOCK_WORDS 16
0014 #define MD4_HASH_WORDS 4
0015
0016 struct md4_ctx {
0017 u32 hash[MD4_HASH_WORDS];
0018 u32 block[MD4_BLOCK_WORDS];
0019 u64 byte_count;
0020 };
0021
0022
0023 int cifs_md4_init(struct md4_ctx *mctx);
0024 int cifs_md4_update(struct md4_ctx *mctx, const u8 *data, unsigned int len);
0025 int cifs_md4_final(struct md4_ctx *mctx, u8 *out);
0026
0027 #endif