From: Ben Laurie Date: Thu, 12 Feb 2004 19:32:57 +0000 (+0000) Subject: We have to save text0 each time round the outer loop. X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0f7ff5b8095340162ed6f0b5b18377174cef152f;p=oweals%2Fopenssl.git We have to save text0 each time round the outer loop. --- diff --git a/fips/des/fips_desmovs.c b/fips/des/fips_desmovs.c index 79b99915ee..9871c0b92a 100644 --- a/fips/des/fips_desmovs.c +++ b/fips/des/fips_desmovs.c @@ -274,8 +274,6 @@ void do_mct(char *amode, exit(1); } - memcpy(text0,text,8); - for(i=0 ; i < 400 ; ++i) { int j; @@ -302,6 +300,8 @@ void do_mct(char *amode, if(imode == CFB1) text[0]<<=7; + memcpy(text0,text,8); + for(j=0 ; j < 10000 ; ++j) { unsigned char old_text[8];