Symbol: sha1_ctx
crypto/sha1.c
197
.descsize = sizeof(struct sha1_ctx),
crypto/sha1.c
22
#define SHA1_SHASH_STATE_SIZE (sizeof(struct sha1_ctx) + 1)
crypto/sha1.c
23
static_assert(sizeof(struct sha1_ctx) == sizeof(struct sha1_state));
crypto/sha1.c
24
static_assert(offsetof(struct sha1_ctx, state) == offsetof(struct sha1_state, state));
crypto/sha1.c
25
static_assert(offsetof(struct sha1_ctx, bytecount) == offsetof(struct sha1_state, count));
crypto/sha1.c
26
static_assert(offsetof(struct sha1_ctx, buf) == offsetof(struct sha1_state, buffer));
crypto/sha1.c
28
static int __crypto_sha1_export(const struct sha1_ctx *ctx0, void *out)
crypto/sha1.c
30
struct sha1_ctx ctx = *ctx0;
crypto/sha1.c
42
static int __crypto_sha1_import(struct sha1_ctx *ctx, const void *in)
crypto/sha1.c
52
static int __crypto_sha1_export_core(const struct sha1_ctx *ctx, void *out)
crypto/sha1.c
54
memcpy(out, ctx, offsetof(struct sha1_ctx, buf));
crypto/sha1.c
58
static int __crypto_sha1_import_core(struct sha1_ctx *ctx, const void *in)
crypto/sha1.c
60
memcpy(ctx, in, offsetof(struct sha1_ctx, buf));
crypto/sha1.c
71
#define SHA1_CTX(desc) ((struct sha1_ctx *)shash_desc_ctx(desc))
drivers/net/ppp/ppp_mppe.c
116
struct sha1_ctx ctx;
drivers/tee/tee_core.c
153
struct sha1_ctx ctx;
include/crypto/sha1.h
105
struct sha1_ctx sha_ctx;
include/crypto/sha1.h
54
void sha1_init(struct sha1_ctx *ctx);
include/crypto/sha1.h
66
void sha1_update(struct sha1_ctx *ctx, const u8 *data, size_t len);
include/crypto/sha1.h
77
void sha1_final(struct sha1_ctx *ctx, u8 out[at_least SHA1_DIGEST_SIZE]);
lib/crypto/sha1.c
134
void sha1_init(struct sha1_ctx *ctx)
lib/crypto/sha1.c
141
void sha1_update(struct sha1_ctx *ctx, const u8 *data, size_t len)
lib/crypto/sha1.c
174
static void __sha1_final(struct sha1_ctx *ctx, u8 out[SHA1_DIGEST_SIZE])
lib/crypto/sha1.c
193
void sha1_final(struct sha1_ctx *ctx, u8 out[SHA1_DIGEST_SIZE])
lib/crypto/sha1.c
202
struct sha1_ctx ctx;
lib/crypto/tests/sha1_kunit.c
9
#define HASH_CTX sha1_ctx
lib/digsig.c
198
struct sha1_ctx ctx;
net/ipv6/addrconf.c
3341
static struct sha1_ctx sha_ctx;
security/keys/trusted-keys/trusted_tpm1.c
133
struct sha1_ctx sha_ctx;
security/keys/trusted-keys/trusted_tpm1.c
185
struct sha1_ctx sha_ctx;
security/keys/trusted-keys/trusted_tpm1.c
255
struct sha1_ctx sha_ctx;