blob: d691b43995695b721815a71715302f1064d5dec8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
/* Prototypes for obsolete functions in libcrypt.
Copyright (C) 1991-2017 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public License
as published by the Free Software Foundation; either version 2.1 of
the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see
<https://www.gnu.org/licenses/>. */
#ifndef _CRYPT_OBSOLETE_H
#define _CRYPT_OBSOLETE_H 1
/* These API functions are obsolete and provided for binary backward
compatibility only. New programs cannot be linked against them,
and we do not install this header, but we still need it to build the
library itself. */
/* Prepare to encrypt or decrypt data with DES, using KEY. */
extern void setkey (const char *key);
extern void setkey_r (const char *key,
struct crypt_data *restrict data);
/* Encrypt data in BLOCK in place if EDFLAG is zero; otherwise decrypt
block in place. */
extern void encrypt (char *block, int edflag);
extern void encrypt_r (char *block, int edflag,
struct crypt_data *restrict data);
#endif /* crypt-obsolete.h */
|