Get this to the same level of functionality as old libdes.

This commit is contained in:
markm 2000-02-24 13:20:15 +00:00
parent 99a3e2ff44
commit b496c18f68
2 changed files with 8 additions and 3 deletions

View File

@ -54,6 +54,7 @@
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
* [including the GNU Public Licence.]
* $FreeBSD$
*/
#ifndef HEADER_DES_H
@ -187,6 +188,9 @@ DES_LONG des_quad_cksum(const unsigned char *input,des_cblock output[],
long length,int out_count,des_cblock *seed);
void des_random_seed(des_cblock *key);
void des_random_key(des_cblock *ret);
int des_new_random_key(des_cblock *key);
void des_init_random_number_generator(des_cblock *seed);
void des_rand_data(unsigned char *data, int size);
int des_read_password(des_cblock *key,const char *prompt,int verify);
int des_read_2passwords(des_cblock *key1,des_cblock *key2,
const char *prompt,int verify);

View File

@ -1,3 +1,4 @@
.\" $FreeBSD$
.TH DES_CRYPT 3
.SH NAME
des_read_password, des_read_2password,
@ -13,7 +14,7 @@ des_is_weak_key, crypt \- (non USA) DES encryption
.nf
.nj
.ft B
#include <des.h>
#include <openssl/des.h>
.PP
.B int des_read_password(key,prompt,verify)
des_cblock *key;
@ -461,9 +462,9 @@ is a replacement for the normal system crypt.
It is much faster than the system crypt.
.PP
.SH FILES
/usr/include/des.h
/usr/include/openssl/des.h
.br
/usr/lib/libdes.a
/usr/lib/libcrypto.a
.PP
The encryption routines have been tested on 16bit, 32bit and 64bit
machines of various endian and even works under VMS.