sha1.h

Go to the documentation of this file.
00001 
00016 #ifndef SHA1_H
00017 #define SHA1_H
00018 
00019 #define SHA1_MAC_LEN 20
00020 
00021 int hmac_sha1_vector(const u8 *key, size_t key_len, size_t num_elem,
00022                      const u8 *addr[], const size_t *len, u8 *mac);
00023 int hmac_sha1(const u8 *key, size_t key_len, const u8 *data, size_t data_len,
00024                u8 *mac);
00025 int sha1_prf(const u8 *key, size_t key_len, const char *label,
00026              const u8 *data, size_t data_len, u8 *buf, size_t buf_len);
00027 int sha1_t_prf(const u8 *key, size_t key_len, const char *label,
00028                const u8 *seed, size_t seed_len, u8 *buf, size_t buf_len);
00029 int __must_check tls_prf(const u8 *secret, size_t secret_len,
00030                          const char *label, const u8 *seed, size_t seed_len,
00031                          u8 *out, size_t outlen);
00032 int pbkdf2_sha1(const char *passphrase, const char *ssid, size_t ssid_len,
00033                 int iterations, u8 *buf, size_t buflen);
00034 #endif /* SHA1_H */
00035 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on Sat Nov 21 23:16:50 2009 for hostapd by  doxygen 1.6.1