7 * md4_ctx - context structure for md4 hashing
8 * @hash: the 128-bit hash value (only valid after md4_finish)
9 * @block: internal working state.
10 * @byte_count: the total number of bytes processed.
14 unsigned char bytes[16];
22 * md4_init - (re-)initialize the struct md4_ctx before md4_hash.
23 * @mctx: the struct md4_ctx which will be handed to md4_hash.
25 * Contexts can be safely re-used by calling md4_init() on them again.
33 void md4_init(struct md4_ctx *mctx);
36 * md4_hash - add these bytes into the hash
37 * @mctx: the struct md4_ctx.
38 * @p: pointer to the bytes to hash.
39 * @len: the number of bytes pointed to by @p.
45 * md4_hash(&ctx, "hello", 5);
46 * md4_hash(&ctx, " ", 1);
47 * md4_hash(&ctx, "world", 5);
49 void md4_hash(struct md4_ctx *mctx, const void *p, size_t len);
52 * md4_finish - complete the MD4 hash
53 * @mctx: the struct md4_ctx.
59 * md4_hash(&ctx, "hello world", strlen("hello world"));
62 void md4_finish(struct md4_ctx *mctx);
64 #endif /* CCAN_MD4_H */