Select one of the symbols to view example projects that use it.
 
Outline
#include <stdio.h>
#include <string.h>
#include "mbedtls/md5.h"
#include "mbedtls/platform_util.h"
#include "md/esp_md.h"
esp_md5_finish(mbedtls_md5_context *, unsigned char *)
esp_md5_update(mbedtls_md5_context *, const unsigned char *, size_t)
esp_md5_init(mbedtls_md5_context *)
esp_md5_starts(mbedtls_md5_context *)
esp_md5_free(mbedtls_md5_context *)
esp_md5_process(mbedtls_md5_context *, const unsigned char *)
esp_md5_clone(mbedtls_md5_context *, const mbedtls_md5_context *)
Files
loading...
SourceVuESP-IDF Framework and ExamplesmbedTLSport/md/esp_md.c
 
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* * SPDX-FileCopyrightText: 2020-2021 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 *//* ... */ #include <stdio.h> #include <string.h> #include "mbedtls/md5.h" #include "mbedtls/platform_util.h" #if defined(MBEDTLS_MD5_ALT) #include "md/esp_md.h" int esp_md5_finish( mbedtls_md5_context *ctx, unsigned char output[16] ) { esp_rom_md5_final(output, ctx); return 0; }{ ... } int esp_md5_update( mbedtls_md5_context *ctx, const unsigned char *input, size_t ilen ) { esp_rom_md5_update(ctx, input, ilen); return 0; }{ ... } void esp_md5_init( mbedtls_md5_context *ctx ) { esp_rom_md5_init(ctx); }{ ... } int esp_md5_starts( mbedtls_md5_context *ctx ) { esp_md5_init(ctx); return 0; }{ ... } void esp_md5_free( mbedtls_md5_context *ctx ) { if (ctx == NULL) { return; }{...} mbedtls_platform_zeroize( ctx, sizeof( mbedtls_md5_context ) ); }{ ... } int esp_md5_process( mbedtls_md5_context *ctx, const unsigned char data[64] ) { esp_md5_update(ctx, data, 64); return 0; }{ ... } void esp_md5_clone( mbedtls_md5_context *dst, const mbedtls_md5_context *src ) { *dst = *src; }{ ... } #endif/* ... */
Details