Home
last modified time | relevance | path

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

/hal_espressif-3.6.0/components/espcoredump/src/
Dcore_dump_checksum.c86 void esp_core_dump_checksum_update(core_dump_checksum_ctx* cks_ctx, void* data, size_t data_len) in esp_core_dump_checksum_update() argument
88 ESP_COREDUMP_DEBUG_ASSERT(cks_ctx); in esp_core_dump_checksum_update()
92 cks_ctx->crc = esp_rom_crc32_le(cks_ctx->crc, data, data_len); in esp_core_dump_checksum_update()
96 cks_ctx->ctx.mode = ESP_MBEDTLS_SHA256_SOFTWARE; in esp_core_dump_checksum_update()
98 (void)mbedtls_sha256_update_ret(&cks_ctx->ctx, data, data_len); in esp_core_dump_checksum_update()
101 cks_ctx->total_bytes_checksum += data_len; in esp_core_dump_checksum_update()
108 uint32_t esp_core_dump_checksum_finish(core_dump_checksum_ctx* cks_ctx, core_dump_checksum_bytes* c… in esp_core_dump_checksum_finish() argument
113 ESP_COREDUMP_DEBUG_ASSERT(cks_ctx != NULL || chs_ptr == NULL); in esp_core_dump_checksum_finish()
117 *chs_ptr = (core_dump_checksum_bytes) &cks_ctx->crc; in esp_core_dump_checksum_finish()
119 chs_len = sizeof(cks_ctx->crc); in esp_core_dump_checksum_finish()
[all …]