wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
sha256_i.h
Go to the documentation of this file.
1 
5 #ifndef SHA256_I_H
6 #define SHA256_I_H
7 
8 #define SHA256_BLOCK_SIZE 64
9 
10 struct sha256_state {
11  u64 length;
12  u32 state[8], curlen;
13  u8 buf[SHA256_BLOCK_SIZE];
14 };
15 
16 void sha256_init(struct sha256_state *md);
17 int sha256_process(struct sha256_state *md, const unsigned char *in,
18  unsigned long inlen);
19 int sha256_done(struct sha256_state *md, unsigned char *out);
20 
21 #endif /* SHA256_I_H */
Definition: sha256_i.h:10
int sha256_process(struct sha256_state *md, const unsigned char *in, unsigned long inlen)
Definition: sha256-internal.c:141
int sha256_done(struct sha256_state *md, unsigned char *out)
Definition: sha256-internal.c:181