The invention relates to an enhanced
MASK code method for resisting DES (data
encryption standard)
power consumption attack, comprising the steps as follows: step 1, realizing two rounds of DES (data
encryption standard) calculations with a pipeline
operation mode, realizing a calculating circuit by means of a first calculating circuit and a second calculating circuit which are mutually independent and isolated; step 2, realizing the DES (data
encryption standard) calculation processes from the third round to the fourteenth round by means of a random positioning logical
operation mode; step 3, realizing the last two rounds of DES (data encryption standard) calculations by means of a pipeline
operation mode, and realizing the calculating circuit by means of a third calculating circuit and a fourth calculating circuit which are mutually independent and isolated, wherein each round of the DES (data encryption standard) calculations in step 1 to 3 is calculated with a
MASK code method. The method provided by the invention not only reduces the design area of the
chip, but also completely solves the problem in the prior art in which the two adjacent rounds of the
MASK code solutions have a
Hamming distance leakage, and keeps the sensitive information between wheels from leakage, and simultaneously keeps the
Hamming distance and other sensitive information between two adjacentwheels from leakage, and effectively resists the
power consumption attack.