SlideShare une entreprise Scribd logo
1  sur  70
Télécharger pour lire hors ligne
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
WHY I'VE TO WASTE MY TIME
ON CRYPTOGRAPHY?
Andrea Pompili
There are only 10 types
of people in the world:
Those who understand binary,
and those who don't
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
We have to
Encrypt all!
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
2007 – Chosen-prefix MD5 collision attack (Flame 2012)
2011 – BEAST CBC attack
2013 – CRIME compression attack
2013 – Lucky Thirteen padding/timing attack
2013 – Chrome TLS truncation bug
2014 – iOS gotofail signature-verification bug
2014 – TLS Triple Handshake
2014 – Heartbleed buffer overread (OpenSSL)
2014 – POODLE padding-oracle attack
2015 – FREAK RSA-export factorization attack
2015 – Logjam discrete-log attack (DH)
2016 – DROWN attack TLS using SSLv2
2016 – Sweet32 birthday attacks on 64-bit block ciphers
2017 – SHAttered (Google)
2017 – KRACK WPA2 attack forcing nonce reuse
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
SSL_RSA_WITH_RC4_128_MD5
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
. . . The U.S. Department of State will grant export permission to any
program that uses the RC2 or RC4 data-encryption algorithm with a
key size of less than 40 bits
http://simson.net/ref/NeXT/nextworld/NextWorld_Extra/92.09.Sept.NWE/92.09.Sept.NWExtra11.html
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
“Widespread dissemination could compromise the long-term
effectiveness of the system . . . [RC4] has become the de facto coding
standard for many popular software programs including Microsoft
Windows, Apple’s Macintosh operating system and Lotus Notes. . . .
‘I have been told it was part of this deal that RC4 be kept confidential,’
Jim Bidzos, president of RSA, said.”
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
“Applications which pre-process the encryption key and IV by using
hashing and/or which discard the first 256 bytes of pseudo-random
output should be considered secure from the proposed attacks. . . .
The ‘heart’ of RC4 is its exceptionally simple and extremely
Efficient pseudo-random generator. . . .
RC4 is likely to remain the algorithm of choice for many applications
and embedded systems.”
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
“Up to 75% of SSL-enabled web sites are vulnerable [to BEAST] . . .
OpenSSL v0.9.8w is the current version in broad use and it only
supports TLS v1.0. . . .
the interim fix is to prefer the RC4-128 cipher for TLS v1.0 and SSL v3
RC4-128 is faster and cheaper in processor time . . .
Approximately 15% of SSL/TLS negotiations on the Akamai platform
use RC4. . .
Most browsers can support the RC4 fix for BEAST”
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
2015.09: Google, Microsoft, Mozilla announce agreement to
turn off RC4 in subsequent browser updates…
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
CHACHA20
DES
AES
3DES
RC4
IDEA Blowfish
Twofish
Serpent
Camellia
Kuznyechk
Kasumi
Cast
Rabbit
Scream
Kalyna
Lizard
TEA
Safer
Mars
A5/1
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
C’i-1 ?=  0x01Ci-1
Dk(Ci)  Ci-1 Pi=
Dk(Ci)  ?  0x01Ci-1
?  0x01Pi
Dk(Ci)  C’i-1 =
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
“Designed before the turn-of-the-century, AES or Advanced Encryption
Standard, is older than most of the cars on the road today, however, it
forms the basis of our global data security protection. And its failing.”
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate

Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
https://en.wikipedia.org/wiki/TOP500
https://www.embedded.com/design/embedded-internet-design/4372428/How-secure-is-AES-against-brute-force-attacks-
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Key Size Time to Crack
DES (56 bit) 774 seconds (13 minutes)
AES (128 bit) 1,16 x 1017 years
AES (256 bit) 3,95 x 1055 years
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
×
× × ×
https://pthree.org/2016/06/19/the-physics-of-brute-force/
× ×
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
×
× × × 
× × 
× × 
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Message or data block M
(variable length)
Fixed length
hash value
> Deterministic: the same message
always results in the same hash
> Efficient: quick for any message
> Infeasible to reverse except by
trying all possible messages
> Avalanche effect: small changes
extensively change the hash value
> Infeasible to find two messages
with the same hash value
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
y2 = x3 + ax + b
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Appendix A. Equivalent Curves (Informative)
All of the NIST curves [11] and several of the ANSI curves [7]
are equivalent to curves listed in Section 5.1.1.
------------------------------------------
Curve names chosen by
different standards organizations
------------+---------------+-------------
SECG | ANSI X9.62 | NIST
------------+---------------+-------------
sect163k1 | | NIST K-163
sect163r1 | |
sect163r2 | | NIST B-163
...
sect233k1 | | NIST K-233
sect233r1 | | NIST B-233
sect239k1 | |
sect283k1 | | NIST K-283
sect283r1 | | NIST B-283
sect409k1 | | NIST K-409
sect409r1 | | NIST B-409
sect571k1 | | NIST K-571
sect571r1 | | NIST B-571
...
secp192r1 | prime192v1 | NIST P-192
secp224k1 | |
secp224r1 | | NIST P-224
secp256k1 | |
secp256r1 | prime256v1 | NIST P-256
secp384r1 | | NIST P-384
secp521r1 | | NIST P-521
------------+---------------+-------------
https://safecurves.cr.yp.to/
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
https://keylength.com
https://keylength.com
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Peter Shor showed that factoring a
number into its primitives is efficient on
a quantum computer…
“Polynomial-Time Algorithms for Prime
Factorization and Discrete Logarithms on
a Quantum Computer”
https://arxiv.org/abs/quant-ph/9508027
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
"So come to PQCrypto and figure these things out
before somebody builds a quantum computer.“
https://pqcrypto.org/ (2017)
Imagine that it's fifteen years from now. Somebody announces that
he's built a large quantum computer. RSA is dead. Elliptic curves,
hyperelliptic curves, class groups, whatever, dead, dead, dead.
So users are going to run around screaming and say 'Oh my God,
what do we do?
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
https://events.ccc.de/congress/2010/Fahrplan/attachments/
1780_27c3_console_hacking_2010.pdf
Page  ‹N›
Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
ROME 13-14.04.2018
www.codemotionworld.com
Andrea Pompili
andrea.pompili@cy4gate.com – Cy4gate
Domande?
Italian
‫ة‬َّ‫ي‬َ‫أ‬ ‫ب‬ِ‫ل‬‫ا‬َ‫ط‬َ‫م‬
Arabic
¿Preguntas?
Spanish
Questions?
English
tupoQghachmey
Klingon
Sindarin
Japanese
Ερωτήσεις?
Greek
вопросы?
Russian

