1 .\" Copyright 2002 walter harms (walter.harms@informatik.uni-oldenburg.de)
2 .\" Distributed under GPL
3 .\" I had no way the check the functions out
6 .\" Japanese Version Copyright (c) 2003 Akihiro MOTOKI all rights reserved.
7 .\" Translated Mon Jan 27 2003 by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
9 .\"WORD: authentication 認証
10 .\"WORD: asymmetric 非対称鍵(暗号)
11 .\"WORD: symmetric 対称鍵(暗号)
13 .TH KEY_SETSECRET 3 2002-07-18 "" "Linux Programmer's Manual"
16 .\"O key_decryptsession, key_encryptsession, key_setsecret, key_gendes,
17 .\"O key_secretkey_is_set \- interfaces to rpc keyserver daemon
18 key_decryptsession, key_encryptsession, key_setsecret, key_gendes,
19 key_secretkey_is_set \- rpc 鍵サーバ・デーモンとのインタフェース
22 .B "#include <rpc/rpc.h>"
24 .BI "int key_decryptsession(const char *" remotename ,
25 .BI "des_block *" deskey );
27 .BI "int key_encryptsession(const char *" remotename ,
28 .BI "des_block *" deskey );
30 .BI "int key_gendes(des_block *" deskey );
32 .BI "int key_setsecret(const char *" key );
34 .B "int key_secretkey_is_set(void);"
37 .\"O The functions here are used within the RPC's secure authentication
38 .\"O mechanism (AUTH_DES).
39 .\"O There should be no need for user programs to
40 .\"O use this functions.
41 これらの関数は RPC の安全な認証機構 (AUTH_DES) で使用される。
42 ユーザ・プログラムでこれらの関数を使用する必要はない。
45 .\"O .BR key_decryptsession ()
46 .\"O uses the (remote) server netname and takes the DES key
48 .\"O It uses the public key of the server and the
49 .\"O secret key associated with the effective UID of the calling process.
51 .BR key_decryptsession ()
52 は(リモート)サーバのネット名を用いて、復号用の DES 鍵を取得する。
53 サーバの公開鍵と、呼び出し元プロセスの実効 UID に対応する秘密鍵が使用される。
56 .\"O .BR key_encryptsession ()
57 .\"O is the inverse of
58 .\"O .BR key_decryptsession ().
59 .\"O It encrypts the DES keys with the public key of the server and
60 .\"O the secret key associated with the effective UID of the calling process.
62 .BR key_encryptsession ()
64 .BR key_decryptsession ()
66 サーバの公開鍵と、呼び出し元プロセスの実効 UID に対応する秘密鍵で
70 .\"O .BR key_gendes ()
71 .\"O is used to ask the keyserver for a secure conversation key.
74 は、鍵サーバに安全な通信を行うための鍵を要求するために使用される。
77 .\"O .BR key_setsecret ()
78 .\"O is used to set the key for the effective UID of the calling process.
81 は、呼び出し元プロセスの実効 UID に対して鍵を設定するために使用される。
84 .\"O .BR key_secretkey_is_set ()
85 .\"O can be used to determine whether a key has been
86 .\"O set for the effective UID of the calling process.
88 .BR key_secretkey_is_set ()
89 は、呼び出し元プロセスの実効 UID に対して鍵が設定されているかどうかを
91 .\"O .SH "RETURN VALUE"
93 .\"O These functions return 1 on success and 0 on failure.
94 これらの関数は成功した場合 1 を、失敗した場合 0 を返す。
97 .\"O Note that we talk about two types of encryption here.
98 .\"O One is asymmetric using a public and secret key.
99 .\"O The other is symmetric, the
101 ここでは 2 種類の暗号方式が登場することに注意すること。
102 一つは公開鍵と秘密鍵を使用する非対称鍵暗号であり、
103 もう一つは対称鍵暗号である 64 ビット DES である。
105 .\"O These routines were part of the Linux/Doors-project, abandoned by now.
106 これらの関数は Linux/Doors-project の成果の一部だったが、