Hamming Weight Attacks on Cryptographic Hardware — Breaking Masking Defense

  • Marcin Gomuffłkiewicz
  • Mirosffław Kutyffłowski
Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 2502)

Abstract

It is believed that masking is an effective countermeasure against power analysis attacks: before a certain operation involving a key is performed in a cryptographic chip, the input to this operation is combined with a random value. This has to prevent leaking information since the input to the operation is random.

We show that this belief might be wrong. We present a Hamming weight attack on an addition operation. It works with random inputs to the addition circuit, hence masking even helps in the case when we cannot control the plaintext. It can be applied to any round of the encryption. Even with moderate accuracy of measuring power consumption it determines explicitly subkey bits. The attack combines the classical power analysis (over Hamming weight) with the strategy of the saturation attack performed using a random sample.

We conclude that implementing addition in cryptographic devices must be done very carefully as it might leak secret keys used for encryption. In particular, the simple key schedule of certain algorithms (such as IDEA and Twofish) combined with the usage of addition might be a serious danger.

Keywords

cryptographic hardware side channel cryptanalysis Hamming weight power analysis 

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. [1]
    Burwick C., Coppersmith D., D’Avignon E., Gennaro R., Halevi S., Jutla C., Matyas S., O’Connor L., Peyravian M., Safford D., Zunic N., MARS — A Candidate Cipher for AES, http://www.research.ibm.com/security/mars.html.
  2. [2]
    Chari S., Jutla Ch., Rao J. R., Rohatgi P., A Cautionary Note Regarding Evaluation of AES Candidates on Smart-Cards, Second Advanced Encryption Standard (AES) Candidate Conference.Google Scholar
  3. [3]
    Chari S., Jutla Ch., Rao J.R., Rohatgi P., Towards sound approaches to counteract power-analysis attacks, CRYPTO’99, Lecture Notes in Computer Science 1666. Springer-Verlag, 398–412.Google Scholar
  4. [4]
    Coron J. S., On Boolean and arithmetic masking against differential power analysis, CHES’2000, Lecture Notes in Computer Science 1965. Springer-Verlag, 231–237.Google Scholar
  5. [5]
    Daemen J., Knudsen L., Rijmen V., The block cipher Square, Fast Software Encryption’97, Lecture Notes in Computer Science 1267. Springer-Verlag, 149–165.CrossRefGoogle Scholar
  6. [6]
    Daemen J., Rijmen V., The block cipher Rijndael, http://www.esat.kuleuven.ac.be/~rijmen/rijndael.
  7. [7]
    Goubin L., A sound method for switching between Boolean and arithmetic masking, CHES’2001, Lecture Notes in Computer Science 2162. Springer-Verlag, 3–15.Google Scholar
  8. [8]
    Gandolfi K., Mourtel Ch., Olivier F., Electromagnetic Analysis: Concrete Results, CHES’2001, Lecture Notes in Computer Science 2162. Springer-Verlag, 251–261.Google Scholar
  9. [9]
    Goubin L., Patarin J., DES and Differential Power Analysis (The “Duplication” Method), CHES’99, Lecture Notes in Computer Science 1717. Springer-Verlag, 158–172.Google Scholar
  10. [10]
    Kesley J., Schneier B., Wagner D., Hall Ch., Side channel cryptanalysis of product ciphers, Journal on Computer Security 8 (2000), 141–158.Google Scholar
  11. [11]
    Kocher P., Timing Attacks on Implementations of Diffie-Hellman, RSA, DSS, and Other Systems. CRYPTO’96, Lecture Notes in Computer Science 1109. Springer-Verlag, 104–113.Google Scholar
  12. [12]
    Kocher P., Jaffe J., Jun B., Differential power analysis, CRYPTO’99, Lecture Notes in Computer Science 1666. Springer-Verlag, 388–397, also: Introduction to differential power analysis and related attacks, http://www.cryptography.com/dpa/technical.Google Scholar
  13. [13]
    Lucks S., The saturation attack-a bait for Twofish, http://eprint.iacr.org/2000/046/.
  14. [14]
    Messerges Th., Securing AES finalists against power analysis attack, FSE’2000, Lecture Notes in Computer Science 1978. Springer-Verlag, 150–164.Google Scholar
  15. [15]
    Rivest R., Robshaw M., Sidney R., The RC6 Block Cipher, http://theory.lcs.mit.edu/~rivest/rc6.ps.
  16. [16]
    Schneier B., Kesley J., Whiting D., Wagner D., Ch. Hall, N. Ferguson, The Twofish Encryption Algorithm: a 128-Bit Block Cipher, Wiley, 1999, ISBN 0-471-35381-7.Google Scholar
  17. [17]
    AES Development Effort, NIST, http://www.nist.gov/aes.

Copyright information

© Springer-Verlag Berlin Heidelberg 2002

Authors and Affiliations

  • Marcin Gomuffłkiewicz
    • 1
  • Mirosffław Kutyffłowski
    • 1
    • 2
  1. 1.Cryptology CentrePoznań UniversityPoland
  2. 2.Institute of MathematicsWrocław University of TechnologyWroclawPoland

Personalised recommendations