Home
last modified time | relevance | path

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

/base/security/device_auth/frameworks/deviceauth_lite/source/json/
Dcommonutil.c29 void byte_to_hex_string(const uint8_t *hex, int32_t hex_len, uint8_t *buf, int32_t buf_len) in byte_to_hex_string() argument
31 if (buf_len < hex_len * BYTE_TO_HEX_OPER_LENGTH) { in byte_to_hex_string()
71 void print_bytes(uint8_t *buf, int32_t buf_len) in print_bytes() argument
73 int32_t tmp_data_hex_len = buf_len * BYTE_TO_HEX_OPER_LENGTH + sizeof(""); in print_bytes()
80 byte_to_hex_string(buf, buf_len, tmp_data_hex, buf_len * BYTE_TO_HEX_OPER_LENGTH); in print_bytes()
Dcommonutil.h25 void byte_to_hex_string(const uint8_t *hex, int32_t hex_len, uint8_t *buf, int32_t buf_len);
27 void print_bytes(uint8_t *buf, int32_t buf_len);
/base/startup/hvb/libhvb/src/crypto/
Dhvb_hash_sha256.c276 hash_ctx->buf_len = 0; in hash_ctx_init()
299 if (hash_ctx->buf_len >= blk_len) { in hash_calc_update()
305 left_len = blk_len - hash_ctx->buf_len; in hash_calc_update()
307 if (hash_ctx->buf_len != 0 && msg_len >= left_len) { in hash_calc_update()
308 hvb_memcpy(hash_ctx->blk_buf + hash_ctx->buf_len, msg, left_len); in hash_calc_update()
311 hash_ctx->buf_len = 0; in hash_calc_update()
326 hvb_memcpy(hash_ctx->blk_buf + hash_ctx->buf_len, msg, msg_len); in hash_calc_update()
327 hash_ctx->buf_len = hash_ctx->buf_len + msg_len; in hash_calc_update()
348 hash_sha256_pad_update(hash_ctx->iv, hash_ctx->blk_buf, hash_ctx->buf_len, total_bit_len); in hash_calc_do_final()
/base/startup/hvb/libhvb/include/
Dhvb_crypto.h51 uint32_t buf_len; member