wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
sha1.h
Go to the documentation of this file.
1 
5 #ifndef SHA1_H
6 #define SHA1_H
7 
8 #define SHA1_MAC_LEN 20
9 
10 int hmac_sha1_vector(const u8 *key, size_t key_len, size_t num_elem,
11  const u8 *addr[], const size_t *len, u8 *mac);
12 int hmac_sha1(const u8 *key, size_t key_len, const u8 *data, size_t data_len,
13  u8 *mac);
14 int sha1_prf(const u8 *key, size_t key_len, const char *label,
15  const u8 *data, size_t data_len, u8 *buf, size_t buf_len);
16 int sha1_t_prf(const u8 *key, size_t key_len, const char *label,
17  const u8 *seed, size_t seed_len, u8 *buf, size_t buf_len);
18 int __must_check tls_prf_sha1_md5(const u8 *secret, size_t secret_len,
19  const char *label, const u8 *seed,
20  size_t seed_len, u8 *out, size_t outlen);
21 int pbkdf2_sha1(const char *passphrase, const u8 *ssid, size_t ssid_len,
22  int iterations, u8 *buf, size_t buflen);
23 #endif /* SHA1_H */
int hmac_sha1(const u8 *key, size_t key_len, const u8 *data, size_t data_len, u8 *mac)
HMAC-SHA1 over data buffer (RFC 2104)
Definition: crypto_openssl.c:830
int pbkdf2_sha1(const char *passphrase, const u8 *ssid, size_t ssid_len, int iterations, u8 *buf, size_t buflen)
SHA1-based key derivation function (PBKDF2) for IEEE 802.11i.
Definition: crypto_openssl.c:812
int sha1_t_prf(const u8 *key, size_t key_len, const char *label, const u8 *seed, size_t seed_len, u8 *buf, size_t buf_len)
EAP-FAST Pseudo-Random Function (T-PRF)
Definition: sha1-tprf.c:25
int hmac_sha1_vector(const u8 *key, size_t key_len, size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac)
HMAC-SHA1 over data vector (RFC 2104)
Definition: crypto_openssl.c:822
int __must_check tls_prf_sha1_md5(const u8 *secret, size_t secret_len, const char *label, const u8 *seed, size_t seed_len, u8 *out, size_t outlen)
Pseudo-Random Function for TLS (TLS-PRF, RFC 2246)
Definition: sha1-tlsprf.c:26
int sha1_prf(const u8 *key, size_t key_len, const char *label, const u8 *data, size_t data_len, u8 *buf, size_t buf_len)
SHA1-based Pseudo-Random Function (PRF) (IEEE 802.11i, 8.5.1.1)
Definition: sha1-prf.c:26