iImport a FreeBSD Makefile, BSD-ise the header and correct a typo. As the

interface has changed a bit (there are more rentry points), the
shared library has been bumped to libdes.so.2.1.
This commit is contained in:
markm 1996-02-10 15:54:48 +00:00
parent 654d720840
commit 1f82e254e3
2 changed files with 7 additions and 13 deletions

View File

@ -51,17 +51,7 @@
#include <stdio.h>
typedef unsigned char des_cblock[8];
typedef struct des_ks_struct
{
union {
des_cblock _;
/* make sure things are correct size on machines with
* 8 byte longs */
unsigned long pad[2];
} ks;
#undef _
#define _ ks._
} des_key_schedule[16];
typedef struct des_ks_struct { des_cblock _; } des_key_schedule[16];
#define DES_KEY_SZ (sizeof(des_cblock))
#define DES_SCHEDULE_SZ (sizeof(des_key_schedule))
@ -148,6 +138,7 @@ int des_enc_read(int fd,char *buf,int len,des_key_schedule sched,
des_cblock *iv);
int des_enc_write(int fd,char *buf,int len,des_key_schedule sched,
des_cblock *iv);
#if 0
#ifdef PERL5
char *des_crypt(const char *buf,const char *salt);
#else
@ -159,6 +150,7 @@ char *crypt(const char *buf,const char *salt);
char *crypt();
#endif
#endif
#endif
void des_ofb_encrypt(unsigned char *in,unsigned char *out,
int numbits,long length,des_key_schedule schedule,des_cblock *ivec);
void des_pcbc_encrypt(des_cblock *input,des_cblock *output,long length,
@ -209,11 +201,13 @@ void des_encrypt2();
void des_ede3_cbc_encrypt();
int des_enc_read();
int des_enc_write();
#if 0
#ifdef PERL5
char *des_crypt();
#else
char *crypt();
#endif
#endif
void des_ofb_encrypt();
void des_pcbc_encrypt();
unsigned long des_quad_cksum();

View File

@ -77,14 +77,14 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: new_rnd_key.c,v 1.1 1995/09/16 21:01:51 mark Exp $
* $Id: new_rkey.c,v 1.1.1.1 1996/02/10 15:32:24 markm Exp $
*/
/* 21-Nov-95 - eay - I've finally put this into libdes, I have made a
* few changes since it need to compile on all version of unix and
* there were a few things that would not :-) */
#incldue <stdio.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/time.h>
#include <sys/param.h>