From 036f289eb519b5809499de654857caaef222db9a Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Thu, 12 Nov 1998 22:21:20 +0000 Subject: [PATCH] * Makefile.in (STLIBOBJS, OBJS, SRCS): Restore des.c * des.c: Restore des_ecb_encrypt and make it use the cbc interface. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11022 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/des425/ChangeLog | 7 +++++++ src/lib/des425/Makefile.in | 3 +++ src/lib/des425/des.c | 11 +++++------ 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/src/lib/des425/ChangeLog b/src/lib/des425/ChangeLog index 4eeef1028..e873b5f0b 100644 --- a/src/lib/des425/ChangeLog +++ b/src/lib/des425/ChangeLog @@ -1,3 +1,10 @@ +Thu Nov 12 17:20:25 1998 Tom Yu + + * Makefile.in (STLIBOBJS, OBJS, SRCS): Restore des.c + + * des.c: Restore des_ecb_encrypt and make it use the cbc + interface. + 1998-10-27 Marc Horowitz * random_key.c, new_rnd_key.c: make the v4 compat random key code diff --git a/src/lib/des425/Makefile.in b/src/lib/des425/Makefile.in index e96e03f99..f19fc2bd3 100644 --- a/src/lib/des425/Makefile.in +++ b/src/lib/des425/Makefile.in @@ -27,6 +27,7 @@ SHLIB_RDIRS=$(KRB5_LIBDIR) STOBJLISTS=OBJS.ST STLIBOBJS=cksum.o \ + des.o \ enc_dec.o \ key_parity.o \ key_sched.o \ @@ -43,6 +44,7 @@ STLIBOBJS=cksum.o \ OBJS= cksum.$(OBJEXT) \ + des.$(OBJEXT) \ enc_dec.$(OBJEXT) \ key_parity.$(OBJEXT) \ key_sched.$(OBJEXT) \ @@ -58,6 +60,7 @@ OBJS= cksum.$(OBJEXT) \ k4_glue.$(OBJEXT) SRCS= $(srcdir)/cksum.c \ + $(srcdir)/des.c \ $(srcdir)/enc_dec.c \ $(srcdir)/key_parity.c \ $(srcdir)/key_sched.c \ diff --git a/src/lib/des425/des.c b/src/lib/des425/des.c index 6b08899b7..b5db9dd6d 100644 --- a/src/lib/des425/des.c +++ b/src/lib/des425/des.c @@ -58,10 +58,9 @@ des_ecb_encrypt(clear, cipher, schedule, encrypt) int encrypt; /* 0 ==> decrypt, else encrypt */ register mit_des_key_schedule schedule; /* r11 */ { - return (mit_des_ecb_encrypt((const mit_des_cblock FAR *) clear, - (mit_des_cblock *) cipher, - schedule, - encrypt)); -} - + static des_cblock iv; + return (mit_des_cbc_encrypt((const des_cblock *) clear, + (des_cblock *) cipher, + 8, schedule, iv, encrypt)); +} -- 2.26.2