Contenu connexe

Similaire à Why I've to waste my time on cryptography? - Andrea Pompili - Codemotion Rome 2018

Open Design: Business + Money @ FabLab Cali
Open Design: Business + Money @ FabLab CaliOpen Design: Business + Money @ FabLab Cali
Open Design: Business + Money @ FabLab Cali
Massimo Menichinelli
 
Concourse in the Real World: A Case Study in CI/CD and DevOps
Concourse in the Real World: A Case Study in CI/CD and DevOpsConcourse in the Real World: A Case Study in CI/CD and DevOps
Concourse in the Real World: A Case Study in CI/CD and DevOps
VMware Tanzu
 
#TOA13 - Tech Opoen Air Recommender Hackathon
#TOA13 - Tech Opoen Air Recommender Hackathon#TOA13 - Tech Opoen Air Recommender Hackathon
#TOA13 - Tech Opoen Air Recommender Hackathon
Torben Brodt
 

Similaire à Why I've to waste my time on cryptography? - Andrea Pompili - Codemotion Rome 2018 (20)

Pompili - From hero to_zero: The FatalNoise neverending story
Pompili - From hero to_zero: The FatalNoise neverending storyPompili - From hero to_zero: The FatalNoise neverending story
Pompili - From hero to_zero: The FatalNoise neverending story
 
Attacks, Lies and the Underground World - Andrea Pompili - Codemotion Amsterd...
Attacks, Lies and the Underground World - Andrea Pompili - Codemotion Amsterd...Attacks, Lies and the Underground World - Andrea Pompili - Codemotion Amsterd...
Attacks, Lies and the Underground World - Andrea Pompili - Codemotion Amsterd...
 
Pompili - The miracle of sprite multiplication (C64)
Pompili -  The miracle of sprite multiplication (C64)Pompili -  The miracle of sprite multiplication (C64)
Pompili - The miracle of sprite multiplication (C64)
 
Andrea Pompili - The Dark Side of Malware Analysis
Andrea Pompili - The Dark Side of Malware AnalysisAndrea Pompili - The Dark Side of Malware Analysis
Andrea Pompili - The Dark Side of Malware Analysis
 
