1/* $NetBSD: pppcrypt.h,v 1.5 2021/01/09 16:39:28 christos Exp $ */ 2 3/* 4 * pppcrypt.c - PPP/DES linkage for MS-CHAP and EAP SRP-SHA1 5 * 6 * Extracted from chap_ms.c by James Carlson. 7 * 8 * Copyright (c) 1995 Eric Rosenquist. All rights reserved. 9 * 10 * Redistribution and use in source and binary forms, with or without 11 * modification, are permitted provided that the following conditions 12 * are met: 13 * 14 * 1. Redistributions of source code must retain the above copyright 15 * notice, this list of conditions and the following disclaimer. 16 * 17 * 2. Redistributions in binary form must reproduce the above copyright 18 * notice, this list of conditions and the following disclaimer in 19 * the documentation and/or other materials provided with the 20 * distribution. 21 * 22 * 3. The name(s) of the authors of this software must not be used to 23 * endorse or promote products derived from this software without 24 * prior written permission. 25 * 26 * THE AUTHORS OF THIS SOFTWARE DISCLAIM ALL WARRANTIES WITH REGARD TO 27 * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 28 * AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY 29 * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 30 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN 31 * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING 32 * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 33 */ 34 35#ifndef PPPCRYPT_H 36#define PPPCRYPT_H 37 38#ifdef HAVE_CRYPT_H 39#include <crypt.h> 40#endif 41 42#ifndef USE_CRYPT 43#include <des.h> 44#endif 45 46extern bool DesSetkey(u_char *); 47extern bool DesEncrypt(u_char *, u_char *); 48extern bool DesDecrypt(u_char *, u_char *); 49 50#endif /* PPPCRYPT_H */ 51