des_fcrypt() -- SSLeay 0.9.0b -- January 1999

NAME

des_fcrypt, crypt -- implementations of crypt(3)

SYNOPSIS

#include "des.h"

char *des_fcrypt(buf,salt,ret)
const char *buf, *salt;
char *ret;

char *crypt(buf,salt)
const char *buf, *salt;

DESCRIPTION

des_fcrypt() is my fast version of the unix crypt(3) function. This version takes only a small amount of space relative to other fast crypt() implementations. This is different to the normal crypt in that the third parameter is the buffer that the return value is written into. It needs to be at least 14 bytes long. This function is thread safe, unlike the normal crypt.

crypt() calls des_fcrypt() with a static array passed as the third parameter. This emulates the normal non-thread safe semantics of crypt(3).