summaryrefslogtreecommitdiffstats
path: root/contrib/hostapd/ms_funcs.h
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2005-06-05 22:35:03 +0000
committersam <sam@FreeBSD.org>2005-06-05 22:35:03 +0000
commit21e78f430e299464b3c902bec78f8daa1f0e2e71 (patch)
treea7d225a062cd128980707f3fa918dec2d015c46b /contrib/hostapd/ms_funcs.h
downloadFreeBSD-src-21e78f430e299464b3c902bec78f8daa1f0e2e71.zip
FreeBSD-src-21e78f430e299464b3c902bec78f8daa1f0e2e71.tar.gz
Stripped down import of hostapd v0.3.7
Diffstat (limited to 'contrib/hostapd/ms_funcs.h')
-rw-r--r--contrib/hostapd/ms_funcs.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/contrib/hostapd/ms_funcs.h b/contrib/hostapd/ms_funcs.h
new file mode 100644
index 0000000..a08ab06
--- /dev/null
+++ b/contrib/hostapd/ms_funcs.h
@@ -0,0 +1,25 @@
+#ifndef MS_FUNCS_H
+#define MS_FUNCS_H
+
+void generate_nt_response(u8 *auth_challenge, u8 *peer_challenge,
+ u8 *username, size_t username_len,
+ u8 *password, size_t password_len,
+ u8 *response);
+void generate_authenticator_response(u8 *password, size_t password_len,
+ u8 *peer_challenge,
+ u8 *auth_challenge,
+ u8 *username, size_t username_len,
+ u8 *nt_response, u8 *response);
+void nt_challenge_response(u8 *challenge, u8 *password, size_t password_len,
+ u8 *response);
+
+void challenge_response(u8 *challenge, u8 *password_hash, u8 *response);
+void nt_password_hash(u8 *password, size_t password_len, u8 *password_hash);
+void hash_nt_password_hash(u8 *password_hash, u8 *password_hash_hash);
+void get_master_key(const u8 *password_hash_hash, const u8 *nt_response,
+ u8 *master_key);
+void get_asymetric_start_key(const u8 *master_key, u8 *session_key,
+ size_t session_key_len, int is_send,
+ int is_server);
+
+#endif /* MS_FUNCS_H */
OpenPOWER on IntegriCloud