Re: API for SHA-256 fingerprints

Jeremy Stanley <[email protected]>
Newsgroups gmane.comp.python.distutils.devel
Message-ID <[email protected]>
On 2019-02-12 17:02:25 -0500 (-0500), Wes Turner wrote:
> On Tuesday, February 12, 2019, Wes Turner <[email protected]> wrote:
[...]
> > It is possible to find a nonce value that causes an arbitrary package to
> > have the same MD5 hash as the actual package.
> 
> e.g. browsers MUST NOT rely upon MD5 for x.509 certificate SSL/TLS/HTTPS
> fingerprints for exactly this reason.
[...]

I fear we're verging far into armchair crypto here, but you're
either making buzzword soup or have a severely flawed understanding
of the algorithms involved. There is no nonce in an IETF RFC 1321
(colloquially "MD5 checksum") implementation, so please at least
attempt to frame your assertions using terms found in the canonical
literature.

Creating a malicious package which computes to the same MD5 checksum
as an existing package of your choice would require that the second
preimage resistance of the MD5 algorithm is broken, or that you got
(time complexity 2^128) "lucky." Uses of MD5 elsewhere which mix in
attacker-controlled inputs to generate the reference output are
another story entirely, but as with the any of the information
security field the actual risk depends on your threat model.

I'm not about to recommend MD5 to anyone these days, don't get me
wrong. There are (at least marginally, again depending on your
threat model) better alternatives which require no additional effort
if you're designing a system from scratch. But let's not
mischaracterize the qualities of any algorithm, as it makes it
difficult for someone who does understand the differences to take us
seriously.
-- 
Jeremy Stanley

--
Distutils-SIG mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/distutils-sig.python.org/
Message archived at https://mail.python.org/archives/list/[email protected]/message/6O3BHTLDPBHF3RNBXKJFXMH6X432C7AX/
signature.asc (application/pgp-signature, 963 B)
-----BEGIN PGP SIGNATURE-----

iQKTBAABCgB9FiEEl65Jb8At7J/DU7LnSPmWEUNJWCkFAlxjV0tfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDk3
QUU0OTZGQzAyREVDOUZDMzUzQjJFNzQ4Rjk5NjExNDM0OTU4MjkACgkQSPmWEUNJ
WCkIqg/+KDnpEsZ5OMChMHwqi8mHT5btCvjJ+T3XCaDAnwE0IcVsQ+R6+GYlmClY
NepGXmDP86fzW+6OZLKwLB2iLRaa1SjUHXqyw/Eg+/B74UfcDtgCghWptYHq+Y+V
vFY+E4Qt3X9cqEELDMXWEDyVBEH8AL2ZlZv1lY60gaXH+C3T+iyy4fxIm8bUmwYO
JSpFPJS6PuRjLErWyDp8DVecM6oHJArYQo+/7oHtnVGC7T7/WZgPrW5vqcfD5w7W
Kn3zLPsDYlnoxlT9cyGrNUeFXtExu/XZWw9F+KiR+JaMLrlLNF9q0WdK/FMFFSX3
m69V5fioKzeqf/FG54X3TTJR7bFlZN6vNXSzjsbMk0FM+4fgz97YwKwntCT4t0JU
1Q8tSs/u0RxYZZ2UFljfNdmjLJK4ZLWLVfEAo4b64xctkcU9a07mCUb5sXAqLJIZ
FyEukSXgiJeu2jy37IVZkDo5uOBybL1rndmIVVAW/OgrZW5k8422HTDengyc2X8C
ZgMfldu1jinVP6pRKnMxDATpyxfUu1ZPjlN53n/JNm6IWDK9ob2GOhiSyVpdRLUp
ELpL+BgzURkpxx79CG3FoIHz4JTkXRyVI39VZHzn1lRO2IFQqR0toMGBIQRnf4jo
GsA0QnF0LUju+ptxklTMv1/gJfP34Trbw2Le8qIb52JFEUEruTk=
=I43w
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.