practical cryptanalysis of iso iec 9796 2 and emv
play

Practical Cryptanalysis of iso/iec 9796-2 and emv Signatures ebastien - PowerPoint PPT Presentation

Context Our Contribution Conclusion Practical Cryptanalysis of iso/iec 9796-2 and emv Signatures ebastien Coron 1 David Naccache 2 Jean-S Mehdi Tibouchi 2 Ralf Philipp Weinmann 1 1 Universit e du Luxembourg 2 Ecole normale sup erieure


  1. Context Our Contribution Conclusion Practical Cryptanalysis of iso/iec 9796-2 and emv Signatures ebastien Coron 1 David Naccache 2 Jean-S´ Mehdi Tibouchi 2 Ralf Philipp Weinmann 1 1 Universit´ e du Luxembourg 2 ´ Ecole normale sup´ erieure CRYPTO 2009

  2. Context Our Contribution Conclusion Our Results in a Nutshell • Improve upon a previous attack [CNS99] against ISO 9796-2 signatures by a large factor. • Conduct the new attack in practice, demonstrating an actual vulnerability in the ISO 9796-2:2002 standard. • Show how the attack applies to certain EMV signatures.

  3. Context Our Contribution Conclusion Our Results in a Nutshell • Improve upon a previous attack [CNS99] against ISO 9796-2 signatures by a large factor. • Conduct the new attack in practice, demonstrating an actual vulnerability in the ISO 9796-2:2002 standard. • Show how the attack applies to certain EMV signatures.

  4. Context Our Contribution Conclusion Our Results in a Nutshell • Improve upon a previous attack [CNS99] against ISO 9796-2 signatures by a large factor. • Conduct the new attack in practice, demonstrating an actual vulnerability in the ISO 9796-2:2002 standard. • Show how the attack applies to certain EMV signatures.

  5. Context Our Contribution Conclusion Outline Context Signing with RSA (or Rabin) Previous Work Our Contribution Building Blocks Implementation Application to EMV Signatures

  6. Context Our Contribution Conclusion Outline Context Signing with RSA (or Rabin) Previous Work Our Contribution Building Blocks Implementation Application to EMV Signatures

  7. Context Our Contribution Conclusion RSA Signatures • Signing using textbook RSA: σ = m 1 / e mod N is a bad idea (e.g. homomorphic properties). • Therefore, encapsulate m using an encoding function µ : σ = µ ( m ) 1 / e mod N

  8. Context Our Contribution Conclusion RSA Signatures • Signing using textbook RSA: σ = m 1 / e mod N is a bad idea (e.g. homomorphic properties). • Therefore, encapsulate m using an encoding function µ : σ = µ ( m ) 1 / e mod N

  9. Context Our Contribution Conclusion Encoding functions • Two kinds of encoding functions: 1. Ad-hoc encodings: PKCS#1 v1.5, ISO 9796-1, ISO 9796-2, etc. Designed to prevent specific attacks. Often exhibit other weaknesses. 2. Provably secure encodings: RSA-FDH, RSA-PSS, Cramer-Shoup, etc. Proven to be secure under well-defined assumptions. • Although potentially less secure, ad-hoc encodings remain in widespread use in real-world applications (including credit cards, e-passports, etc.). Re-evaluating them periodically is thus necessary.

  10. Context Our Contribution Conclusion Encoding functions • Two kinds of encoding functions: 1. Ad-hoc encodings: PKCS#1 v1.5, ISO 9796-1, ISO 9796-2, etc. Designed to prevent specific attacks. Often exhibit other weaknesses. 2. Provably secure encodings: RSA-FDH, RSA-PSS, Cramer-Shoup, etc. Proven to be secure under well-defined assumptions. • Although potentially less secure, ad-hoc encodings remain in widespread use in real-world applications (including credit cards, e-passports, etc.). Re-evaluating them periodically is thus necessary.

  11. Context Our Contribution Conclusion Encoding functions • Two kinds of encoding functions: 1. Ad-hoc encodings: PKCS#1 v1.5, ISO 9796-1, ISO 9796-2, etc. Designed to prevent specific attacks. Often exhibit other weaknesses. 2. Provably secure encodings: RSA-FDH, RSA-PSS, Cramer-Shoup, etc. Proven to be secure under well-defined assumptions. • Although potentially less secure, ad-hoc encodings remain in widespread use in real-world applications (including credit cards, e-passports, etc.). Re-evaluating them periodically is thus necessary.

  12. Context Our Contribution Conclusion Encoding functions • Two kinds of encoding functions: 1. Ad-hoc encodings: PKCS#1 v1.5, ISO 9796-1, ISO 9796-2, etc. Designed to prevent specific attacks. Often exhibit other weaknesses. 2. Provably secure encodings: RSA-FDH, RSA-PSS, Cramer-Shoup, etc. Proven to be secure under well-defined assumptions. • Although potentially less secure, ad-hoc encodings remain in widespread use in real-world applications (including credit cards, e-passports, etc.). Re-evaluating them periodically is thus necessary.

  13. Context Our Contribution Conclusion ISO 9796-2 • The ISO 9796-2 standard defines an ad-hoc encoding with partial or total message recovery. We only consider partial message recovery. • Let k be the size of N . The encoding function has the following form: µ ( m ) = 6A 16 � m [1] � hash ( m ) � BC 16 with 2 fixed bytes, a digest of k h bits and the first k − k h − 16 bits of m . • The size of µ ( m ) is thus always k − 1 bits. • ISO 9796-2:1997 recommended 128 ≤ k h ≤ 160. ISO 9796-2:2002 now recommends k h ≥ 160, and EMV uses k h = 160.

  14. Context Our Contribution Conclusion ISO 9796-2 • The ISO 9796-2 standard defines an ad-hoc encoding with partial or total message recovery. We only consider partial message recovery. • Let k be the size of N . The encoding function has the following form: µ ( m ) = 6A 16 � m [1] � hash ( m ) � BC 16 with 2 fixed bytes, a digest of k h bits and the first k − k h − 16 bits of m . • The size of µ ( m ) is thus always k − 1 bits. • ISO 9796-2:1997 recommended 128 ≤ k h ≤ 160. ISO 9796-2:2002 now recommends k h ≥ 160, and EMV uses k h = 160.

  15. Context Our Contribution Conclusion ISO 9796-2 • The ISO 9796-2 standard defines an ad-hoc encoding with partial or total message recovery. We only consider partial message recovery. • Let k be the size of N . The encoding function has the following form: µ ( m ) = 6A 16 � m [1] � hash ( m ) � BC 16 with 2 fixed bytes, a digest of k h bits and the first k − k h − 16 bits of m . • The size of µ ( m ) is thus always k − 1 bits. • ISO 9796-2:1997 recommended 128 ≤ k h ≤ 160. ISO 9796-2:2002 now recommends k h ≥ 160, and EMV uses k h = 160.

  16. Context Our Contribution Conclusion ISO 9796-2 • The ISO 9796-2 standard defines an ad-hoc encoding with partial or total message recovery. We only consider partial message recovery. • Let k be the size of N . The encoding function has the following form: µ ( m ) = 6A 16 � m [1] � hash ( m ) � BC 16 with 2 fixed bytes, a digest of k h bits and the first k − k h − 16 bits of m . • The size of µ ( m ) is thus always k − 1 bits. • ISO 9796-2:1997 recommended 128 ≤ k h ≤ 160. ISO 9796-2:2002 now recommends k h ≥ 160, and EMV uses k h = 160.

  17. Context Our Contribution Conclusion ISO 9796-2 • The ISO 9796-2 standard defines an ad-hoc encoding with partial or total message recovery. We only consider partial message recovery. • Let k be the size of N . The encoding function has the following form: µ ( m ) = 6A 16 � m [1] � hash ( m ) � BC 16 with 2 fixed bytes, a digest of k h bits and the first k − k h − 16 bits of m . • The size of µ ( m ) is thus always k − 1 bits. • ISO 9796-2:1997 recommended 128 ≤ k h ≤ 160. ISO 9796-2:2002 now recommends k h ≥ 160, and EMV uses k h = 160.

  18. Context Our Contribution Conclusion ISO 9796-2 • The ISO 9796-2 standard defines an ad-hoc encoding with partial or total message recovery. We only consider partial message recovery. • Let k be the size of N . The encoding function has the following form: µ ( m ) = 6A 16 � m [1] � hash ( m ) � BC 16 with 2 fixed bytes, a digest of k h bits and the first k − k h − 16 bits of m . • The size of µ ( m ) is thus always k − 1 bits. • ISO 9796-2:1997 recommended 128 ≤ k h ≤ 160. ISO 9796-2:2002 now recommends k h ≥ 160, and EMV uses k h = 160.

  19. Context Our Contribution Conclusion ISO 9796-2 • The ISO 9796-2 standard defines an ad-hoc encoding with partial or total message recovery. We only consider partial message recovery. • Let k be the size of N . The encoding function has the following form: µ ( m ) = 6A 16 � m [1] � hash ( m ) � BC 16 with 2 fixed bytes, a digest of k h bits and the first k − k h − 16 bits of m . • The size of µ ( m ) is thus always k − 1 bits. • ISO 9796-2:1997 recommended 128 ≤ k h ≤ 160. ISO 9796-2:2002 now recommends k h ≥ 160, and EMV uses k h = 160.

  20. Context Our Contribution Conclusion Outline Context Signing with RSA (or Rabin) Previous Work Our Contribution Building Blocks Implementation Application to EMV Signatures

  21. Context Our Contribution Conclusion The Desmedt-Odlyzko Attack Suppose the encoded messages µ ( m ) are relatively short. In [DO85], Desmedt and Odlyzko proposed the following attack. 1. Choose a bound B and let p 1 , . . . , p ℓ be the primes smaller than B . 2. Find ℓ + 1 messages m i such that the µ ( m i ) are B -smooth: µ ( m i ) = p v i , 1 · · · p v i ,ℓ 1 ℓ 3. Obtain a linear dependence relation between the exponent vectors v i = ( v i , 1 mod e , . . . , v i ,ℓ mod e ) and deduce the expression of one µ ( m j ) as a multiplicative combination of the µ ( m i ), i � = j . 4. Ask for the signatures of the m i and forge the signature of m j .

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend