Skip to content

Commit

Permalink
We have to save text0 each time round the outer loop.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Laurie committed Feb 12, 2004
1 parent 820fb35 commit 0f7ff5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fips/des/fips_desmovs.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,6 @@ void do_mct(char *amode,
exit(1);
}

memcpy(text0,text,8);

for(i=0 ; i < 400 ; ++i)
{
int j;
Expand All @@ -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];
Expand Down

0 comments on commit 0f7ff5b

Please sign in to comment.