/* IBM_PROLOG_BEGIN_TAG                                                   */
/* This is an automatically generated prolog.                             */
/*                                                                        */
/* bos72Q src/bos/usr/include/crypt.h 1.4.1.1                             */
/*                                                                        */
/* Licensed Materials - Property of IBM                                   */
/*                                                                        */
/* COPYRIGHT International Business Machines Corp. 1992,2019              */
/* All Rights Reserved                                                    */
/*                                                                        */
/* US Government Users Restricted Rights - Use, duplication or            */
/* disclosure restricted by GSA ADP Schedule Contract with IBM Corp.      */
/*                                                                        */
/* IBM_PROLOG_END_TAG                                                     */
/* @(#)83	1.4.1.1  src/bos/usr/include/crypt.h, libcs, bos72Q, q2019_13A4 2/6/19 00:44:02 */
/*
 *   COMPONENT_NAME: LIBCTHRD
 *
 *   FUNCTIONS: none
 *
 *   ORIGINS: 27,71
 *
 *
 *   (C) COPYRIGHT International Business Machines Corp. 1992,1993
 *   All Rights Reserved
 *   Licensed Materials - Property of IBM
 *   US Government Users Restricted Rights - Use, duplication or
 *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
 */
/*
 */
/*
 * (c) Copyright 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC. 
 * ALL RIGHTS RESERVED 
 */
/*  crypt.h,v $ $Revision: 1.4 $ (OSF) */

/*
 * definitions for the reentrant versions of crypt()
 */

#ifndef	_CRYPT_H_
#define	_CRYPT_H_

#ifdef __cplusplus
extern "C" {
#endif

#if defined(_REENTRANT) || defined(_THREAD_SAFE)
typedef	struct crypt_data {
/*
From OSF, Not needed in AIX
	char C[28], D[28];
*/
	char E[48];
	char KS[16][48];
	char block[66];
	char iobuf[256];
} CRYPTD;

#ifdef _NO_PROTO
extern	char	*crypt_r();
extern	int	setkey_r();
extern	int	encrypt_r();
#else
extern	char	*crypt_r(const char *, const char *, CRYPTD *);
extern	int	setkey_r(const char *, CRYPTD *);
extern	int	encrypt_r(char *, int, CRYPTD *);
#endif /* _NO_PROTO */
#endif

#ifdef _NO_PROTO
extern	char	*crypt();
extern	int	setkey();
extern	int	encrypt();
#else
extern	char	*crypt(const char *, const char *);
extern	void	setkey(const char *);
extern	void	encrypt(char *, int);
#endif /* _NO_PROTO */

#ifdef __cplusplus
}
#endif

#endif	/* _CRYPT_H_ */
