Searched refs:__sha256_ctx (Results 1 – 5 of 5) sorted by relevance
| /linux/lib/crypto/x86/ |
| H A D | sha256.h | 40 static_assert(offsetof(struct __sha256_ctx, state) == 0); 41 static_assert(offsetof(struct __sha256_ctx, bytecount) == 32); 42 static_assert(offsetof(struct __sha256_ctx, buf) == 40); 43 asmlinkage void sha256_ni_finup2x(const struct __sha256_ctx *ctx, 49 static bool sha256_finup_2x_arch(const struct __sha256_ctx *ctx, in sha256_finup_2x_arch()
|
| /linux/lib/crypto/arm64/ |
| H A D | sha256.h | 45 static_assert(offsetof(struct __sha256_ctx, state) == 0); 46 static_assert(offsetof(struct __sha256_ctx, bytecount) == 32); 47 static_assert(offsetof(struct __sha256_ctx, buf) == 40); 48 asmlinkage void sha256_ce_finup2x(const struct __sha256_ctx *ctx, 54 static bool sha256_finup_2x_arch(const struct __sha256_ctx *ctx, in sha256_finup_2x_arch()
|
| /linux/crypto/ |
| H A D | sha256.c | 24 static_assert(offsetof(struct __sha256_ctx, state) == 0); 25 static_assert(offsetof(struct __sha256_ctx, bytecount) == 32); 26 static_assert(offsetof(struct __sha256_ctx, buf) == 40); 27 static_assert(sizeof(struct __sha256_ctx) + 1 == SHA256_SHASH_STATE_SIZE); 29 static int __crypto_sha256_export(const struct __sha256_ctx *ctx0, void *out) in __crypto_sha256_export() 31 struct __sha256_ctx ctx = *ctx0; in __crypto_sha256_export() 43 static int __crypto_sha256_import(struct __sha256_ctx *ctx, const void *in) in __crypto_sha256_import() 53 static int __crypto_sha256_export_core(const struct __sha256_ctx *ctx, in __crypto_sha256_export_core() 56 memcpy(out, ctx, offsetof(struct __sha256_ctx, buf)); in __crypto_sha256_export_core() 60 static int __crypto_sha256_import_core(struct __sha256_ctx *ctx, const void *in) in __crypto_sha256_import_core() [all …]
|
| /linux/include/crypto/ |
| H A D | sha2.h | 127 struct __sha256_ctx { struct 132 void __sha256_update(struct __sha256_ctx *ctx, const u8 *data, size_t len); argument 144 struct __sha256_ctx sha_ctx; 155 struct __sha256_ctx ctx; 330 struct __sha256_ctx ctx;
|
| /linux/lib/crypto/ |
| H A D | sha256.c | 165 static void __sha256_init(struct __sha256_ctx *ctx, in __sha256_init() 185 void __sha256_update(struct __sha256_ctx *ctx, const u8 *data, size_t len) in __sha256_update() 218 static void __sha256_final(struct __sha256_ctx *ctx, in __sha256_final() 279 static bool sha256_finup_2x_arch(const struct __sha256_ctx *ctx, in sha256_finup_2x_arch() 294 const struct __sha256_ctx *ctx, const u8 *data1, const u8 *data2, in sha256_finup_2x_sequential() 297 struct __sha256_ctx mut_ctx; in sha256_finup_2x_sequential()
|