All CFB modes have to do magic on decrypt.
authorBen Laurie <ben@openssl.org>
Thu, 18 Dec 2003 15:38:58 +0000 (15:38 +0000)
committerBen Laurie <ben@openssl.org>
Thu, 18 Dec 2003 15:38:58 +0000 (15:38 +0000)
fips/des/fips_desmovs.c

index 3fdde2978f4093b7549b250a38c7b38f3a8e0039..e2d0bd2027813797f3d2a1e12b2f19cdbd93abdc 100644 (file)
@@ -331,7 +331,7 @@ void do_mct(char *amode,
                       || imode == CBC))
                memcpy(text,old_iv,8);
 
-           if(!dir && imode == CFB64)
+           if(!dir && (imode == CFB1 || imode == CFB8 || imode == CFB64))
                {
                /* the test specifies using the output of the raw DES operation
                   which we don't have, so reconstruct it... */