Home
last modified time | relevance | path

Searched refs:__sha256_ctx (Results 1 – 2 of 2) sorted by relevance

/linux/crypto/
H A Dsha256.c24 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 Dsha2.h127 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;