key_setsecretのヘルプ・マニュアル
日本語 英語
key_setsecret --help
man key_setsecret
KEY_SETSECRET(3) Linux Programmer’s Manual KEY_SETSECRET(3)
名前
key_decryptsession, key_encryptsession, key_setsecret, key_gendes,
key_secretkey_is_set - rpc 鍵サーバ・デーモンとのインタフェース
書式
#include
int key_decryptsession(const char *remotename, des_block *deskey);
int key_encryptsession(const char *remotename, des_block *deskey);
int key_gendes(des_block *deskey);
int key_setsecret(const char *key);
int key_secretkey_is_set(void);
説明
これらの関数は RPC の安全な認証機構 (AUTH_DES) で使用される。ユーザ・プ
ログラムでこれらの関数を使用する必要はない。
関 数 key_decryptsession() は(リモート)サーバのネット名を用いて、復号用
の DES 鍵を取得する。サーバの公開鍵と、呼び出し元プロセスの実効 UID に
対応する秘密鍵が使用される。
関 数 key_encryptsession() は key_decryptsession() の逆の処理を行う。サ
ーバの公開鍵と、呼び出し元プロセスの実効 UID に対応する秘密鍵で DES 鍵
を暗号する。
関 数 key_gendes() は、鍵サーバに安全な通信を行うための鍵を要求するため
に使用される。
関数 key_setsecret() は、呼び出し元プロセスの実効 UID に対して鍵を設 定
するために使用される。
関数 key_secretkey_is_set() は、呼び出し元プロセスの実効 UID に対して鍵
が設定されているかどうかを調べるために使用される。
返り値
これらの関数は成功した場合 1 を、失敗した場合 0 を返す。
注意
ここでは 2 種類の暗号方式が登場することに注意すること。一つは公開鍵と秘
密 鍵を使用する非対称鍵暗号であり、もう一つは対称鍵暗号である 64 ビット
DES である。
これらの関数は Linux/Doors-project の成果の一部だったが、現在までに該当
箇所はすべて破棄された。
関連項目
crypt(3)
2002-07-18 KEY_SETSECRET(3)
KEY_SETSECRET(3) Linux Programmer’s Manual KEY_SETSECRET(3)
NAME
key_decryptsession, key_encryptsession, key_setsecret, key_gendes,
key_secretkey_is_set - interfaces to rpc keyserver daemon
SYNOPSIS
#include
int key_decryptsession(const char *remotename, des_block *deskey);
int key_encryptsession(const char *remotename, des_block *deskey);
int key_gendes(des_block *deskey);
int key_setsecret(const char *key);
int key_secretkey_is_set(void);
DESCRIPTION
The functions here are used within the RPC’s secure authentication
mechanism (AUTH_DES). There should be no need for user programs to use
this functions.
The function key_decryptsession() uses the (remote) server netname and
takes the DES key for decrypting. It uses the public key of the server
and the secret key associated with the effective UID of the calling
process.
The function key_encryptsession() is the inverse of key_decryptses-
sion(). It encrypts the DES keys with the public key of the server and
the secret key associated with the effective UID of the calling pro-
cess.
The function key_gendes() is used to ask the keyserver for a secure
conversation key.
The function key_setsecret() is used to set the key for the effective
UID of the calling process.
The function key_secretkey_is_set() can be used to determine whether a
key has been set for the effective UID of the calling process.
RETURN VALUE
These functions return 1 on success and 0 on failure.
NOTES
Note that we talk about two types of encryption here. One is asymmet-
ric using a public and secret key. The other is symmetric, the 64-bit
DES.
These routines were part of the Linux/Doors-project, abandoned by now.
SEE ALSO
crypt(3)
COLOPHON
This page is part of release 3.22 of the Linux man-pages project. A
description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
2002-07-18 KEY_SETSECRET(3)