diff options
| author | Alejandro Colomar <alx.manpages@gmail.com> | 2022-09-05 23:03:38 +0200 |
|---|---|---|
| committer | Alejandro Colomar <alx.manpages@gmail.com> | 2022-09-05 23:03:47 +0200 |
| commit | 70ac1c4785fc1e158ab2349a962dba2526bf4fbc (patch) | |
| tree | bff270e2496dd284bccfc1271b43946f5d225224 /man3/xcrypt.3 | |
| parent | 5423a6f86b2b920a5f3e8cf8d759b513050f2d33 (diff) | |
| download | man-pages-70ac1c4785fc1e158ab2349a962dba2526bf4fbc.tar.gz | |
src.mk, All pages: Move man* to man/
The root of the repository is becoming a bit overpopulated and
unorganized, due to the recent addition of more mandirs, and more
informative and configuration files too. Let's create a specific
mandir <man/> that contains the mandirs <man[1-8]*>.
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Diffstat (limited to 'man3/xcrypt.3')
| -rw-r--r-- | man3/xcrypt.3 | 97 |
1 files changed, 0 insertions, 97 deletions
diff --git a/man3/xcrypt.3 b/man3/xcrypt.3 deleted file mode 100644 index 8e10bb90e7..0000000000 --- a/man3/xcrypt.3 +++ /dev/null @@ -1,97 +0,0 @@ -.\" Copyright 2003 walter harms (walter.harms@informatik.uni-oldenburg.de) -.\" -.\" SPDX-License-Identifier: GPL-1.0-or-later -.\" -.\" this is the 3rd type of interface for cryptographic routines -.\" 1. encrypt() expects a bit field -.\" 2. cbc_crypt() byte values -.\" 3. xencrypt() a hexstring -.\" to bad to be true :( -.\" -.TH XCRYPT 3 2021-03-22 "Linux man-pages (unreleased)" -.SH NAME -xencrypt, xdecrypt, passwd2des \- RFS password encryption -.SH LIBRARY -Standard C library -.RI ( libc ", " \-lc ) -.SH SYNOPSIS -.nf -.B "#include <rpc/des_crypt.h>" -.PP -.BI "void passwd2des(char " *passwd ", char *" key ");" -.PP -.BI "int xencrypt(char *" secret ", char *" passwd ");" -.BI "int xdecrypt(char *" secret ", char *" passwd ");" -.fi -.SH DESCRIPTION -.BR WARNING : -Do not use these functions in new code. -They do not achieve any type of acceptable cryptographic security guarantees. -.PP -The function -.BR passwd2des () -takes a character string -.I passwd -of arbitrary length and fills a character array -.I key -of length 8. -The array -.I key -is suitable for use as DES key. -It has odd parity set in bit 0 of each byte. -Both other functions described here use this function to turn their -argument -.I passwd -into a DES key. -.PP -The -.BR xencrypt () -function takes the ASCII character string -.I secret -given in hex, -.\" (over the alphabet 0123456789abcdefABCDEF), -which must have a length that is a multiple of 16, -encrypts it using the DES key derived from -.I passwd -by -.BR passwd2des (), -and outputs the result again in -.I secret -as a hex string -.\" (over the alphabet 0123456789abcdef) -of the same length. -.PP -The -.BR xdecrypt () -function performs the converse operation. -.SH RETURN VALUE -The functions -.BR xencrypt () -and -.BR xdecrypt () -return 1 on success and 0 on error. -.SH VERSIONS -These functions are available in glibc since version 2.1. -.SH ATTRIBUTES -For an explanation of the terms used in this section, see -.BR attributes (7). -.ad l -.nh -.TS -allbox; -lbx lb lb -l l l. -Interface Attribute Value -T{ -.BR passwd2des (), -.BR xencrypt (), -.BR xdecrypt () -T} Thread safety MT-Safe -.TE -.hy -.ad -.sp 1 -.SH BUGS -The prototypes are missing from the abovementioned include file. -.SH SEE ALSO -.BR cbc_crypt (3) |
