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(char *remotename, des_block *deskey);
13
14       int key_encryptsession(char *remotename, des_block *deskey);
15
16       int key_gendes(des_block *deskey);
17
18       int key_setsecret(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

ATTRIBUTES

50       For   an   explanation   of   the  terms  used  in  this  section,  see
51       attributes(7).
52
53       ┌───────────────────────┬───────────────┬─────────┐
54Interface              Attribute     Value   
55       ├───────────────────────┼───────────────┼─────────┤
56key_decryptsession(),  │ Thread safety │ MT-Safe │
57key_encryptsession(),  │               │         │
58key_gendes(),          │               │         │
59key_setsecret(),       │               │         │
60key_secretkey_is_set() │               │         │
61       └───────────────────────┴───────────────┴─────────┘
62

NOTES

64       Note that we talk about two types of encryption here.  One is  asymmet‐
65       ric  using a public and secret key.  The other is symmetric, the 64-bit
66       DES.
67
68       These routines were part of the Linux/Doors-project, abandoned by now.
69

SEE ALSO

71       crypt(3)
72

COLOPHON

74       This page is part of release 5.04 of the Linux  man-pages  project.   A
75       description  of  the project, information about reporting bugs, and the
76       latest    version    of    this    page,    can     be     found     at
77       https://www.kernel.org/doc/man-pages/.
78
79
80
81                                  2017-09-15                  KEY_SETSECRET(3)
Impressum