md4.h 562 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Common values for ARC4 Cipher Algorithm
  4. */
  5. #ifndef _CIFS_MD4_H
  6. #define _CIFS_MD4_H
  7. #include <linux/types.h>
  8. #define MD4_DIGEST_SIZE 16
  9. #define MD4_HMAC_BLOCK_SIZE 64
  10. #define MD4_BLOCK_WORDS 16
  11. #define MD4_HASH_WORDS 4
  12. struct md4_ctx {
  13. u32 hash[MD4_HASH_WORDS];
  14. u32 block[MD4_BLOCK_WORDS];
  15. u64 byte_count;
  16. };
  17. int cifs_md4_init(struct md4_ctx *mctx);
  18. int cifs_md4_update(struct md4_ctx *mctx, const u8 *data, unsigned int len);
  19. int cifs_md4_final(struct md4_ctx *mctx, u8 *out);
  20. #endif /* _CIFS_MD4_H */