ESP8266
Main Page
Related Pages
Modules
Classes
esp8266
cores
esp8266
md5.h
1
/*
2
md5.h - exposed md5 ROM functions for esp8266
3
4
Copyright (c) 2015 Hristo Gochkov. All rights reserved.
5
This file is part of the esp8266 core for Arduino environment.
6
7
original C source from https://github.com/morrissinger/ESP8266-Websocket/raw/master/MD5.h
8
9
This library is free software; you can redistribute it and/or
10
modify it under the terms of the GNU Lesser General Public
11
License as published by the Free Software Foundation; either
12
version 2.1 of the License, or (at your option) any later version.
13
14
This library is distributed in the hope that it will be useful,
15
but WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
Lesser General Public License for more details.
18
19
You should have received a copy of the GNU Lesser General Public
20
License along with this library; if not, write to the Free Software
21
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22
*/
23
#ifndef __ESP8266_MD5__
24
#define __ESP8266_MD5__
25
26
#ifdef __cplusplus
27
extern
"C"
{
28
#endif
29
30
typedef
struct
{
31
uint32_t state[4];
32
uint32_t count[2];
33
uint8_t buffer[64];
34
}
md5_context_t
;
35
36
extern
void
MD5Init (
md5_context_t
*);
37
extern
void
MD5Update (
md5_context_t
*, uint8_t *, uint16_t);
38
extern
void
MD5Final (uint8_t [16],
md5_context_t
*);
39
40
#ifdef __cplusplus
41
}
// extern "C"
42
#endif
43
44
#endif
md5_context_t
Definition:
md5.h:30
Generated by
1.8.10