eap-mschapv2.h (1270B)
1 /* 2 * 3 * Wireless daemon for Linux 4 * 5 * Copyright (C) 2016 Markus Ongyerth. All rights reserved. 6 * 7 * This library is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU Lesser General Public 9 * License as published by the Free Software Foundation; either 10 * version 2.1 of the License, or (at your option) any later version. 11 * 12 * This library is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * Lesser General Public License for more details. 16 * 17 * You should have received a copy of the GNU Lesser General Public 18 * License along with this library; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 * 21 */ 22 23 #ifdef HAVE_CONFIG_H 24 #include <config.h> 25 #endif 26 27 #include <stdio.h> 28 #include <stdint.h> 29 #include <stdbool.h> 30 31 bool mschapv2_get_asymmetric_start_key(const uint8_t master_key[static 16], 32 uint8_t *session_key, size_t session_len, 33 bool server, bool send); 34 35 bool mschapv2_get_master_key(const uint8_t pw_hash_hash[static 16], 36 const uint8_t nt_response[static 24], 37 uint8_t master_key[static 16]);