0N/A/*
553N/A * CDDL HEADER START
0N/A *
0N/A * The contents of this file are subject to the terms of the
0N/A * Common Development and Distribution License, Version 1.0 only
0N/A * (the "License"). You may not use this file except in compliance
553N/A * with the License.
0N/A *
553N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A * or http://www.opensolaris.org/os/licensing.
0N/A * See the License for the specific language governing permissions
0N/A * and limitations under the License.
0N/A *
0N/A * When distributing Covered Code, include this CDDL HEADER in each
0N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A * If applicable, add the following below this CDDL HEADER, with the
0N/A * fields enclosed by brackets "[]" replaced with your own identifying
0N/A * information: Portions Copyright [yyyy] [name of copyright owner]
0N/A *
0N/A * CDDL HEADER END
553N/A */
553N/A/* LINTLIBRARY */
553N/A/* PROTOLIB1 */
0N/A
0N/A/*
0N/A * Copyright (c) 1997, 2000 by Sun Microsystems, Inc.
0N/A * All rights reserved.
0N/A */
0N/A#pragma ident "%Z%%M% %I% %E% SMI"
0N/A
0N/A#include <stdio.h>
0N/A#include <sys/types.h>
0N/A#include <des/softdes.h>
0N/A#include <des/desdata.h>
0N/A#include <sys/des.h>
0N/A
0N/A/*
0N/A * usr/src/lib/libcrypt
0N/A */
0N/A
0N/A/* crypt.c */
0N/Avoid setkey(const char *key);
0N/Avoid encrypt(char *block, int edflag);
0N/Achar *crypt(const char *pw, const char *salt);
0N/A
0N/A/* cryptio.c */
0N/Aint _run_setkey(int p[2], const char *keyparam);
0N/Aint run_setkey(int p[2], const char *keyparam);
0N/Aint _run_crypt(long offset, char *buffer, unsigned int count, int p[2]);
0N/Aint run_crypt(long offset, char *buffer, unsigned int count, int p[2]);
330N/Aint _makekey(int b[2]);
330N/Aint makekey(int b[2]);
330N/Aint crypt_close_nolock(int p[2]);
330N/Aint _crypt_close(int p[2]);
330N/Aint crypt_close(int p[2]);
0N/A
0N/A/* des.c */
0N/Aint cbc_crypt(char *key, char *buf, size_t len, unsigned int mode, char *ivec);
0N/Aint ecb_crypt(char *key, char *buf, size_t len, unsigned int mode);
330N/A
330N/A/* des_crypt.c */
0N/Avoid _des_setkey(const char *key);
0N/Avoid des_setkey(const char *key);
0N/Avoid _des_encrypt(char *block, int edflag);
0N/Avoid des_encrypt(char *block, int edflag);
0N/Achar *des_crypt(const char *pw, const char *salt);
0N/A
0N/A/* des_decrypt.c */
0N/Avoid _des_decrypt1(char *block, char *L, char *IP, char *R, char *preS,
0N/A char *E, char KS[][48], char S[][64], char *f,
0N/A char *tempL, char *P, char *FP);
0N/A
0N/A/* des_encrypt.c */
0N/Avoid des_encrypt1(char *block, char *L, char *IP, char *R, char *preS,
0N/A char *E, char KS[][48], char S[][64], char *f,
0N/A char *tempL, char *P, char *FP);
0N/Avoid _des_encrypt1(char *block, char *L, char *IP, char *R, char *preS,
0N/A char *E, char KS[][48], char S[][64], char *f,
0N/A char *tempL, char *P, char *FP);
0N/A
0N/A/* des_soft.c */
0N/Avoid des_setparity(char *p);
0N/Aint __des_crypt(char *buf, unsigned len, struct desparams *desp);
0N/A