Searched refs:hash_ctx (Results 1 - 3 of 3) sorted by relevance
/base/startup/hvb/libhvb/src/crypto/ |
H A D | hvb_hash_sha256.c | 282 int hash_ctx_init(struct hash_ctx_t *hash_ctx, enum hash_alg_type alg_type) in hash_ctx_init() argument 288 if (hash_ctx == NULL) { in hash_ctx_init() 292 hash_ctx->alg_type = (uint32_t)alg_type; in hash_ctx_init() 293 hash_ctx->buf_len = 0; in hash_ctx_init() 294 hash_ctx->total_len = 0; in hash_ctx_init() 296 if (hvb_memcpy_s(hash_ctx->iv, IV_BYTE_SIZE_SHA256, sha256_iv_init, sizeof(sha256_iv_init)) != 0) { in hash_ctx_init() 303 int hash_calc_update(struct hash_ctx_t *hash_ctx, const void *msg, uint32_t msg_len) in hash_calc_update() argument 313 if (hash_ctx == NULL || msg == NULL) { in hash_calc_update() 317 blk_len = hash_alg_get_blklen(hash_ctx->alg_type); in hash_calc_update() 322 if (hash_ctx in hash_calc_update() 363 hash_calc_do_final(struct hash_ctx_t *hash_ctx, const void *msg, uint32_t msg_len, uint8_t *out, uint32_t out_len) hash_calc_do_final() argument [all...] |
/base/startup/init/test/mock/hvb/libhvb/crypto/ |
H A D | hvb_hash_sha256.c | 21 int hash_ctx_init(struct hash_ctx_t *hash_ctx, enum hash_alg_type alg_type) in hash_ctx_init() argument 34 int hash_calc_update(struct hash_ctx_t *hash_ctx, const void *msg, uint32_t msg_len) in hash_calc_update() argument 47 int hash_calc_do_final(struct hash_ctx_t *hash_ctx, const void *msg, uint32_t msg_len, uint8_t *out, uint32_t out_len) in hash_calc_do_final() argument
|
/base/startup/hvb/libhvb/include/ |
H A D | hvb_crypto.h | 59 int hash_ctx_init(struct hash_ctx_t *hash_ctx, enum hash_alg_type); 61 int hash_calc_update(struct hash_ctx_t *hash_ctx, const void *msg, uint32_t msg_len); 63 int hash_calc_do_final(struct hash_ctx_t *hash_ctx, const void *msg, uint32_t msg_len, uint8_t *out, uint32_t out_len);
|
Completed in 2 milliseconds