chap_ms.h revision 67910
1/* 2 * chap.h - Cryptographic Handshake Authentication Protocol definitions. 3 * 4 * Copyright (c) 1995 Eric Rosenquist, Strata Software Limited. 5 * http://www.strataware.com/ 6 * 7 * All rights reserved. 8 * 9 * Redistribution and use in source and binary forms are permitted 10 * provided that the above copyright notice and this paragraph are 11 * duplicated in all such forms and that any documentation, 12 * advertising materials, and other materials related to such 13 * distribution and use acknowledge that the software was developed 14 * by Eric Rosenquist. The name of the author may not be used to 15 * endorse or promote products derived from this software without 16 * specific prior written permission. 17 * 18 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 19 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 20 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 21 * 22 * $FreeBSD: head/usr.sbin/ppp/chap_ms.h 67910 2000-10-30 00:15:04Z brian $ 23 */ 24 25/* Max # of (Unicode) chars in an NT password */ 26#define MAX_NT_PASSWORD 256 27 28/* Don't rely on sizeof(MS_ChapResponse) in case of struct padding */ 29#define MS_CHAP_RESPONSE_LEN 49 30#define CHAP81_RESPONSE_LEN 49 31#define CHAP81_NTRESPONSE_LEN 24 32#define CHAP81_NTRESPONSE_OFF 24 33#define CHAP81_HASH_LEN 16 34#define CHAP81_AUTHRESPONSE_LEN 42 35#define CHAP81_CHALLENGE_LEN 16 36 37extern void mschap_NT(char *, char *); 38extern void mschap_LANMan(char *, char *, char *); 39extern void GenerateNTResponse(char *, char *, char *, int, char *, int , char *); 40extern void HashNtPasswordHash(char *, char *); 41extern void NtPasswordHash(char *, int, char *); 42extern void ChallengeHash(char *, char *, char *UserName, int, char *); 43extern void GenerateAuthenticatorResponse(char *, int, char *, char *, char *, char *, int, char *); 44extern void GetAsymetricStartKey(char *, char *, int, int, int); 45extern void GetMasterKey(char *, char *, char *); 46extern void GetNewKeyFromSHA(char *, char *, long, char *); 47