1 .\" Copyright 2002 walter harms (walter.harms@informatik.uni-oldenburg.de)
3 .\" SPDX-License-Identifier: GPL-1.0-or-later
5 .\" I had no way the check the functions out
7 .TH KEY_SETSECRET 3 2021-03-22 "Linux man-pages (unreleased)" "Linux Programmer's Manual"
9 key_decryptsession, key_encryptsession, key_setsecret, key_gendes,
10 key_secretkey_is_set \- interfaces to rpc keyserver daemon
13 .RI ( libc ", " \-lc )
16 .B #include <rpc/rpc.h>
18 .BI "int key_decryptsession(char *" remotename ", des_block *" deskey );
19 .BI "int key_encryptsession(char *" remotename ", des_block *" deskey );
21 .BI "int key_gendes(des_block *" deskey );
23 .BI "int key_setsecret(char *" key );
24 .B int key_secretkey_is_set(void);
27 The functions here are used within the RPC's secure authentication
29 There should be no need for user programs to
33 .BR key_decryptsession ()
34 uses the (remote) server netname and takes the DES key
36 It uses the public key of the server and the
37 secret key associated with the effective UID of the calling process.
40 .BR key_encryptsession ()
42 .BR key_decryptsession ().
43 It encrypts the DES keys with the public key of the server and
44 the secret key associated with the effective UID of the calling process.
48 is used to ask the keyserver for a secure conversation key.
52 is used to set the key for the effective UID of the calling process.
55 .BR key_secretkey_is_set ()
56 can be used to determine whether a key has been
57 set for the effective UID of the calling process.
59 These functions return 1 on success and 0 on failure.
61 For an explanation of the terms used in this section, see
69 Interface Attribute Value
71 .BR key_decryptsession (),
72 .BR key_encryptsession (),
75 .BR key_secretkey_is_set ()
76 T} Thread safety MT-Safe
82 Note that we talk about two types of encryption here.
83 One is asymmetric using a public and secret key.
84 The other is symmetric, the
87 These routines were part of the Linux/Doors-project, abandoned by now.