Actually install des.h. We haven't been for a while now.

This commit is contained in:
Justin T. Gibbs 1995-09-14 04:04:24 +00:00
parent 20e8750f5e
commit b30c068c58
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=10719
2 changed files with 7 additions and 17 deletions

View File

@ -1,7 +1,7 @@
# from: @(#)Makefile 5.1 (Berkeley) 6/25/90 # from: @(#)Makefile 5.1 (Berkeley) 6/25/90
# $Id: Makefile,v 1.5 1995/08/25 21:25:09 mark Exp $ # $Id: Makefile,v 1.4 1995/09/13 17:23:44 markm Exp $
FILES= kparse.h krb.h krb_db.h FILES= kparse.h krb.h krb_db.h des.h
# mit-copyright.h kadm_err.h krb_err.h # mit-copyright.h kadm_err.h krb_err.h

View File

@ -12,17 +12,7 @@
#include <stdio.h> #include <stdio.h>
typedef unsigned char des_cblock[8]; typedef unsigned char des_cblock[8];
typedef struct des_ks_struct typedef struct des_ks_struct { des_cblock _; } des_key_schedule[16];
{
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];
#define DES_KEY_SZ (sizeof(des_cblock)) #define DES_KEY_SZ (sizeof(des_cblock))
#define DES_SCHEDULE_SZ (sizeof(des_key_schedule)) #define DES_SCHEDULE_SZ (sizeof(des_key_schedule))
@ -51,7 +41,9 @@ typedef struct des_ks_struct
#define quad_cksum des_quad_cksum #define quad_cksum des_quad_cksum
/* For compatibility with the MIT lib - eay 20/05/92 */ /* For compatibility with the MIT lib - eay 20/05/92 */
typedef des_key_schedule bit_64; typedef struct des_ks_struct bit_64;
#define des_fixup_key_parity des_set_odd_parity
#define des_check_key_parity check_parity
extern int des_check_key; /* defaults to false */ extern int des_check_key; /* defaults to false */
extern int des_rw_mode; /* defaults to DES_PCBC_MODE */ extern int des_rw_mode; /* defaults to DES_PCBC_MODE */
@ -71,8 +63,7 @@ extern int des_rw_mode; /* defaults to DES_PCBC_MODE */
int des_2ecb_encrypt(des_cblock *input,des_cblock *output, int des_2ecb_encrypt(des_cblock *input,des_cblock *output,
des_key_schedule ks1,des_key_schedule ks2,int enc); des_key_schedule ks1,des_key_schedule ks2,int enc);
int des_3ecb_encrypt(des_cblock *input,des_cblock *output, int des_3ecb_encrypt(des_cblock *input,des_cblock *output,
des_key_schedule ks1,des_key_schedule ks2, des_key_schedule ks1,des_key_schedule ks2, int enc);
des_key_schedule ks3, int enc);
unsigned long des_cbc_cksum(des_cblock *input,des_cblock *output, unsigned long des_cbc_cksum(des_cblock *input,des_cblock *output,
long length,des_key_schedule schedule,des_cblock *ivec); long length,des_key_schedule schedule,des_cblock *ivec);
int des_cbc_encrypt(des_cblock *input,des_cblock *output,long length, int des_cbc_encrypt(des_cblock *input,des_cblock *output,long length,
@ -137,7 +128,6 @@ int des_cfb64_encrypt(unsigned char *in, unsigned char *out, long length,
int des_ofb64_encrypt(unsigned char *in, unsigned char *out, long length, int des_ofb64_encrypt(unsigned char *in, unsigned char *out, long length,
des_key_schedule schedule, des_cblock *ivec, int *num); des_key_schedule schedule, des_cblock *ivec, int *num);
void des_cblock_print_file(des_cblock *cb, FILE *fp); void des_cblock_print_file(des_cblock *cb, FILE *fp);
#else #else
int des_2ecb_encrypt(); int des_2ecb_encrypt();