From: Ben Laurie Date: Thu, 18 Dec 2003 13:57:24 +0000 (+0000) Subject: Decrypt correctly. X-Git-Tag: BEN_FIPS_TEST_4^2~7 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bebc48c72f8502299fa0d6ea1777671e8bd66b75;p=oweals%2Fopenssl.git Decrypt correctly. --- diff --git a/fips/des/fips_desmovs.c b/fips/des/fips_desmovs.c index 0ebd8c9339..9357f0a4bc 100644 --- a/fips/des/fips_desmovs.c +++ b/fips/des/fips_desmovs.c @@ -324,7 +324,7 @@ void do_mct(char *amode, /* accumulate material for the next key */ shiftin(nk,text,Sizes[imode]); /* DebugValue("nk",nk,8); */ - if(imode == CFB1 || imode == CFB8 || imode == CBC) + if(dir && (imode == CFB1 || imode == CFB8 || imode == CBC)) memcpy(text,old_iv,8); } for(n=0 ; n < 8 ; ++n)