Back to index

glibc  2.9
crypt-private.h
Go to the documentation of this file.
00001 /*
00002  * UFC-crypt: ultra fast crypt(3) implementation
00003  *
00004  * Copyright (C) 1991, 92, 93, 96, 97, 98 Free Software Foundation, Inc.
00005  *
00006  * The GNU C Library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or (at your option) any later version.
00010  *
00011  * The GNU C Library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with the GNU C Library; if not, write to the Free
00018  * Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00019  * 02111-1307 USA.
00020  *
00021  * @(#)crypt-private.h      1.4 12/20/96
00022  */
00023 
00024 /* Prototypes for local functions in libcrypt.a.  */
00025 
00026 #ifndef CRYPT_PRIVATE_H
00027 #define CRYPT_PRIVATE_H     1
00028 
00029 #include <features.h>
00030 
00031 /* crypt.c */
00032 extern void _ufc_doit_r (ufc_long itr, struct crypt_data * __restrict __data,
00033                       ufc_long *res);
00034 
00035 
00036 /* crypt_util.c */
00037 extern void __init_des_r (struct crypt_data * __restrict __data);
00038 extern void __init_des (void);
00039 
00040 extern void _ufc_setup_salt_r (__const char *s, 
00041                             struct crypt_data * __restrict __data);
00042 extern void _ufc_mk_keytab_r (__const char *key, 
00043                            struct crypt_data * __restrict __data);
00044 extern void _ufc_dofinalperm_r (ufc_long *res, 
00045                             struct crypt_data * __restrict __data);
00046 extern void _ufc_output_conversion_r (ufc_long v1, ufc_long v2,
00047                                   __const char *salt,
00048                                   struct crypt_data * __restrict __data);
00049 
00050 extern void __setkey_r (__const char *__key,
00051                           struct crypt_data * __restrict __data);
00052 extern void __encrypt_r (char * __restrict __block, int __edflag,
00053                            struct crypt_data * __restrict __data);
00054 
00055 /* crypt-entry.c */
00056 extern char *__crypt_r (__const char *__key, __const char *__salt,
00057                           struct crypt_data * __restrict __data);
00058 extern char *fcrypt (__const char *key, __const char *salt);
00059 
00060 #endif  /* crypt-private.h */