* 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
+Thu Nov 12 17:20:25 1998 Tom Yu <tlyu@mit.edu>
+
+ * 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 <marc@mit.edu>
* random_key.c, new_rnd_key.c: make the v4 compat random key code
STOBJLISTS=OBJS.ST
STLIBOBJS=cksum.o \
+ des.o \
enc_dec.o \
key_parity.o \
key_sched.o \
OBJS= cksum.$(OBJEXT) \
+ des.$(OBJEXT) \
enc_dec.$(OBJEXT) \
key_parity.$(OBJEXT) \
key_sched.$(OBJEXT) \
k4_glue.$(OBJEXT)
SRCS= $(srcdir)/cksum.c \
+ $(srcdir)/des.c \
$(srcdir)/enc_dec.c \
$(srcdir)/key_parity.c \
$(srcdir)/key_sched.c \
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));
+}