key_decryptsession, key_encryptsession, key_setsecret, key_gendes, key_secretkey_is_set − interfaces to rpc keyserver daemon


#include <rpc/rpc.h>

int key_decryptsession(char *remotename, des_block *deskey);

int key_encryptsession(char *remotename, des_block *deskey);

int key_gendes(des_block *deskey);

int key_setsecret(char *key);

int key_secretkey_is_set(void);


The functions here are used within the RPC’s secure authentication mechanism (AUTH_DES). There should be no need for user programs to use this functions.

The function key_decryptsession() uses the (remote) server netname and takes the DES key for decrypting. It uses the public key of the server and the secret key associated with the effective UID of the calling process.

The function key_encryptsession() is the inverse of key_decryptsession(). It encrypts the DES keys with the public key of the server and the secret key associated with the effective UID of the calling process.

The function key_gendes() is used to ask the keyserver for a secure conversation key.

The function key_setsecret() is used to set the key for the effective UID of the calling process.

The function key_secretkey_is_set() can be used to determine whether a key has been set for the effective UID of the calling process.


These functions return 1 on success and 0 on failure.


Note that we talk about two types of encryption here. One is asymmetric using a public and secret key. The other is symmetric, the 64-bit DES.

These routines were part of the Linux/Doors-project, abandoned by now.




This page is part of release 3.69 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at−pages/.

More Linux Commands

ptsname(3) - get the name of the slave pseudoterminal.......
The ptsname() function returns the name of the slave pseudoterminal device corresponding to the master referred to by fd. The ptsname_r() function is the reentr

expf(3) - base-e exponential function - Linux manual page...
The exp() function returns the value of e (the base of natural logarithms) raised to the power of x. RETURN VALUE On success, these functions return the exponen

gnutls_x509_privkey_export_dsa_raw(3) - API function........
This function will export the DSA private keys parameters found in the given structure. The new parameters will be allocated using gnutls_malloc() and will be s

gtk-update-icon-cache-2.0(1) - Icon theme caching utility...
gtk-update-icon-cache creates mmap()able cache files for icon themes. It expects to be given the path to a icon theme directory containing an index.theme, e.g.

XtGetApplicationNameAndClass(3) - retrieve application name
XtGetApplicationNameAndClass returns the application name and class passed to XtDisplayInitialize for the specified display. If the display was never initialize

ttyI.4 (Manual - Linux man page)...........................
ttyI[0-63] are emulated tty devices of the Linux ISDN subsystem. These devices can be used in the same way as the traditional serial devices ttySx. The official

pamrubber(1) - a rubber-sheeting utility that stretches an i
This program is part of Netpbm(1) The pamrubber utility converts a pam image into a new image with the contents moved around. The transformation is often called

sharesec(1) - Set or get share ACLs - Linux manual page.....
This tool is part of the samba(7) suite. The sharesec program manipulates share permissions on SMB file shares. OPTIONS The following options are available to t

gets(n) - Read a line from a channel - Linux manual page....
This command reads the next line from channelId, returns everything in the line up to (but not including) the end-of-line character(s), and discards the end-of-

glClearIndex(3gl) - specify the clear value for the color in
glClearIndex specifies the index used by glClear to clear the color index buffers. c is not clamped. Rather, c is converted to a fixed-point value with unspecif

XLocaleOfFontSet(3) - obtain fontset information (Man Page)
The XFontsOfFontSet function returns a list of one or more XFontStructs and font names for the fonts used by the Xmb and Xwc layers for the given font set. A li

XGrabKeyboard(3) - grab the keyboard - Linux manual page....
The XGrabKeyboard function actively grabs control of the keyboard and generates FocusIn and FocusOut events. Further key events are reported only to the grabbin

We can't live, work or learn in freedom unless the software we use is free.