sha1_ctx
.descsize = sizeof(struct sha1_ctx),
#define SHA1_SHASH_STATE_SIZE (sizeof(struct sha1_ctx) + 1)
static_assert(sizeof(struct sha1_ctx) == sizeof(struct sha1_state));
static_assert(offsetof(struct sha1_ctx, state) == offsetof(struct sha1_state, state));
static_assert(offsetof(struct sha1_ctx, bytecount) == offsetof(struct sha1_state, count));
static_assert(offsetof(struct sha1_ctx, buf) == offsetof(struct sha1_state, buffer));
static int __crypto_sha1_export(const struct sha1_ctx *ctx0, void *out)
struct sha1_ctx ctx = *ctx0;
static int __crypto_sha1_import(struct sha1_ctx *ctx, const void *in)
static int __crypto_sha1_export_core(const struct sha1_ctx *ctx, void *out)
memcpy(out, ctx, offsetof(struct sha1_ctx, buf));
static int __crypto_sha1_import_core(struct sha1_ctx *ctx, const void *in)
memcpy(ctx, in, offsetof(struct sha1_ctx, buf));
#define SHA1_CTX(desc) ((struct sha1_ctx *)shash_desc_ctx(desc))
struct sha1_ctx ctx;
struct sha1_ctx ctx;
struct sha1_ctx sha_ctx;
void sha1_init(struct sha1_ctx *ctx);
void sha1_update(struct sha1_ctx *ctx, const u8 *data, size_t len);
void sha1_final(struct sha1_ctx *ctx, u8 out[at_least SHA1_DIGEST_SIZE]);
void sha1_init(struct sha1_ctx *ctx)
void sha1_update(struct sha1_ctx *ctx, const u8 *data, size_t len)
static void __sha1_final(struct sha1_ctx *ctx, u8 out[SHA1_DIGEST_SIZE])
void sha1_final(struct sha1_ctx *ctx, u8 out[SHA1_DIGEST_SIZE])
struct sha1_ctx ctx;
#define HASH_CTX sha1_ctx
struct sha1_ctx ctx;
static struct sha1_ctx sha_ctx;
struct sha1_ctx sha_ctx;
struct sha1_ctx sha_ctx;
struct sha1_ctx sha_ctx;