[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Communications Technical Reference, Volume 1

key_gendes Subroutine

Purpose

Asks the keyserv daemon for a secure conversation key.

Library

C Library (libc.a)

Syntax

#include <rpc/rpc.h>
key_gendes (deskey)
des_block *deskey;

Description

The key_gendes subroutine interfaces to the keyserv daemon, which is associated with the secure authentication system known as Data Encryption Standard (DES). This subroutine asks the keyserv daemon for a secure conversation key. Choosing a key at random is not recommended because the common ways of choosing random numbers, such as the current time, are easy to guess. User programs rarely need to call this subroutine. System commands such as keylogin and the Remote Procedure Call (RPC) library are the main clients.

Parameters

deskey Points to the des_block structure.

Return Values

Upon successful completion, this subroutine returns a value of 0. If unsuccessful, it returns a value of -1.

Implementation Specifics

This subroutine is part of Base Operating System (BOS) Runtime.

Related Information

List of RPC Programming References.

The keylogin command.

The keyserv daemon.

Remote Procedure Call (RPC) Overview for Programming in AIX Version 4.3 Communications Programming Concepts.


[ Previous | Next | Contents | Glossary | Home | Search ]