From: Ben Laurie Date: Thu, 18 Dec 2003 15:38:58 +0000 (+0000) Subject: All CFB modes have to do magic on decrypt. X-Git-Tag: BEN_FIPS_TEST_4^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=380537d9ffd819548088c25bfae58243c01394d9;p=openssl All CFB modes have to do magic on decrypt. --- diff --git a/fips/des/fips_desmovs.c b/fips/des/fips_desmovs.c index 3fdde2978f..e2d0bd2027 100644 --- a/fips/des/fips_desmovs.c +++ b/fips/des/fips_desmovs.c @@ -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... */