summaryrefslogtreecommitdiff
path: root/contrib/hostapd/ms_funcs.h
diff options
context:
space:
mode:
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 000000000000..a08ab06d72be
--- /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 */