.. _sphx_glr_api_gallery_crypto_hashing:
Hashing
-------
Attacks on hash functions and the constructions that answer them: the
birthday bound, Merkle-Damgard and length extension, HMAC, and SHA-256.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /api/gallery/crypto/hashing/images/thumb/sphx_glr_plot_01_birthday_attack_thumb.png
:alt:
:doc:`/api/gallery/crypto/hashing/plot_01_birthday_attack`
.. raw:: html
The birthday attack on hash functions (Yuval 1979)
.. raw:: html
.. only:: html
.. image:: /api/gallery/crypto/hashing/images/thumb/sphx_glr_plot_02_merkle_damgard_thumb.png
:alt:
:doc:`/api/gallery/crypto/hashing/plot_02_merkle_damgard`
.. raw:: html
The Merkle-Damgard construction and length extension (1989)
.. raw:: html
.. only:: html
.. image:: /api/gallery/crypto/hashing/images/thumb/sphx_glr_plot_03_hmac_thumb.png
:alt:
:doc:`/api/gallery/crypto/hashing/plot_03_hmac`
.. raw:: html
HMAC: keyed hashing that resists length extension (1996)
.. raw:: html
.. only:: html
.. image:: /api/gallery/crypto/hashing/images/thumb/sphx_glr_plot_04_sha256_avalanche_thumb.png
:alt:
:doc:`/api/gallery/crypto/hashing/plot_04_sha256_avalanche`
.. raw:: html
SHA-256 and the avalanche effect (FIPS 180-2, 2002)
.. thumbnail-parent-div-close
.. raw:: html
.. toctree::
:hidden:
/api/gallery/crypto/hashing/plot_01_birthday_attack
/api/gallery/crypto/hashing/plot_02_merkle_damgard
/api/gallery/crypto/hashing/plot_03_hmac
/api/gallery/crypto/hashing/plot_04_sha256_avalanche