Searched refs:mctx (Results 1 – 3 of 3) sorted by relevance
/fs/smbfs_common/ |
D | cifs_md4.c | 126 int cifs_md4_init(struct md4_ctx *mctx) in cifs_md4_init() argument 128 memset(mctx, 0, sizeof(struct md4_ctx)); in cifs_md4_init() 129 mctx->hash[0] = 0x67452301; in cifs_md4_init() 130 mctx->hash[1] = 0xefcdab89; in cifs_md4_init() 131 mctx->hash[2] = 0x98badcfe; in cifs_md4_init() 132 mctx->hash[3] = 0x10325476; in cifs_md4_init() 133 mctx->byte_count = 0; in cifs_md4_init() 139 int cifs_md4_update(struct md4_ctx *mctx, const u8 *data, unsigned int len) in cifs_md4_update() argument 141 const u32 avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); in cifs_md4_update() 143 mctx->byte_count += len; in cifs_md4_update() [all …]
|
D | md4.h | 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);
|
/fs/cifs/ |
D | smbencrypt.c | 46 struct md4_ctx mctx; in mdfour() local 48 rc = cifs_md4_init(&mctx); in mdfour() 53 rc = cifs_md4_update(&mctx, link_str, link_len); in mdfour() 58 rc = cifs_md4_final(&mctx, md4_hash); in mdfour()
|