|
Packit |
6c4009 |
/*
|
|
Packit |
6c4009 |
* UFC-crypt: ultra fast crypt(3) implementation
|
|
Packit |
6c4009 |
*
|
|
Packit |
6c4009 |
* Copyright (C) 1991-2018 Free Software Foundation, Inc.
|
|
Packit |
6c4009 |
*
|
|
Packit |
6c4009 |
* The GNU C Library is free software; you can redistribute it and/or
|
|
Packit |
6c4009 |
* modify it under the terms of the GNU Lesser General Public
|
|
Packit |
6c4009 |
* License as published by the Free Software Foundation; either
|
|
Packit |
6c4009 |
* version 2.1 of the License, or (at your option) any later version.
|
|
Packit |
6c4009 |
*
|
|
Packit |
6c4009 |
* The GNU C Library is distributed in the hope that it will be useful,
|
|
Packit |
6c4009 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
6c4009 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
6c4009 |
* Lesser General Public License for more details.
|
|
Packit |
6c4009 |
*
|
|
Packit |
6c4009 |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit |
6c4009 |
* License along with the GNU C Library; if not, see
|
|
Packit |
6c4009 |
* <http://www.gnu.org/licenses/>.
|
|
Packit |
6c4009 |
*
|
|
Packit |
6c4009 |
* @(#)crypt-private.h 1.4 12/20/96
|
|
Packit |
6c4009 |
*/
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Prototypes for local functions in libcrypt.a. */
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#ifndef CRYPT_PRIVATE_H
|
|
Packit |
6c4009 |
#define CRYPT_PRIVATE_H 1
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#include <features.h>
|
|
Packit |
6c4009 |
#include <stdbool.h>
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#ifndef DOS
|
|
Packit |
6c4009 |
#include "ufc-crypt.h"
|
|
Packit |
6c4009 |
#else
|
|
Packit |
6c4009 |
/*
|
|
Packit |
6c4009 |
* Thanks to greg%wind@plains.NoDak.edu (Greg W. Wettstein)
|
|
Packit |
6c4009 |
* for DOS patches
|
|
Packit |
6c4009 |
*/
|
|
Packit |
6c4009 |
#include "pl.h"
|
|
Packit |
6c4009 |
#include "ufc.h"
|
|
Packit |
6c4009 |
#endif
|
|
Packit |
6c4009 |
#include "crypt.h"
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* crypt.c */
|
|
Packit |
6c4009 |
extern void _ufc_doit_r (ufc_long itr, struct crypt_data * __restrict __data,
|
|
Packit |
6c4009 |
ufc_long *res);
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* crypt_util.c */
|
|
Packit |
6c4009 |
extern void __init_des_r (struct crypt_data * __restrict __data);
|
|
Packit |
6c4009 |
extern void __init_des (void);
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
extern bool _ufc_setup_salt_r (const char *s,
|
|
Packit |
6c4009 |
struct crypt_data * __restrict __data);
|
|
Packit |
6c4009 |
extern void _ufc_mk_keytab_r (const char *key,
|
|
Packit |
6c4009 |
struct crypt_data * __restrict __data);
|
|
Packit |
6c4009 |
extern void _ufc_dofinalperm_r (ufc_long *res,
|
|
Packit |
6c4009 |
struct crypt_data * __restrict __data);
|
|
Packit |
6c4009 |
extern void _ufc_output_conversion_r (ufc_long v1, ufc_long v2,
|
|
Packit |
6c4009 |
const char *salt,
|
|
Packit |
6c4009 |
struct crypt_data * __restrict __data);
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
extern void __setkey_r (const char *__key,
|
|
Packit |
6c4009 |
struct crypt_data * __restrict __data);
|
|
Packit |
6c4009 |
extern void __encrypt_r (char * __restrict __block, int __edflag,
|
|
Packit |
6c4009 |
struct crypt_data * __restrict __data);
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* crypt-entry.c */
|
|
Packit |
6c4009 |
extern char *__crypt_r (const char *__key, const char *__salt,
|
|
Packit |
6c4009 |
struct crypt_data * __restrict __data);
|
|
Packit |
6c4009 |
extern char *fcrypt (const char *key, const char *salt);
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
extern void __b64_from_24bit (char **cp, int *buflen,
|
|
Packit |
6c4009 |
unsigned int b2, unsigned int b1, unsigned int b0,
|
|
Packit |
6c4009 |
int n);
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#endif /* crypt-private.h */
|