Home
last modified time | relevance | path

Searched refs:sha512_context (Results 1 – 4 of 4) sorted by relevance

/openbmc/u-boot/include/u-boot/
H A Dsha512.h17 } sha512_context; typedef
21 void sha512_starts(sha512_context * ctx);
22 void sha512_update(sha512_context *ctx, const uint8_t *input, uint32_t length);
23 void sha512_finish(sha512_context * ctx, uint8_t digest[SHA512_SUM_LEN]);
30 void sha384_starts(sha512_context * ctx);
31 void sha384_update(sha512_context *ctx, const uint8_t *input, uint32_t length);
32 void sha384_finish(sha512_context * ctx, uint8_t digest[SHA384_SUM_LEN]);
/openbmc/u-boot/lib/
H A Dsha512.c193 static void sha512_block_fn(sha512_context *sst, const uint8_t *src, in sha512_block_fn()
202 static void sha512_base_do_update(sha512_context *sctx, in sha512_base_do_update()
238 static void sha512_base_do_finalize(sha512_context *sctx) in sha512_base_do_finalize()
259 void sha384_starts(sha512_context * ctx) in sha384_starts()
272 void sha384_update(sha512_context *ctx, const uint8_t *input, uint32_t length) in sha384_update()
277 void sha384_finish(sha512_context * ctx, uint8_t digest[SHA384_SUM_LEN]) in sha384_finish()
293 sha512_context ctx; in sha384_csum_wd()
323 void sha512_starts(sha512_context * ctx) in sha512_starts()
336 void sha512_update(sha512_context *ctx, const uint8_t *input, uint32_t length) in sha512_update()
341 void sha512_finish(sha512_context * ctx, uint8_t digest[SHA512_SUM_LEN]) in sha512_finish()
[all …]
H A Dtpm-v2.c74 sha512_context ctx_512; in tcg2_create_digest()
/openbmc/u-boot/common/
H A Dhash.c92 sha512_context *ctx = malloc(sizeof(sha512_context)); in hash_init_sha384()
101 sha384_update((sha512_context *)ctx, buf, size); in hash_update_sha384()
111 sha384_finish((sha512_context *)ctx, dest_buf); in hash_finish_sha384()
120 sha512_context *ctx = malloc(sizeof(sha512_context)); in hash_init_sha512()
129 sha512_update((sha512_context *)ctx, buf, size); in hash_update_sha512()
139 sha512_finish((sha512_context *)ctx, dest_buf); in hash_finish_sha512()