From 2b50c84ac1cef8d31224642d605c8744bcf9ebac Mon Sep 17 00:00:00 2001 From: Garrett Wollman Date: Tue, 9 May 1995 18:05:15 +0000 Subject: [PATCH] Make certain that random keys havethe correct parity, for interoperation with MIT v4 implementations. Submitted by: Reece R. Pollack --- eBones/des/rand_key.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eBones/des/rand_key.c b/eBones/des/rand_key.c index d8d23451dc05..a202428e32b3 100644 --- a/eBones/des/rand_key.c +++ b/eBones/des/rand_key.c @@ -2,7 +2,7 @@ /* Copyright (C) 1993 Eric Young - see README for more details */ /*- - * $Id: rand_key.c,v 1.2 1994/07/19 19:22:04 g89r4222 Exp $ + * $Id: rand_key.c,v 1.1.1.1 1994/09/30 14:49:51 csgr Exp $ */ #include "des_locl.h" @@ -36,6 +36,7 @@ des_cblock ret; des_set_odd_parity((des_cblock *)key); des_cbc_cksum((des_cblock *)key,(des_cblock *)key, (long)sizeof(key),ks,(des_cblock *)data); + des_set_odd_parity((des_cblock *)key); bcopy(key,ret,sizeof(key)); bzero(key,sizeof(key));