[Previous] [Contents] [Index] [Next]

setkey()

Set the key used in encryption

Synopsis:

#include <stdlib.h>

void setkey( const char *__key );

Library:

libc

Description:

The setkey() function allows limited access to the NBS Data Encryption Standard (DES) algorithm itself. The __key argument is a 64-character array of binary values (numeric 0 or 1). A 56-bit key is derived from this array by dividing the array into groups of 8 and ignoring the last bit in each group.

Classification:

Standard Unix

Safety:
Cancellation point No
Interrupt handler No
Signal handler No
Thread No

See also:

crypt(), encrypt()


[Previous] [Contents] [Index] [Next]