crypt.h revision 115720
1115720Smarkm/* LINTLIBRARY */ 251462Smarkm/* 351462Smarkm * Copyright (c) 1999 451462Smarkm * Mark Murray. All rights reserved. 551462Smarkm * 651462Smarkm * Redistribution and use in source and binary forms, with or without 751462Smarkm * modification, are permitted provided that the following conditions 851462Smarkm * are met: 951462Smarkm * 1. Redistributions of source code must retain the above copyright 1051462Smarkm * notice, this list of conditions and the following disclaimer. 1151462Smarkm * 2. Redistributions in binary form must reproduce the above copyright 1251462Smarkm * notice, this list of conditions and the following disclaimer in the 1351462Smarkm * documentation and/or other materials provided with the distribution. 1451462Smarkm * 1551462Smarkm * THIS SOFTWARE IS PROVIDED BY MARK MURRAY AND CONTRIBUTORS ``AS IS'' AND 1651462Smarkm * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1751462Smarkm * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1851462Smarkm * ARE DISCLAIMED. IN NO EVENT SHALL MARK MURRAY OR CONTRIBUTORS BE LIABLE 1951462Smarkm * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2051462Smarkm * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2151462Smarkm * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2251462Smarkm * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2351462Smarkm * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2451462Smarkm * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2551462Smarkm * SUCH DAMAGE. 2651462Smarkm * 2751462Smarkm * $FreeBSD: head/lib/libcrypt/crypt.h 115720 2003-06-02 19:29:27Z markm $ 2851462Smarkm * 2951462Smarkm */ 3051462Smarkm 3151462Smarkm/* magic sizes */ 32115720Smarkm#define MD4_SIZE 16 3351462Smarkm#define MD5_SIZE 16 3451462Smarkm 3551462Smarkmchar *crypt_des(const char *pw, const char *salt); 3651462Smarkmchar *crypt_md5(const char *pw, const char *salt); 37115720Smarkmchar *crypt_nthash(const char *pw, const char *salt); 3874106Smarkmchar *crypt_blowfish(const char *pw, const char *salt); 3951462Smarkm 4091754Smarkmextern void _crypt_to64(char *s, u_long v, int n); 41