From 135891a9d51ba58f42eb4fa557ad7c8c5c28d435 Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Sat, 31 Jan 2004 16:39:59 +0000 Subject: [PATCH] Force odd parity. --- fips/des/fips_desmovs.c | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.25.1