Select one of the symbols to view example projects that use it.
 
Outline
#include <stdint.h>
#include <stdlib.h>
#include "esp_err.h"
bootloader_sha256_handle_t
bootloader_sha256_start();
bootloader_sha256_data(bootloader_sha256_handle_t, const void *, size_t);
bootloader_sha256_finish(bootloader_sha256_handle_t, uint8_t *);
Files
loading...
SourceVuESP-IDF Framework and ExamplesESP-IDFcomponents/bootloader_support/private_include/bootloader_sha.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* * SPDX-FileCopyrightText: 2017-2024 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 *//* ... */ #pragma once /* Provide a SHA256 API for bootloader_support code, that can be used from bootloader or app code. This header is available to source code in the bootloader & bootloader_support components only. Use mbedTLS APIs or include esp32/sha.h to calculate SHA256 in IDF apps. *//* ... */ #include <stdint.h> #include <stdlib.h> #include "esp_err.h" #ifdef __cplusplus extern "C" { #endif typedef void *bootloader_sha256_handle_t; bootloader_sha256_handle_t bootloader_sha256_start(void); void bootloader_sha256_data(bootloader_sha256_handle_t handle, const void *data, size_t data_len); void bootloader_sha256_finish(bootloader_sha256_handle_t handle, uint8_t *digest); #ifdef __cplusplus }{...} #endif
Details