From: Ben Laurie Date: Sat, 31 Jan 2004 16:39:59 +0000 (+0000) Subject: Force odd parity. X-Git-Tag: BEN_FIPS_TEST_5~2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=135891a9d51ba58f42eb4fa557ad7c8c5c28d435;p=oweals%2Fopenssl.git Force odd parity. --- diff --git a/fips/des/fips_desmovs.c b/fips/des/fips_desmovs.c index b3727a958f..79b99915ee 100644 --- a/fips/des/fips_desmovs.c +++ b/fips/des/fips_desmovs.c @@ -348,6 +348,9 @@ void do_mct(char *amode, memcpy(&akey[2*8],akey,8); if(numkeys < 2) memcpy(&akey[8],akey,8); + DES_set_odd_parity((DES_cblock *)akey); + DES_set_odd_parity((DES_cblock *)(akey+8)); + DES_set_odd_parity((DES_cblock *)(akey+16)); memcpy(ivec,ctx.iv,8); /* pointless exercise - the final text doesn't depend on the