Lines Matching refs:hash_ctx
17 static void free_hash_ctx(struct hash_ctx *ctx) in free_hash_ctx()
25 struct hash_ctx base; /* must be first */
30 static void openssl_digest_init(struct hash_ctx *_ctx) in openssl_digest_init()
39 static void openssl_digest_update(struct hash_ctx *_ctx, in openssl_digest_update()
49 static void openssl_digest_final(struct hash_ctx *_ctx, u8 *digest) in openssl_digest_final()
58 static void openssl_digest_ctx_free(struct hash_ctx *_ctx) in openssl_digest_ctx_free()
71 static struct hash_ctx *
97 static struct hash_ctx *create_sha256_ctx(const struct fsverity_hash_alg *alg) in create_sha256_ctx()
102 static struct hash_ctx *create_sha512_ctx(const struct fsverity_hash_alg *alg) in create_sha512_ctx()
117 struct hash_ctx base; /* must be first */
121 static void crc32c_init(struct hash_ctx *_ctx) in crc32c_init()
128 static void crc32c_update(struct hash_ctx *_ctx, const void *data, size_t size) in crc32c_update()
140 static void crc32c_final(struct hash_ctx *_ctx, u8 *digest) in crc32c_final()
148 static struct hash_ctx *create_crc32c_ctx(const struct fsverity_hash_alg *alg) in create_crc32c_ctx()