Lines Matching refs:sha1_ctx
22 #define SHA1_SHASH_STATE_SIZE (sizeof(struct sha1_ctx) + 1)
23 static_assert(sizeof(struct sha1_ctx) == sizeof(struct sha1_state));
24 static_assert(offsetof(struct sha1_ctx, state) == offsetof(struct sha1_state, state));
25 static_assert(offsetof(struct sha1_ctx, bytecount) == offsetof(struct sha1_state, count));
26 static_assert(offsetof(struct sha1_ctx, buf) == offsetof(struct sha1_state, buffer));
28 static int __crypto_sha1_export(const struct sha1_ctx *ctx0, void *out) in __crypto_sha1_export()
30 struct sha1_ctx ctx = *ctx0; in __crypto_sha1_export()
42 static int __crypto_sha1_import(struct sha1_ctx *ctx, const void *in) in __crypto_sha1_import()
52 static int __crypto_sha1_export_core(const struct sha1_ctx *ctx, void *out) in __crypto_sha1_export_core()
54 memcpy(out, ctx, offsetof(struct sha1_ctx, buf)); in __crypto_sha1_export_core()
58 static int __crypto_sha1_import_core(struct sha1_ctx *ctx, const void *in) in __crypto_sha1_import_core()
60 memcpy(ctx, in, offsetof(struct sha1_ctx, buf)); in __crypto_sha1_import_core()
71 #define SHA1_CTX(desc) ((struct sha1_ctx *)shash_desc_ctx(desc))
197 .descsize = sizeof(struct sha1_ctx),