CFB-64 needs to use the saved IV too.
authorBen Laurie <ben@openssl.org>
Thu, 18 Dec 2003 14:10:53 +0000 (14:10 +0000)
committerBen Laurie <ben@openssl.org>
Thu, 18 Dec 2003 14:10:53 +0000 (14:10 +0000)
fips/des/fips_desmovs.c

index 9357f0a4bc1ab3925b2f7aca42c486be740a93e0..13ccc46d5006bbaf3a2dc0d1ccbb6892f09d7327 100644 (file)
@@ -324,7 +324,8 @@ void do_mct(char *amode,
            /* accumulate material for the next key */
            shiftin(nk,text,Sizes[imode]);
            /*      DebugValue("nk",nk,8); */
-           if(dir && (imode == CFB1 || imode == CFB8 || imode == CBC))
+           if(dir && (imode == CFB1 || imode == CFB8 || imode == CFB64
+                      || imode == CBC))
                memcpy(text,old_iv,8);
            }
        for(n=0 ; n < 8 ; ++n)