From b98bf150796ad7aff76a8be4629a20e839ee2a3a Mon Sep 17 00:00:00 2001 From: Mark Murray Date: Thu, 24 Feb 2000 13:20:15 +0000 Subject: [PATCH] Get this to the same level of functionality as old libdes. --- crypto/openssl/crypto/des/des.h | 4 ++++ crypto/openssl/crypto/des/des_crypt.man | 7 ++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/crypto/openssl/crypto/des/des.h b/crypto/openssl/crypto/des/des.h index 67f90aaf172f..9e1595572f52 100644 --- a/crypto/openssl/crypto/des/des.h +++ b/crypto/openssl/crypto/des/des.h @@ -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); diff --git a/crypto/openssl/crypto/des/des_crypt.man b/crypto/openssl/crypto/des/des_crypt.man index 0ecc416877fe..ed12ff9322e8 100644 --- a/crypto/openssl/crypto/des/des_crypt.man +++ b/crypto/openssl/crypto/des/des_crypt.man @@ -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 +#include .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.