OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / draft / man3 / key_setsecret.3
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
4 .\"  be careful
5 .\"
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>
8 .\"
9 .\"WORD:        authentication  Ç§¾Ú
10 .\"WORD:        asymmetric      ÈóÂоθ°(°Å¹æ)
11 .\"WORD:        symmetric       Âоθ°(°Å¹æ)
12 .\"
13 .TH KEY_SETSECRET 3 2002-07-18 "" "Linux Programmer's Manual"
14 .\"O .SH NAME
15 .SH Ì¾Á°
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 ¸°¥µ¡¼¥Ð¡¦¥Ç¡¼¥â¥ó¤È¤Î¥¤¥ó¥¿¥Õ¥§¡¼¥¹
20 .\"O .SH SYNOPSIS
21 .SH ½ñ¼°
22 .B "#include <rpc/rpc.h>"
23 .sp
24 .BI "int key_decryptsession(const char *" remotename ,
25 .BI "des_block *" deskey );
26 .sp
27 .BI "int key_encryptsession(const char *" remotename ,
28 .BI "des_block *" deskey );
29 .sp
30 .BI "int key_gendes(des_block *" deskey );
31 .sp
32 .BI "int key_setsecret(const char *" key );
33 .sp
34 .B "int key_secretkey_is_set(void);"
35 .\"O .SH DESCRIPTION
36 .SH ÀâÌÀ
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 ¥æ¡¼¥¶¡¦¥×¥í¥°¥é¥à¤Ç¤³¤ì¤é¤Î´Ø¿ô¤ò»ÈÍѤ¹¤ëɬÍפϤʤ¤¡£
43
44 .\"O The function
45 .\"O .BR key_decryptsession ()
46 .\"O uses the (remote) server netname and takes the DES key
47 .\"O for decrypting.
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.
50 ´Ø¿ô
51 .BR key_decryptsession ()
52 ¤Ï(¥ê¥â¡¼¥È)¥µ¡¼¥Ð¤Î¥Í¥Ã¥È̾¤òÍѤ¤¤Æ¡¢Éü¹æÍѤΠDES ¸°¤ò¼èÆÀ¤¹¤ë¡£
53 ¥µ¡¼¥Ð¤Î¸ø³«¸°¤È¡¢¸Æ¤Ó½Ð¤·¸µ¥×¥í¥»¥¹¤Î¼Â¸ú UID ¤ËÂбþ¤¹¤ëÈëÌ©¸°¤¬»ÈÍѤµ¤ì¤ë¡£
54
55 .\"O The function
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.
61 ´Ø¿ô
62 .BR key_encryptsession ()
63 ¤Ï
64 .BR key_decryptsession ()
65 ¤ÎµÕ¤Î½èÍý¤ò¹Ô¤¦¡£
66 ¥µ¡¼¥Ð¤Î¸ø³«¸°¤È¡¢¸Æ¤Ó½Ð¤·¸µ¥×¥í¥»¥¹¤Î¼Â¸ú UID ¤ËÂбþ¤¹¤ëÈëÌ©¸°¤Ç
67 DES ¸°¤ò°Å¹æ¤¹¤ë¡£
68
69 .\"O The function
70 .\"O .BR key_gendes ()
71 .\"O is used to ask the keyserver for a secure conversation key.
72 ´Ø¿ô
73 .BR key_gendes ()
74 ¤Ï¡¢¸°¥µ¡¼¥Ð¤Ë°ÂÁ´¤ÊÄÌ¿®¤ò¹Ô¤¦¤¿¤á¤Î¸°¤òÍ׵᤹¤ë¤¿¤á¤Ë»ÈÍѤµ¤ì¤ë¡£
75
76 .\"O The function
77 .\"O .BR key_setsecret ()
78 .\"O is used to set the key for the effective UID of the calling process.
79 ´Ø¿ô
80 .BR key_setsecret ()
81 ¤Ï¡¢¸Æ¤Ó½Ð¤·¸µ¥×¥í¥»¥¹¤Î¼Â¸ú UID ¤ËÂФ·¤Æ¸°¤òÀßÄꤹ¤ë¤¿¤á¤Ë»ÈÍѤµ¤ì¤ë¡£
82
83 .\"O The function
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.
87 ´Ø¿ô
88 .BR key_secretkey_is_set ()
89 ¤Ï¡¢¸Æ¤Ó½Ð¤·¸µ¥×¥í¥»¥¹¤Î¼Â¸ú UID ¤ËÂФ·¤Æ¸°¤¬ÀßÄꤵ¤ì¤Æ¤¤¤ë¤«¤É¤¦¤«¤ò
90 Ä´¤Ù¤ë¤¿¤á¤Ë»ÈÍѤµ¤ì¤ë¡£
91 .\"O .SH "RETURN VALUE"
92 .SH ÊÖ¤êÃÍ
93 .\"O These functions return 1 on success and 0 on failure.
94 ¤³¤ì¤é¤Î´Ø¿ô¤ÏÀ®¸ù¤·¤¿¾ì¹ç 1 ¤ò¡¢¼ºÇÔ¤·¤¿¾ì¹ç 0 ¤òÊÖ¤¹¡£
95 .\"O .SH NOTES
96 .SH Ãí°Õ
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
100 .\"O 64-bit DES.
101 ¤³¤³¤Ç¤Ï 2 ¼ïÎà¤Î°Å¹æÊý¼°¤¬Åо줹¤ë¤³¤È¤ËÃí°Õ¤¹¤ë¤³¤È¡£
102 °ì¤Ä¤Ï¸ø³«¸°¤ÈÈëÌ©¸°¤ò»ÈÍѤ¹¤ëÈóÂоθ°°Å¹æ¤Ç¤¢¤ê¡¢
103 ¤â¤¦°ì¤Ä¤ÏÂоθ°°Å¹æ¤Ç¤¢¤ë 64 ¥Ó¥Ã¥È DES ¤Ç¤¢¤ë¡£
104 .PP
105 .\"O These routines were part of the Linux/Doors-project, abandoned by now.
106 ¤³¤ì¤é¤Î´Ø¿ô¤Ï Linux/Doors-project ¤ÎÀ®²Ì¤Î°ìÉô¤À¤Ã¤¿¤¬¡¢
107 ¸½ºß¤Þ¤Ç¤Ë³ºÅö²Õ½ê¤Ï¤¹¤Ù¤ÆÇË´þ¤µ¤ì¤¿¡£
108 .\"O .SH "SEE ALSO"
109 .SH ´ØÏ¢¹àÌÜ
110 .BR crypt (3)