Bnl09 Preneel Owasp Benelux09

Total Page:16

File Type:pdf, Size:1020Kb

Bnl09 Preneel Owasp Benelux09 Bart Preneel December 2009 SHA-3 Competition: The Quest for Long-Term Security in Cryptographic Hashing Hash functions SHA-3 Competition: The Quest for Long-Term Security inin CryptographicCryptographic HashingHashing Bart Preneel • MDC (manipulation detection code) COSIC – Katholieke UniverUniversiteitsiteit Leuven, Belgium bart.preneel(AT)esat.kuleuven.be • Protect short hash value rather than long text BeNeLux OWASP Day 2 December 2009 This is an input to a crypto- graphic hash function. The input is a very long string, that is reduced by the hash function to a string of fixed length. There are 1A3FD4128A198FB3CA345932 additional security conditions: it h should be very hard to find an input hashing to a given value (a www.ecrypt.eu.org preimage) or to find two colliding inputs (a collision). 2 Hash function flavours Outline • definitions and background cryptographic hash function • generic attacks this talk • attacks on iterated constructions: the rise and fall of MD MAC MDC • MD4, MD5, SHA-0, SHA-1 • SHA-2 • SHA-3: the NIST AHS competition OWHF CRHF UOWHF • SHA-4 (TCR) • conclusions 3 4 Informal definitions (1) Security requirements (n-bit result) • no secret parameters preimage 2nd preimage collision • input string x of arbitrary length ⇒ output h(x) of fixed bitlength n ? x ≠ ? ≠ ? • computation “easy” ? • One Way Hash Function (OWHF) h h h h h — preimage resistance — 2nd preimage resistance h(x) h(x) h(x’) h(x) h(x’) • Collision Resistant Hash Function (CRHF): OWHF + = = — collision resistant 2n 2n 2n/2 5 birthday paradox6 Bart Preneel December 2009 SHA-3 Competition: The Quest for Long-Term Security in Cryptographic Hashing Applications Applications (2) • digital signatures: OWHF/CRHF, `destroy algebraic structure‘ • Collision resistance is not always necessary • information authentication: protect authenticity of hash result • protection of passwords: preimage resistant • Other properties are needed: • confirmation of knowledge/commitment: OWHF/CRHF — pseudo-randomness if keyed (with secret key) — near-collision resistance • pseudo-random string generation/key derivation — partial preimage resistance • micropayments (e.g., micromint) — multiplication freeness • construction of MAC algorithms, stream ciphers, block ciphers — indifferentiable from random oracle • (redundancy: hash result appended to data before encryption) • Hard to formalize Until 2005: 800 uses of MD5 in Windows 7 8 Brute force (2nd) preimage Brute force attacks in practice • Finding a single second preimage: 2n • parallel (2nd) preimage search • Multiple (2t) target second preimage (1 out of many): 2n-t — n = 128: 90 M$ for 1 year if one out of 248 targets 38 • Multiple target second preimage (many out of many) [Hellman’80] — n = 128: 90 B$ for 1 year if one out of 2 targets • Precomputation: 2n • parallel collision search • Storage: 22n/3 — n = 128: 1 M$ for 12 hours (or 1 year on 60K PCs) • inversion of one message in time: 22n/3 — n = 160: 90 M$ for 1 year • answer: randomize hash function — need 256-bit result for long term security (25 years or more) —salt, spice, “key”: parameter to index family of functions 9 10 Quantum computers Outline • In principle exponential parallelism • definitions and background • generic attacks • Inverting a one-way function: 2n reduced to 2n/2 [Grover’96] • attacks on iterated constructions: the rise and fall of MD • Collision search: 2n/2 no improvement in spite of claims • MD4, MD5, SHA-0, SHA-1 • SHA-2 • SHA-3: the NIST AHS competition • SHA-4 • conclusions 11 13 Bart Preneel December 2009 SHA-3 Competition: The Quest for Long-Term Security in Cryptographic Hashing Hash function: iterated structure Security relation between f and h • Iterating f can degrade its security nd IV H1 H2 H3 — trivial example: 2 preimage f f f f g IV H H H 1 2 3 g x1 x2 x3 x4 f f f f Split messages into blocks of fixed length and hash x1 x2 x3 x4 them block by block with a compression function f IV = H1 H2 H3 Efficient and elegant f f f g But many problems… x2 x3 x4 14 15 Security relation between f and h Attacks on MD: 1999-2006 • Solution: Merkle-Damgard (MD) strengthening (popular!) • multi-collision attack [Joux’04] fix IV, use unambiguous padding and insert length at the end — the concatenation of 2 iterated hash functions is as most as strong as the strongest of the two (even if both are independent) — cost of collision attack against g at most n1 . 2n2/2 + 2n1/2 << 2(n1 + n2)/2 • [MD’89] f is collision resistant ⇒ h is collision resistant • [Lai-Massey’92] f is 2nd preimage resistant ⇔ h is 2nd preimage resistant ? h1 h2 g(x) = h1(x) || h2(x) • other problems: — long message 2nd preimage attack [Dean-Felten-Hu'99], [Kelsey-Schneier’05] — herding attack [Kelsey-Kohno’06] 16 17 Improving MD iteration Summary • degradation with use: salting (family of functions, randomization) • strong output transformation g (which includes total length and salt) • counter in every iteration • larger internal memory: known as wide pipe Many concrete proposals in the SHA-3 competition 18 19 Bart Preneel December 2009 SHA-3 Competition: The Quest for Long-Term Security in Cryptographic Hashing Outline MDx-type hash function history • definitions and background MD4 Ext. MD4 90 • generic attacks MD5 91 • attacks on iterated constructions: the rise and fall of MD 92 • MD4, MD5, SHA-0, SHA-1 HAVAL RIPEMD • SHA-2 SHA(-0) 93 • SHA-3: the NIST AHS competition SHA-1 94 • SHA-4 RIPEMD-160 95 • conclusions SHA-2 02 20 SHA-3 12 21 The complexity of collision attacks MD5 [Rivest’91] Brute force: 4 million PCs or US$ 100K hardware (1 year) • 4 rounds (64 steps) 90 • pseudo-collisions [denBoer-Bosselaers’93] 80 • collisions for compression function [Dobbertin’96] 70 MD4 • collisions for hash function 60 MD5 — [Wang+’04] – 15 minutes 50 — … SHA-0 40 — [Stevens+’09] – milliseconds SHA-1 — brute force (264): 1M$ 10 hours in ’09 30 •2nd preimage in 2123 [Sasaki-Aoki’09] 20 Brute force 10 • Popularity: 0 — License-free — 10 times faster than DES 92 92 00 02 04 06 08 — Export restrictions in the 90s less stringent for hash functions than for block ciphers 19 19 1994 1996 1998 20 20 20 20 20 22 23 MD5 SHA-1 [NIST’95] • Advice (RIPE since ‘92, RSA • fix to SHA-0 (published ’93, today collisions in 1 hour) since ‘96): stop using MD5 • Largely ignored by industry • collisions for SHA-1 (click on a cert...) • 70 steps in 244 – highly structured [De Cannière-Rechberger’06]: • 70 steps 239 (4 days on a PC) [Joux-Peyrin’07] • 269 [Wang+’05] • Can this be improved? [Wang+’05 - unpublished], [Sugita+’06 ], Mendel+’08 - unpublished], [McDonald+’09 - unpublished] • preimages for 48/80 steps in 2160-ε [Aoki-Sasaki’09] Prediction: collision for SHA-1 in the next 12-18 months 24 25 Bart Preneel December 2009 SHA-3 Competition: The Quest for Long-Term Security in Cryptographic Hashing SHA-1 90 brute force 80 70 [Wang+’05] [Mendel+’08] 60 [Wang+’04] [Manuel’09] 50 [McDonald+’09] SHA-1 40 [Sugita+’06] 30 20 Most attacks 10 unpublished/withdrawn 0 2003 2004 2005 2006 2007 2008 2009 2010 26 27 Rogue CA attack Impact of collisions [Sotirov-Stevens-Appelbaum-Lenstra-Molnar-Osvik-de Weger ’08] • collisions for MD5, SHA-0, SHA-1 — 2 messages differ in a few bits in 1 to 3 512-bit input blocks • request user cert; by special Self-signed collision this results in a fake CA root key — limited control over message bits in these blocks cert (need to predict serial — but arbitrary choice of bits before and after them number + validity period) CA1 CA2 Rogue CA impact: rogue CA • what is achievable for MD5? that can issue certs User1 User2 User x — 2 colliding executables/postscript/gif/…[Lucks-Daum’05] that are trusted by — 2 colliding RSA public keys – thus with colliding X.509 certificates [Lenstra+’04] all browsers — chosen prefix attack: different IDs, same certificate [Stevens+’07] — 2 arbitrary colliding files (no constraints) in 12 hours • 6 CAs have issued certificates signed with MD5 in 2008: — Rapid SSL, Free SSL (free trial certificates offered by RapidSSL), TC for 1 M$ TrustCenter AG, RSA Data Security, Verisign.co.jp 28 TrustCenter AG, RSA Data Security, Verisign.co.jp 29 Other ways to fool CAs Impact of collisions (3) • [Moxie Marlinspike’09] Black Hat • digital signatures: only an issue if for non-repudiation — browsers may accept bogus SSL certs • none for signatures computed before attacks were — CAs may sign malicious certs public (1 August 2004) • certificate for www.paypal.com\0.kuleuven.be will be issued if the • none for certificates if public keys are generated at request comes from a kuleuven.be admin random in a controlled environment • response by PayPal: suspend Moxie’s account • substantial for signatures after 1 August 2005 (cf. traffic tickets in Australia) — http://www.theregister.co.uk/2009/10/06/paypal_banishes_ssl_hacker/ • Related (independent) work at Financial Cryptography 2010 30 31 Bart Preneel December 2009 SHA-3 Competition: The Quest for Long-Term Security in Cryptographic Hashing And (2nd) preimages? HMAC • security degrades with number of applications • HMAC keys through the IV (plaintext) [Kim+’06] — collisions for MD5 invalidate current security proof of HMAC-MD5 • for large messages even with the number of blocks (cf. — new attacks on reduced version of HMAC-MD5 and HMAC-SHA-1 supra) K x • specific results: Rounds in f2 Rounds in f1 Data complexity 1 73 MD4 48 48 272 CP + 277 time — MD2: 2 [Knudsen+09] f1 126.1 102 MD5 64 33 of 64 2 CP — MD4: 2 [Leurent’08] K2 MD5 64 64 251 CP & 2100 time (RK) — MD5: 2123 [Sasaki-Aoki’09] SHA-1 80 53 of 80 298.5
Recommended publications
  • Statistical Weaknesses in 20 RC4-Like Algorithms and (Probably) the Simplest Algorithm Free from These Weaknesses - VMPC-R
    Statistical weaknesses in 20 RC4-like algorithms and (probably) the simplest algorithm free from these weaknesses - VMPC-R Bartosz Zoltak www.vmpcfunction.com [email protected] Abstract. We find statistical weaknesses in 20 RC4-like algorithms including the original RC4, RC4A, PC-RC4 and others. This is achieved using a simple statistical test. We found only one algorithm which was able to pass the test - VMPC-R. This algorithm, being approximately three times more complex then RC4, is probably the simplest RC4-like cipher capable of producing pseudo-random output. Keywords: PRNG; CSPRNG; RC4; VMPC-R; stream cipher; distinguishing attack 1 Introduction RC4 is a popular and one of the simplest symmetric encryption algorithms. It is also probably one of the easiest to modify. There is a bunch of RC4 modifications out there. But is improving the old RC4 really as simple as it appears to be? To state the contrary we confront 20 candidates (including the original RC4) against a simple statistical test. In doing so we try to support four theses: 1. Modifying RC4 is easy to do but it is hard to do well. 2. Statistical weaknesses in almost all RC4-like algorithms can be easily found using a simple test discussed in this paper. 3. The only RC4-like algorithm which was able to pass the test was VMPC-R. It is approximately three times more complex than RC4. We believe that any algorithm simpler than VMPC-R would most likely fail the test. 4. Before introducing a new RC4-like algorithm it might be a good idea to run the statistical test described in this paper.
    [Show full text]
  • Security Evaluation of the K2 Stream Cipher
    Security Evaluation of the K2 Stream Cipher Editors: Andrey Bogdanov, Bart Preneel, and Vincent Rijmen Contributors: Andrey Bodganov, Nicky Mouha, Gautham Sekar, Elmar Tischhauser, Deniz Toz, Kerem Varıcı, Vesselin Velichkov, and Meiqin Wang Katholieke Universiteit Leuven Department of Electrical Engineering ESAT/SCD-COSIC Interdisciplinary Institute for BroadBand Technology (IBBT) Kasteelpark Arenberg 10, bus 2446 B-3001 Leuven-Heverlee, Belgium Version 1.1 | 7 March 2011 i Security Evaluation of K2 7 March 2011 Contents 1 Executive Summary 1 2 Linear Attacks 3 2.1 Overview . 3 2.2 Linear Relations for FSR-A and FSR-B . 3 2.3 Linear Approximation of the NLF . 5 2.4 Complexity Estimation . 5 3 Algebraic Attacks 6 4 Correlation Attacks 10 4.1 Introduction . 10 4.2 Combination Generators and Linear Complexity . 10 4.3 Description of the Correlation Attack . 11 4.4 Application of the Correlation Attack to KCipher-2 . 13 4.5 Fast Correlation Attacks . 14 5 Differential Attacks 14 5.1 Properties of Components . 14 5.1.1 Substitution . 15 5.1.2 Linear Permutation . 15 5.2 Key Ideas of the Attacks . 18 5.3 Related-Key Attacks . 19 5.4 Related-IV Attacks . 20 5.5 Related Key/IV Attacks . 21 5.6 Conclusion and Remarks . 21 6 Guess-and-Determine Attacks 25 6.1 Word-Oriented Guess-and-Determine . 25 6.2 Byte-Oriented Guess-and-Determine . 27 7 Period Considerations 28 8 Statistical Properties 29 9 Distinguishing Attacks 31 9.1 Preliminaries . 31 9.2 Mod n Cryptanalysis of Weakened KCipher-2 . 32 9.2.1 Other Reduced Versions of KCipher-2 .
    [Show full text]
  • Distinguishing Attacks on the Stream Cipher Py
    Distinguishing Attacks on the Stream Cipher Py Souradyuti Paul‡, Bart Preneel‡, and Gautham Sekar‡† ‡Katholieke Universiteit Leuven, Dept. ESAT/COSIC, Kasteelpark Arenberg 10, B–3001, Leuven-Heverlee, Belgium †Birla Institute of Technology and Science, Pilani, India, Dept. of Electronics and Instrumentation, Dept. of Physics. {souradyuti.paul, bart.preneel}@esat.kuleuven.be, [email protected] Abstract. The stream cipher Py designed by Biham and Seberry is a submission to the ECRYPT stream cipher competition. The cipher is based on two large arrays (one is 256 bytes and the other is 1040 bytes) and it is designed for high speed software applications (Py is more than 2.5 times faster than the RC4 on Pentium III). The paper shows a statistical bias in the distribution of its output-words at the 1st and 3rd rounds. Exploiting this weakness, a distinguisher with advantage greater than 50% is constructed that requires 284.7 randomly chosen key/IV’s and the first 24 output bytes for each key. The running time and the 84.7 89.2 data required by the distinguisher are tini · 2 and 2 respectively (tini denotes the running time of the key/IV setup). We further show that the data requirement can be reduced by a factor of about 3 with a distinguisher that considers outputs of later rounds. In such case the 84.7 running time is reduced to tr ·2 (tr denotes the time for a single round of Py). The Py specification allows a 256-bit key and a keystream of 264 bytes per key/IV. As an ideally secure stream cipher with the above specifications should be able to resist the attacks described before, our results constitute an academic break of Py.
    [Show full text]
  • New Developments in Cryptology Outline Outline Block Ciphers AES
    New Developments in Cryptography March 2012 Bart Preneel Outline New developments in cryptology • 1. Cryptology: concepts and algorithms Prof. Bart Preneel • 2. Cryptology: protocols COSIC • 3. Public-Key Infrastructure principles Bart.Preneel(at)esatDOTkuleuven.be • 4. Networking protocols http://homes.esat.kuleuven.be/~preneel • 5. New developments in cryptology March 2012 • 6. Cryptography best practices © Bart Preneel. All rights reserved 1 2 Outline Block ciphers P1 P2 P3 • Block ciphers/stream ciphers • Hash functions/MAC algorithms block block block • Modes of operation and authenticated cipher cipher cipher encryption • How to encrypt/sign using RSA C1 C2 C3 • Multi-party computation • larger data units: 64…128 bits •memoryless • Concluding remarks • repeat simple operation (round) many times 3 3-DES: NIST Spec. Pub. 800-67 AES (2001) (May 2004) S S S S S S S S S S S S S S S S • Single DES abandoned round • two-key triple DES: until 2009 (80 bit security) • three-key triple DES: until 2030 (100 bit security) round MixColumnsS S S S MixColumnsS S S S MixColumnsS S S S MixColumnsS S S S hedule Highly vulnerable to a c round • Block length: 128 bits related key attack • Key length: 128-192-256 . Key S Key . bits round A $ 10M machine that cracks a DES Clear DES DES-1 DES %^C& key in 1 second would take 149 trillion text @&^( years to crack a 128-bit key 1 23 1 New Developments in Cryptography March 2012 Bart Preneel AES variants (2001) AES implementations: • AES-128 • AES-192 • AES-256 efficient/compact • 10 rounds • 12 rounds • 14 rounds • sensitive • classified • secret and top • NIST validation list: 1953 implementations (2008: 879) secret plaintext plaintext plaintext http://csrc.nist.gov/groups/STM/cavp/documents/aes/aesval.html round round.
    [Show full text]
  • Automated Techniques for Hash Function and Block Cipher Cryptanalysis
    Arenberg Doctoral School of Science, Engineering & Technology Faculty of Engineering Department of Electrical Engineering (ESAT) Automated Techniques for Hash Function and Block Cipher Cryptanalysis Nicky MOUHA Dissertation presented in partial fulfillment of the requirements for the degree of Doctor of Engineering June 2012 Automated Techniques for Hash Function and Block Cipher Cryptanalysis Nicky MOUHA Jury: Dissertation presented in partial Prof. em. dr. ir. Yves D. Willems, chair fulfillment of the requirements for Prof. dr. ir. Bart Preneel, supervisor the degree of Doctor of Engineering Prof. dr. ir. Vincent Rijmen, secretary Prof. dr. ir. Frank Piessens Dr. Svetla Petkova-Nikova Dr. Matt Robshaw (Applied Cryptography Group, Orange Labs, France) June 2012 Our greatest glory is not in never falling, but in rising every time we fall. Confucius c 2012 Nicky Mouha � D/2012/7515/71 ISBN 978-94-6018-535-9 If I have seen further it is only by standing on the shoulders of giants. Isaac Newton Acknowledgments Every research paper is a puzzle piece, linking other pieces together to reveal a bigger picture. As such, research can’t be done in isolation. In the past few years, I’ve been extremely fortunate to meet the world’s best and brightest in thefield of symmetric-key cryptography. Many times, I’ve found myself to be the stupidest and most ignorant person in the room. To me, such experiences have been exciting and humbling, but most of all a great opportunity to learn. Therefore, I would like to personally thank everyone who contributed in one way or another to this thesis.
    [Show full text]
  • Design and Analysis of RC4-Like Stream Ciphers
    Design and Analysis of RC4-like Stream Ciphers by Matthew E. McKague A thesis presented to the University of Waterloo in fulfillment of the thesis requirement for the degree of Master of Mathematics in Combinatorics and Optimization Waterloo, Ontario, Canada, 2005 c Matthew E. McKague 2005 I hereby declare that I am the sole author of this thesis. This is a true copy of the thesis, including any required final revisions, as accepted by my examiners. I understand that my thesis may be made electronically available to the public. Matthew E. McKague ii Abstract RC4 is one of the most widely used ciphers in practical software ap- plications. In this thesis we examine security and design aspects of RC4. First we describe the functioning of RC4 and present previously published analyses. We then present a new cipher, Chameleon which uses a similar internal organization to RC4 but uses different methods. The remainder of the thesis uses ideas from both Chameleon and RC4 to develop design strategies for new ciphers. In particular, we develop a new cipher, RC4B, with the goal of greater security with an algorithm comparable in simplicity to RC4. We also present design strategies for ciphers and two new ciphers for 32-bit processors. Finally we present versions of Chameleon and RC4B that are implemented using playing-cards. iii Acknowledgements This thesis was undertaken under the supervision of Alfred Menezes at the University of Waterloo. The cipher Chameleon was developed under the supervision of Allen Herman at the University of Regina. Financial support was provided by the University of Waterloo, the University of Regina and the National Science and Engineering Research Council of Canada (NSERC).
    [Show full text]
  • Phd Thesis, Katholieke Universiteit Leuven, FSE 2003, Volume 2887 of Lecture Notes in Computer Science, Pages 274– Mar
    Christophe DE CANNI KATHOLIEKE UNIVERSITEIT LEUVEN FACULTEIT TOEGEPASTE WETENSCHAPPEN DEPARTEMENT ELEKTROTECHNIEK Kasteelpark Arenberg 10, B–3001 Heverlee A ERE ` ANALYSIS AND DESIGN OF SYMMETRIC ENCRYPTION ALGORITHMS ANALYSIS AND DESIGN OF SYMMETRIC ENCRYPTION ALGORITHMS Promotor: Proefschrift voorgedragen tot Prof. dr. ir. Bart Preneel het behalen van het doctoraat in de toegepaste wetenschappen door Christophe DE CANNIERE` Mei 2007 Mei 2007 KATHOLIEKE UNIVERSITEIT LEUVEN FACULTEIT TOEGEPASTE WETENSCHAPPEN DEPARTEMENT ELEKTROTECHNIEK Kasteelpark Arenberg 10, B–3001 Heverlee A ANALYSIS AND DESIGN OF SYMMETRIC ENCRYPTION ALGORITHMS Jury: Proefschrift voorgedragen tot Prof. Y. Willems, voorzitter het behalen van het doctoraat Prof. B. Preneel, promotor in de toegepaste wetenschappen Prof. T. Johansson (Lunds Tekniska H¨ogskola) door Prof. V. Rijmen (Technische Universit¨at Graz) Prof. M. Van Barel Christophe DE CANNIERE` Prof. J. Vandewalle Prof. P. Wambacq U.D.C. 681.3*D46 Mei 2007 i Acknowledgments The years leading to this doctoral dissertation have been for me an exciting period of discovery and growth, made possible by the help and support of numerous people who accompanied me on my journey. I wish to gratefully acknowledge their essential contribution to the results presented here. First of all, I would like to thank my supervisor, Prof. Bart Preneel. Not only did he direct my research all along, he also introduced me to a large cross section of the worldwide cryptographic community, of which he is such a distinguished member. The participation in the ECRYPT projects which he leads has given me the opportunity to meet and work with a lot of em- inent cryptographers; it has also been the direct motivation for part of my work.
    [Show full text]
  • Blockchain: Hype Or Reality
    Bart Preneel September 2019 Blockchain: Hype or Reality Outline Blockchain: A short history of blockchain Hype or Reality? Opportunities PROF. DR. IR. BART PRENEEL COSIC, AN IMEC LAB AT KU LEUVEN, BELGIUM What can we learn from PKI? [email protected] Challenges ENISA SUMMER SCHOOL, HERAKLION Do you need a blockchain? 17 SEPTEMBER 2019 1 2 History Currencies = maintaining memory George Santaja (1864-1952) Those who cannot remember the past are condemned to repeat it Susa, Iran, ca 3300 BC Cuneiform, Sumeria, ca 2600 BC 3 Slide inspired by George Danezis4 1 Bart Preneel September 2019 Blockchain: Hype or Reality Hash functions (1975): one-way Digital signatures (1975): easy to compute but hard to invert “equivalent” to manual signature RIPEMD-160 SHA-256 X Donald agrees to SHA-512 Public key This is an input to a crypto- pay to Hillary 100 graphic hash function. The SHA-3 input is a very long string, that Bitcoins on Sept. is reduced by the hash function to a string of fixed 17 2019 length. There are additional f 1A3FD4128A198FB3CA345932 security conditions: it should Private key be very hard to find an input hashing to a given value (a preimage) or to find two colliding inputs (a collision). 5 6 Byzantine generals problem (1982) Merkle tree (1979) (can deal with at most 1/3 traitors) Using a hash function f to authenticate a set of messages through a x12 logarithmic number of values x5678 Applications: digital signatures, revocation… root 7 8 2 Bart Preneel September 2019 Blockchain: Hype or Reality Electronic cash (1985)
    [Show full text]
  • The Truth on Tpy
    The Truth on TPy Eli Biham∗ Jennifer Seberry† February 29, 2008 Abstract In this note we refer to the security of the Py and TPy families, as discussed in several papers in recent years. We investigate the published attacks, and show that no attacks on TPy, TPypy and TPy6 have ever been published, whose complexities are within the bounds set by the security claims of these ciphers. Also, only a single attack on Py was published which may be considered within the scope of the security claims — as a response to this attack the Py family was tweaked to TPy, TPypy and TPy6. We conclude that the TPy family of ciphers is highly secure, and recommend using them in applications that require secure stream ciphers. 1 Introduction In this note we investigate the claims of the papers that study the Py and TPy families [2, 3, 4], and discuss their accuracy. As stated in the original paper on Py [2], the inventors of Py and TPy welcome any technique for the cryptanalysis or study of these families. The inventors of Py and TPy also believe that many of the techniques discussed in the various papers are interesting and important for the further study of these families, and point out some possible weaknesses that may be used in the future to attack these families. As such, we are especially pleased to thank the authors of [18] who found a weakness of the IV setup of the Py family, and thus allowed us to improve the ciphers, by a tweak, leading to the TPy family.
    [Show full text]
  • SFINKS: a Synchronous Stream Cipher for Restricted Hardware Environments ?
    SFINKS: A Synchronous Stream Cipher for Restricted Hardware Environments ? An Braeken?? and Joseph Lano? ? ? and Nele Mentens and Bart Preneel and Ingrid Verbauwhede Katholieke Universiteit Leuven Dept. Elect. Eng.-ESAT/SCD-COSIC, Kasteelpark Arenberg 10, 3001 Heverlee, Belgium fan.braeken,joseph.lano,nele.mentens,bart.preneel,[email protected] Abstract. We present SFINKS, a low-cost synchronous stream cipher for hardware applications with an associated authentication mechanism. The stream cipher is based F on a Simple Filter generator, using the INverse function in 216 to generate the Key Stream. The design is based on simple and well-studied concepts, and its security is analyzed with respect to the portfolio of known cryptanalytic attacks for filter generators. 1 Introduction For efficient encryption of data, cryptography mainly uses two types of symmetric algorithms, block ciphers and stream ciphers. In the past decades, block ciphers have become the most widely used technology. This is mainly due to the block cipher standard DES [32] and its successor AES [33]. The current AES is a secure encryption algorithm that offers excellent performance on a variety of hardware and software environments. As block ciphers are often used in a stream cipher mode such as CTR and OFB, stream ciphers may offer equivalent security at a lower cost. The aim of this paper is to propose a low-cost synchronous stream cipher for hardware applications with an associated authentication mechanism. The design we propose is a simple synchronous stream cipher using a memoryless nonlinear filter. We will motivate our choices made for the building blocks in the following sections.
    [Show full text]
  • Hash-Functions from Block Ciphers
    Computer Security and Cryptography CS381 来学嘉 计算机科学与工程系 电院3-423室 34205440 1356 4100825 [email protected] 2015-05 Organization • Week 1 to week 16 (2015-03 to 2014-06) • 东中院-3-102 • Monday 3-4节; week 9-16 • Wednesday 3-4节; week 1-16 • lecture 10 + exercise 40 + random tests 40 + other 10 • Ask questions in class – counted as points • Turn ON your mobile phone (after lecture) • Slides and papers: – http://202.120.38.185/CS381 • computer-security – http://202.120.38.185/references • TA: Geshi Huang [email protected] • Send homework to the TA Rule: do the homework on your own! 2 Contents • Introduction -- What is security? • Cryptography – Classical ciphers – Today’s ciphers – Public-key cryptography – Hash functions and MAC – Authentication protocols • Applications – Digital certificates – Secure email – Internet security, e-banking • Computer and network security – Access control – Malware – Firewall 3 Content • Hash function – usage and basic properties • Iterated hash function – Relationship between Hash function and its round (compress) function • Real compress functions – Using block cipher – Dedicated hash functions, MD5,SHA1 • Security and attacks • SHA-3 • MAC 4 References • Bart Preneel, The State of Cryptographic Hash Functions, http://www.cosic.esat.kuleuven.ac.be/publications/ • G. Yuval, “How to swindle Rabin," Cryptologia, Vol. 3, 1979, pp. 187-189 • Ralph Merkle. One way Hash functions and DES. In Gilles Brassard, editor, Advances in Cryptology: CRYPTO 89, LNCS 435. Springer-Verlag. 1989: 428–446. • Ivan Damgard. A design principle for Hash functions. In Gilles Brassard, editor, Advances in Cryptology: CRYPTO 89, LNCS 435. Springer-Verlag. 1989:416~427. • ISO/IEC 10118, Information technology - Security techniques - Hash-functions, – Part 1: General", – Part 2: Hash-functions using an n-bit block cipher algorithm," – Part 3: Dedicated hash-functions," – Part 4: Hash-functions using modular arithmetic,“ • M.
    [Show full text]
  • Survey and Benchmark of Stream Ciphers for Wireless Sensor Networks
    Survey and Benchmark of Stream Ciphers for Wireless Sensor Networks Nicolas Fournel1, Marine Minier2, and St´ephane Ub´eda2 1 LIP, ENS Lyon - Compsys (Bureau 347) 46, Alle d’Italie - 69364 LYON Cedex 07 - France [email protected] 2 CITI - INSA de Lyon - ARES INRIA Project Bˆatiment L´eonardde Vinci 21 Avenue Jean Capelle, 69621 Villeurbanne Cedex - France [email protected] Abstract. For security applications in wireless sensor networks (WSNs), choosing best algorithms in terms of energy-efficiency and of small-storage requirements is a real challenge because the sensor networks must be autonomous. In [22], the authors have benchmarked on a dedicated plat- form some block-ciphers using several modes of operations and have de- duced the best block cipher to use in the context of WSNs. This article proposes to study on a dedicated platform of sensors some stream ciphers. First, we sum-up the security provided by the chosen stream ciphers (especially the ones dedicated to software uses recently proposed in the European Project Ecrypt, workpackage eStream [27]) and presents some implementation tests performed on the platform [16]. Keywords: stream ciphers, sensors, benchmarks. Introduction Sensor networks are made by the tremendous advances and convergence of micro- electro-mechanical systems (MEMS), wireless communication technologies and digital electronics. Sensor networks are composed of a large number of tiny de- vices or sensors which monitor their surrounding area to measure environmental information, to detect movements, vibrations, etc. Wireless sensor networks can be really useful in many civil and military areas for collecting, processing and monitoring environmental data.
    [Show full text]