Searched refs:sha1_ctx (Results 1 – 5 of 5) sorted by relevance
| /linux/crypto/ |
| H A D | sha1.c | 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() [all …]
|
| /linux/include/crypto/ |
| H A D | sha1.h | 50 struct sha1_ctx { struct 64 void sha1_init(struct sha1_ctx *ctx); argument 76 void sha1_update(struct sha1_ctx *ctx, const u8 *data, size_t len); 87 void sha1_final(struct sha1_ctx *ctx, u8 out[at_least SHA1_DIGEST_SIZE]); 115 struct sha1_ctx sha_ctx;
|
| /linux/lib/crypto/ |
| H A D | sha1.c | 163 void sha1_init(struct sha1_ctx *ctx) in sha1_init() 170 void sha1_update(struct sha1_ctx *ctx, const u8 *data, size_t len) in sha1_update() 203 static void __sha1_final(struct sha1_ctx *ctx, u8 out[SHA1_DIGEST_SIZE]) in __sha1_final() 222 void sha1_final(struct sha1_ctx *ctx, u8 out[SHA1_DIGEST_SIZE]) in sha1_final() 231 struct sha1_ctx ctx; in sha1()
|
| /linux/lib/crypto/tests/ |
| H A D | sha1_kunit.c | 9 #define HASH_CTX sha1_ctx
|
| /linux/lib/ |
| H A D | digsig.c | 198 struct sha1_ctx ctx; in digsig_verify()
|