Spring Cloud Kubernetes - Spencer Gibb
Spring Cloud Kubernetes - Spencer GibbSpring Cloud Kubernetes - Spencer Gibb
Spring Cloud Kubernetes - Spencer Gibb
 
The magic world of Advanced Persistent Threat - Andrea Pompili - Codemotion M...
The magic world of Advanced Persistent Threat - Andrea Pompili - Codemotion M...The magic world of Advanced Persistent Threat - Andrea Pompili - Codemotion M...
The magic world of Advanced Persistent Threat - Andrea Pompili - Codemotion M...
 
POC 2018 - whatever talk_ Let's go OSINT using DeepWeb
POC 2018 - whatever talk_ Let's go OSINT using DeepWebPOC 2018 - whatever talk_ Let's go OSINT using DeepWeb
POC 2018 - whatever talk_ Let's go OSINT using DeepWeb
 
OER XinXai (NOW)! Dalian OCWC Conference 2008
OER XinXai (NOW)! Dalian OCWC Conference 2008OER XinXai (NOW)! Dalian OCWC Conference 2008
OER XinXai (NOW)! Dalian OCWC Conference 2008
 
MNSEC Conference 2023: Mining Bots
MNSEC Conference 2023: Mining BotsMNSEC Conference 2023: Mining Bots
MNSEC Conference 2023: Mining Bots
 
HackCon - SPF
HackCon - SPFHackCon - SPF
HackCon - SPF
 
The Open Library, Public Domain Wiki, and other Realized Myths of Creative Co...
The Open Library, Public Domain Wiki, and other Realized Myths of Creative Co...The Open Library, Public Domain Wiki, and other Realized Myths of Creative Co...
The Open Library, Public Domain Wiki, and other Realized Myths of Creative Co...
 
TypeScript no Grupo Bandeirantes
TypeScript no Grupo BandeirantesTypeScript no Grupo Bandeirantes
TypeScript no Grupo Bandeirantes
 
Encode
EncodeEncode
Encode
 
Open Design: Business + Money @ FabLab Cali
Open Design: Business + Money @ FabLab CaliOpen Design: Business + Money @ FabLab Cali
Open Design: Business + Money @ FabLab Cali
 
chatgpt-privacy and security.pptx
chatgpt-privacy and security.pptxchatgpt-privacy and security.pptx
chatgpt-privacy and security.pptx
 
Concourse in the Real World: A Case Study in CI/CD and DevOps
Concourse in the Real World: A Case Study in CI/CD and DevOpsConcourse in the Real World: A Case Study in CI/CD and DevOps
Concourse in the Real World: A Case Study in CI/CD and DevOps
 
