mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
c139683024
Move supplicant to idf and do following refactoring: 1. Make the folder structure consitent with supplicant upstream 2. Remove duplicated header files and minimize the public header files 3. Refactor for WiFi/supplicant interfaces
30 lines
809 B
C
30 lines
809 B
C
/*
|
|
* SHA1 internal definitions
|
|
* Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
* Alternatively, this software may be distributed under the terms of BSD
|
|
* license.
|
|
*
|
|
* See README and COPYING for more details.
|
|
*/
|
|
|
|
#ifndef SHA1_I_H
|
|
#define SHA1_I_H
|
|
|
|
struct SHA1Context {
|
|
u32 state[5];
|
|
u32 count[2];
|
|
unsigned char buffer[64];
|
|
};
|
|
|
|
void SHA1Init(struct SHA1Context *context);
|
|
void SHA1Update(struct SHA1Context *context, const void *data, u32 len);
|
|
void SHA1Final(unsigned char digest[20], struct SHA1Context *context);
|
|
void SHA1Transform(u32 state[5], const unsigned char buffer[64]);
|
|
|
|
#endif /* SHA1_I_H */
|