1KEY_SETSECRET(3)           Library Functions 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
22

DESCRIPTION

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

NOTE

49       Note that we talk about two types of encryption here. One is asymmetric
50       using a public and secret key. The other is symmetric, the 64-bit DES.
51       The routines were part of the linux/doors-project, abandoned by now.
52
53

RETURN VALUES

55       The functions return 1 on success and 0 on failure.
56
57

SEE ALSO

59       crypt(3)
60
61
62
63secure rpc                        2002-07-18                  KEY_SETSECRET(3)
Impressum