Frontend Performance: Beginner to Expert to Crazy Person (San Diego Web Perf ...
Frontend Performance: Beginner to Expert to Crazy Person (San Diego Web Perf ...Frontend Performance: Beginner to Expert to Crazy Person (San Diego Web Perf ...
Frontend Performance: Beginner to Expert to Crazy Person (San Diego Web Perf ...
 
wotxr-20190320rzr
wotxr-20190320rzrwotxr-20190320rzr
wotxr-20190320rzr
 
#TOA13 - Tech Opoen Air Recommender Hackathon
#TOA13 - Tech Opoen Air Recommender Hackathon#TOA13 - Tech Opoen Air Recommender Hackathon
#TOA13 - Tech Opoen Air Recommender Hackathon
 
Encode polkadot club
Encode polkadot club  Encode polkadot club
Encode polkadot club
 

Plus de Codemotion

Plus de Codemotion (20)

Fuzz-testing: A hacker's approach to making your code more secure | Pascal Ze...
Fuzz-testing: A hacker's approach to making your code more secure | Pascal Ze...Fuzz-testing: A hacker's approach to making your code more secure | Pascal Ze...
Fuzz-testing: A hacker's approach to making your code more secure | Pascal Ze...
 
Pastore - Commodore 65 - La storia
Pastore - Commodore 65 - La storiaPastore - Commodore 65 - La storia
Pastore - Commodore 65 - La storia
 
Pennisi - Essere Richard Altwasser
Pennisi - Essere Richard AltwasserPennisi - Essere Richard Altwasser
Pennisi - Essere Richard Altwasser
 
Michel Schudel - Let's build a blockchain... in 40 minutes! - Codemotion Amst...
Michel Schudel - Let's build a blockchain... in 40 minutes! - Codemotion Amst...Michel Schudel - Let's build a blockchain... in 40 minutes! - Codemotion Amst...
Michel Schudel - Let's build a blockchain... in 40 minutes! - Codemotion Amst...
 
Richard Süselbeck - Building your own ride share app - Codemotion Amsterdam 2019
Richard Süselbeck - Building your own ride share app - Codemotion Amsterdam 2019Richard Süselbeck - Building your own ride share app - Codemotion Amsterdam 2019
Richard Süselbeck - Building your own ride share app - Codemotion Amsterdam 2019
 
Eward Driehuis - What we learned from 20.000 attacks - Codemotion Amsterdam 2019
Eward Driehuis - What we learned from 20.000 attacks - Codemotion Amsterdam 2019Eward Driehuis - What we learned from 20.000 attacks - Codemotion Amsterdam 2019
Eward Driehuis - What we learned from 20.000 attacks - Codemotion Amsterdam 2019
 
Francesco Baldassarri - Deliver Data at Scale - Codemotion Amsterdam 2019 -
Francesco Baldassarri  - Deliver Data at Scale - Codemotion Amsterdam 2019 - Francesco Baldassarri  - Deliver Data at Scale - Codemotion Amsterdam 2019 -
Francesco Baldassarri - Deliver Data at Scale - Codemotion Amsterdam 2019 -
 
Martin Förtsch, Thomas Endres - Stereoscopic Style Transfer AI - Codemotion A...
Martin Förtsch, Thomas Endres - Stereoscopic Style Transfer AI - Codemotion A...Martin Förtsch, Thomas Endres - Stereoscopic Style Transfer AI - Codemotion A...
Martin Förtsch, Thomas Endres - Stereoscopic Style Transfer AI - Codemotion A...
 
Melanie Rieback, Klaus Kursawe - Blockchain Security: Melting the "Silver Bul...
Melanie Rieback, Klaus Kursawe - Blockchain Security: Melting the "Silver Bul...Melanie Rieback, Klaus Kursawe - Blockchain Security: Melting the "Silver Bul...
Melanie Rieback, Klaus Kursawe - Blockchain Security: Melting the "Silver Bul...
 
Angelo van der Sijpt - How well do you know your network stack? - Codemotion ...
Angelo van der Sijpt - How well do you know your network stack? - Codemotion ...Angelo van der Sijpt - How well do you know your network stack? - Codemotion ...
Angelo van der Sijpt - How well do you know your network stack? - Codemotion ...
 
Lars Wolff - Performance Testing for DevOps in the Cloud - Codemotion Amsterd...
Lars Wolff - Performance Testing for DevOps in the Cloud - Codemotion Amsterd...Lars Wolff - Performance Testing for DevOps in the Cloud - Codemotion Amsterd...
Lars Wolff - Performance Testing for DevOps in the Cloud - Codemotion Amsterd...
 
Sascha Wolter - Conversational AI Demystified - Codemotion Amsterdam 2019
Sascha Wolter - Conversational AI Demystified - Codemotion Amsterdam 2019Sascha Wolter - Conversational AI Demystified - Codemotion Amsterdam 2019
Sascha Wolter - Conversational AI Demystified - Codemotion Amsterdam 2019
 
Michele Tonutti - Scaling is caring - Codemotion Amsterdam 2019
Michele Tonutti - Scaling is caring - Codemotion Amsterdam 2019Michele Tonutti - Scaling is caring - Codemotion Amsterdam 2019
Michele Tonutti - Scaling is caring - Codemotion Amsterdam 2019
 
Pat Hermens - From 100 to 1,000+ deployments a day - Codemotion Amsterdam 2019
Pat Hermens - From 100 to 1,000+ deployments a day - Codemotion Amsterdam 2019Pat Hermens - From 100 to 1,000+ deployments a day - Codemotion Amsterdam 2019
Pat Hermens - From 100 to 1,000+ deployments a day - Codemotion Amsterdam 2019
 
James Birnie - Using Many Worlds of Compute Power with Quantum - Codemotion A...
James Birnie - Using Many Worlds of Compute Power with Quantum - Codemotion A...James Birnie - Using Many Worlds of Compute Power with Quantum - Codemotion A...
James Birnie - Using Many Worlds of Compute Power with Quantum - Codemotion A...
 
Don Goodman-Wilson - Chinese food, motor scooters, and open source developmen...
Don Goodman-Wilson - Chinese food, motor scooters, and open source developmen...Don Goodman-Wilson - Chinese food, motor scooters, and open source developmen...
Don Goodman-Wilson - Chinese food, motor scooters, and open source developmen...
 
Pieter Omvlee - The story behind Sketch - Codemotion Amsterdam 2019
Pieter Omvlee - The story behind Sketch - Codemotion Amsterdam 2019Pieter Omvlee - The story behind Sketch - Codemotion Amsterdam 2019
Pieter Omvlee - The story behind Sketch - Codemotion Amsterdam 2019
 
Dave Farley - Taking Back “Software Engineering” - Codemotion Amsterdam 2019
Dave Farley - Taking Back “Software Engineering” - Codemotion Amsterdam 2019Dave Farley - Taking Back “Software Engineering” - Codemotion Amsterdam 2019
Dave Farley - Taking Back “Software Engineering” - Codemotion Amsterdam 2019
 
Joshua Hoffman - Should the CTO be Coding? - Codemotion Amsterdam 2019
Joshua Hoffman - Should the CTO be Coding? - Codemotion Amsterdam 2019Joshua Hoffman - Should the CTO be Coding? - Codemotion Amsterdam 2019
Joshua Hoffman - Should the CTO be Coding? - Codemotion Amsterdam 2019
 
Mike Kotsur - What can philosophy teach us about programming - Codemotion Ams...
Mike Kotsur - What can philosophy teach us about programming - Codemotion Ams...Mike Kotsur - What can philosophy teach us about programming - Codemotion Ams...
Mike Kotsur - What can philosophy teach us about programming - Codemotion Ams...
 

Dernier

Dernier (20)

Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 

Why I've to waste my time on cryptography? - Andrea Pompili - Codemotion Rome 2018

  • 1. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate WHY I'VE TO WASTE MY TIME ON CRYPTOGRAPHY? Andrea Pompili There are only 10 types of people in the world: Those who understand binary, and those who don't
  • 2. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate We have to Encrypt all!
  • 3. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 4. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate 2007 – Chosen-prefix MD5 collision attack (Flame 2012) 2011 – BEAST CBC attack 2013 – CRIME compression attack 2013 – Lucky Thirteen padding/timing attack 2013 – Chrome TLS truncation bug 2014 – iOS gotofail signature-verification bug 2014 – TLS Triple Handshake 2014 – Heartbleed buffer overread (OpenSSL) 2014 – POODLE padding-oracle attack 2015 – FREAK RSA-export factorization attack 2015 – Logjam discrete-log attack (DH) 2016 – DROWN attack TLS using SSLv2 2016 – Sweet32 birthday attacks on 64-bit block ciphers 2017 – SHAttered (Google) 2017 – KRACK WPA2 attack forcing nonce reuse
  • 5. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate SSL_RSA_WITH_RC4_128_MD5
  • 6. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 7. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate . . . The U.S. Department of State will grant export permission to any program that uses the RC2 or RC4 data-encryption algorithm with a key size of less than 40 bits http://simson.net/ref/NeXT/nextworld/NextWorld_Extra/92.09.Sept.NWE/92.09.Sept.NWExtra11.html
  • 8. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate “Widespread dissemination could compromise the long-term effectiveness of the system . . . [RC4] has become the de facto coding standard for many popular software programs including Microsoft Windows, Apple’s Macintosh operating system and Lotus Notes. . . . ‘I have been told it was part of this deal that RC4 be kept confidential,’ Jim Bidzos, president of RSA, said.”
  • 9. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 10. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 11. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 12. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 13. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate “Applications which pre-process the encryption key and IV by using hashing and/or which discard the first 256 bytes of pseudo-random output should be considered secure from the proposed attacks. . . . The ‘heart’ of RC4 is its exceptionally simple and extremely Efficient pseudo-random generator. . . . RC4 is likely to remain the algorithm of choice for many applications and embedded systems.”
  • 14. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 15. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 16. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 17. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate “Up to 75% of SSL-enabled web sites are vulnerable [to BEAST] . . . OpenSSL v0.9.8w is the current version in broad use and it only supports TLS v1.0. . . . the interim fix is to prefer the RC4-128 cipher for TLS v1.0 and SSL v3 RC4-128 is faster and cheaper in processor time . . . Approximately 15% of SSL/TLS negotiations on the Akamai platform use RC4. . . Most browsers can support the RC4 fix for BEAST”
  • 18. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 19. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate 2015.09: Google, Microsoft, Mozilla announce agreement to turn off RC4 in subsequent browser updates…
  • 20. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 21. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 22. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate CHACHA20 DES AES 3DES RC4 IDEA Blowfish Twofish Serpent Camellia Kuznyechk Kasumi Cast Rabbit Scream Kalyna Lizard TEA Safer Mars A5/1
  • 23. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 24. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 25. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 26. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 27. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 28. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate C’i-1 ?=  0x01Ci-1 Dk(Ci)  Ci-1 Pi= Dk(Ci)  ?  0x01Ci-1 ?  0x01Pi Dk(Ci)  C’i-1 =
  • 29. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 30. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 31. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 32. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 33. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 34. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 35. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 36. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 37. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 38. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate “Designed before the turn-of-the-century, AES or Advanced Encryption Standard, is older than most of the cars on the road today, however, it forms the basis of our global data security protection. And its failing.”
  • 39. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate 
  • 40. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate https://en.wikipedia.org/wiki/TOP500 https://www.embedded.com/design/embedded-internet-design/4372428/How-secure-is-AES-against-brute-force-attacks-
  • 41. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate Key Size Time to Crack DES (56 bit) 774 seconds (13 minutes) AES (128 bit) 1,16 x 1017 years AES (256 bit) 3,95 x 1055 years
  • 42. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 43. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate × × × × https://pthree.org/2016/06/19/the-physics-of-brute-force/ × ×
  • 44. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate × × × ×  × ×  × × 
  • 45. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 46. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate Message or data block M (variable length) Fixed length hash value > Deterministic: the same message always results in the same hash > Efficient: quick for any message > Infeasible to reverse except by trying all possible messages > Avalanche effect: small changes extensively change the hash value > Infeasible to find two messages with the same hash value
  • 47. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 48. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 49. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 50. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 51. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 52. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 53. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate y2 = x3 + ax + b
  • 54. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 55. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 56. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 57. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 58. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 59. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate Appendix A. Equivalent Curves (Informative) All of the NIST curves [11] and several of the ANSI curves [7] are equivalent to curves listed in Section 5.1.1. ------------------------------------------ Curve names chosen by different standards organizations ------------+---------------+------------- SECG | ANSI X9.62 | NIST ------------+---------------+------------- sect163k1 | | NIST K-163 sect163r1 | | sect163r2 | | NIST B-163 ... sect233k1 | | NIST K-233 sect233r1 | | NIST B-233 sect239k1 | | sect283k1 | | NIST K-283 sect283r1 | | NIST B-283 sect409k1 | | NIST K-409 sect409r1 | | NIST B-409 sect571k1 | | NIST K-571 sect571r1 | | NIST B-571 ... secp192r1 | prime192v1 | NIST P-192 secp224k1 | | secp224r1 | | NIST P-224 secp256k1 | | secp256r1 | prime256v1 | NIST P-256 secp384r1 | | NIST P-384 secp521r1 | | NIST P-521 ------------+---------------+------------- https://safecurves.cr.yp.to/
  • 60. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 61. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 62. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 63. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 64. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 65. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate https://keylength.com https://keylength.com
  • 66. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate
  • 67. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate Peter Shor showed that factoring a number into its primitives is efficient on a quantum computer… “Polynomial-Time Algorithms for Prime Factorization and Discrete Logarithms on a Quantum Computer” https://arxiv.org/abs/quant-ph/9508027
  • 68. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate "So come to PQCrypto and figure these things out before somebody builds a quantum computer.“ https://pqcrypto.org/ (2017) Imagine that it's fifteen years from now. Somebody announces that he's built a large quantum computer. RSA is dead. Elliptic curves, hyperelliptic curves, class groups, whatever, dead, dead, dead. So users are going to run around screaming and say 'Oh my God, what do we do?
  • 69. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate https://events.ccc.de/congress/2010/Fahrplan/attachments/ 1780_27c3_console_hacking_2010.pdf
  • 70. Page  ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 13-14.04.2018 www.codemotionworld.com Andrea Pompili andrea.pompili@cy4gate.com – Cy4gate Domande? Italian ‫ة‬َّ‫ي‬َ‫أ‬ ‫ب‬ِ‫ل‬‫ا‬َ‫ط‬َ‫م‬ Arabic ¿Preguntas? Spanish Questions? English tupoQghachmey Klingon Sindarin Japanese Ερωτήσεις? Greek вопросы? Russian