1 .\" Copyright 2003 walter harms (walter.harms@informatik.uni-oldenburg.de)
2 .\" Distributed under GPL
3 .\" this is the 3rd type of interface for cryptographic routines
4 .\" 1. encrypt() expects a bit field
5 .\" 2. cbc_crypt() byte values
6 .\" 3. xencrypt() a hexstring
7 .\" to bad to be true :(
9 .\" Japanese Version Copyright (c) 2004 Yuichi SATO
10 .\" all rights reserved.
11 .\" Translated Wed Sep 15 01:02:11 JST 2004
12 .\" by Yuichi SATO <ysato444@yahoo.co.jp>
14 .TH XCRYPT 3 2003-04-04 "" "Linux Programmer's Manual"
17 .\"O xencrypt, xdecrypt, passwd2des \- RFS password encryption
18 xencrypt, xdecrypt, passwd2des \- RFS パスワード暗号化
21 .B "#include <rpc/des_crypt.h>"
23 .BI "void passwd2des(char " *passwd ", char *" key ");"
25 .BI "int xencrypt(char *" secret ", char *" passwd ");"
27 .BI "int xdecrypt(char *" secret ", char *" passwd ");"
31 .\"O .BR passwd2des ()
32 .\"O takes a character string
34 .\"O of arbitrary length and fills a character array
39 .\"O is suitable for use as DES key.
40 .\"O It has odd parity set in bit 0 of each byte.
51 この配列の各バイトのビット 0 は奇数パリティである。
52 .\"O Both other functions described here use this function to turn their
56 ここで説明されている残りの 2 つの関数は、
63 .\"O function takes the ASCII character string
66 .\"O .\" (over the alphabet 0123456789abcdefABCDEF),
69 .\" (アルファベット 0123456789abcdefABCDEF で表される)
73 .\"O which must have a length that is a multiple of 16,
74 この長さは 16 の倍数でなければならない。
75 .\"O encrypts it using the DES key derived from
78 .\"O .BR passwd2des (),
86 .\"O and outputs the result again in
89 .\"O .\" (over the alphabet 0123456789abcdef)
90 .\"O of the same length.
92 .\" (アルファベット 0123456789abcdef で表される)
99 .\"O function performs the converse operation.
102 .\"O .SH "RETURN VALUE"
108 .\"O return 1 on success and 0 on error.
113 は、成功した場合に 1 を返し、失敗した場合に 0 を返す。
116 .\"O These routines are present in libc 4.6.27 and later, and in
117 .\"O glibc 2.1 and later.
118 これらのルーチンは libc 4.6.27 以降と glibc 2.1 以降に存在する。
121 .\"O The prototypes are missing from the abovementioned include file.
122 上記のインクルードファイルにプロトタイプがない。