Lines Matching refs:md5_ctx
19 #define MD5_SHASH_STATE_SIZE (sizeof(struct md5_ctx) + 1)
20 static_assert(sizeof(struct md5_ctx) == sizeof(struct md5_state));
21 static_assert(offsetof(struct md5_ctx, state) == offsetof(struct md5_state, hash));
22 static_assert(offsetof(struct md5_ctx, bytecount) == offsetof(struct md5_state, byte_count));
23 static_assert(offsetof(struct md5_ctx, buf) == offsetof(struct md5_state, block));
25 static int __crypto_md5_export(const struct md5_ctx *ctx0, void *out) in __crypto_md5_export()
27 struct md5_ctx ctx = *ctx0; in __crypto_md5_export()
39 static int __crypto_md5_import(struct md5_ctx *ctx, const void *in) in __crypto_md5_import()
49 static int __crypto_md5_export_core(const struct md5_ctx *ctx, void *out) in __crypto_md5_export_core()
51 memcpy(out, ctx, offsetof(struct md5_ctx, buf)); in __crypto_md5_export_core()
55 static int __crypto_md5_import_core(struct md5_ctx *ctx, const void *in) in __crypto_md5_import_core()
57 memcpy(ctx, in, offsetof(struct md5_ctx, buf)); in __crypto_md5_import_core()
67 #define MD5_CTX(desc) ((struct md5_ctx *)shash_desc_ctx(desc))
193 .descsize = sizeof(struct md5_ctx),