1KEY_SETSECRET(3)           Linux Programmer's Manual          KEY_SETSECRET(3)
2
3
4

NAME

6       key_decryptsession,   key_encryptsession,   key_setsecret,  key_gendes,
7       key_secretkey_is_set - interfaces to rpc keyserver daemon
8

SYNOPSIS

10       #include <rpc/rpc.h>
11
12       int key_decryptsession(const char *remotename, des_block *deskey);
13
14       int key_encryptsession(const char *remotename, des_block *deskey);
15
16       int key_gendes(des_block *deskey);
17
18       int key_setsecret(const char *key);
19
20       int key_secretkey_is_set(void);
21

DESCRIPTION

23       The functions here are used  within  the  RPC's  secure  authentication
24       mechanism (AUTH_DES).  There should be no need for user programs to use
25       this functions.
26
27       The function key_decryptsession() uses the (remote) server netname  and
28       takes the DES key for decrypting.  It uses the public key of the server
29       and the secret key associated with the effective  UID  of  the  calling
30       process.
31
32       The  function  key_encryptsession()  is  the inverse of key_decryptses‐
33       sion().  It encrypts the DES keys with the public key of the server and
34       the  secret  key  associated  with  the  effective  UID  of the calling
35       process.
36
37       The function key_gendes() is used to ask the  keyserver  for  a  secure
38       conversation key.
39
40       The  function  key_setsecret() is used to set the key for the effective
41       UID of the calling process.
42
43       The function key_secretkey_is_set() can be used to determine whether  a
44       key has been set for the effective UID of the calling process.
45

RETURN VALUE

47       These functions return 1 on success and 0 on failure.
48

NOTES

50       Note  that we talk about two types of encryption here.  One is asymmet‐
51       ric using a public and secret key.  The other is symmetric, the  64-bit
52       DES.
53
54       These routines were part of the Linux/Doors-project, abandoned by now.
55

SEE ALSO

57       crypt(3)
58

COLOPHON

60       This  page  is  part of release 3.53 of the Linux man-pages project.  A
61       description of the project, and information about reporting  bugs,  can
62       be found at http://www.kernel.org/doc/man-pages/.
63
64
65
66                                  2002-07-18                  KEY_SETSECRET(3)
Impressum