Searched refs:mctx (Results 1 – 2 of 2) sorted by relevance
161 struct md5_ctx *mctx = context; in md5_init() local163 mctx->hash[0] = 0x67452301; in md5_init()164 mctx->hash[1] = 0xefcdab89; in md5_init()165 mctx->hash[2] = 0x98badcfe; in md5_init()166 mctx->hash[3] = 0x10325476; in md5_init()167 mctx->byte_count = 0; in md5_init()172 struct md5_ctx *mctx = context; in md5_update() local173 const u32 avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); in md5_update()175 mctx->byte_count += len; in md5_update()178 memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), in md5_update()[all …]
91 void fio_md5_init(struct fio_md5_ctx *mctx) in fio_md5_init() argument93 mctx->hash[0] = 0x67452301; in fio_md5_init()94 mctx->hash[1] = 0xefcdab89; in fio_md5_init()95 mctx->hash[2] = 0x98badcfe; in fio_md5_init()96 mctx->hash[3] = 0x10325476; in fio_md5_init()99 void fio_md5_update(struct fio_md5_ctx *mctx, const uint8_t *data, in fio_md5_update() argument102 const uint32_t avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); in fio_md5_update()104 mctx->byte_count += len; in fio_md5_update()107 memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), in fio_md5_update()112 memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), in fio_md5_update()[all …]