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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
.\" Copyright 2000 Nicolas Lichtmaier <nick@debian.org>
.\" Created 2000-07-22 00:52-0300
.\"
.\" This is free documentation; you can redistribute it and/or
.\" modify it under the terms of the GNU General Public License as
.\" published by the Free Software Foundation; either version 2 of
.\" the License, or (at your option) any later version.
.\"
.\" The GNU General Public License's references to "object code"
.\" and "executables" are to be interpreted as the output of any
.\" document formatting or typesetting system, including
.\" intermediate and printed output.
.\"
.\" This manual 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 General Public License for more details.
.\"
.\" Japanese Version Copyright (c) 2000 Yuichi SATO
.\" all rights reserved.
.\" Translated Sun Sep 24 06:18:14 JST 2000
.\" by Yuichi SATO <sato@complex.eng.hokudai.ac.jp>
.\"
.\"WORD: encrypt Ź沽
.\"WORD: decrypt 沽
.\"
.TH ENCRYPT 3 2000-07-22 GNU "Linux Programmer's Manual"
.SH ̾
encrypt \- 64 ӥåȤΥåŹ沽
.SH
.B #define _XOPEN_SOURCE
.sp
.B #include <unistd.h>
.sp
.BI "void encrypt(char " block "[64], int " edflag );
.br
.BI "void setkey(const char *" key );
.SH
δؿϡ64 ӥåȤΥåΰŹ沽沽Ԥ
setkey() ؿ encrypt() ˤäƻȤ key ꤹ롣
ǻȤ
.I key
ϡХȤǤꡢƥХȤϿ 1 ޤ 0 Ǥ롣
n=8*q-1 ˤ key[n] ϡ56 ӥåȤȤ key 뤿̵뤵롣
.PP
encrypt() ؿϡ
.I edflag
0 ξϰŹ沽1 Ϥ줿沽Ȥ褦ˡ
Ϥ줿Хåեѹ롣
.PP
δؿϺԲǽǤ롣
.SH ֤
δؿϡʤˤ֤ͤʤ
.SH
SVID, SUSv2
.SH Ϣ
.BR crypt (3)
|