.. _sphx_glr_api_gallery_crypto_discrete_log:
Discrete logarithms
-------------------
Generic attacks on the problem behind Diffie-Hellman and Schnorr.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /api/gallery/crypto/discrete_log/images/thumb/sphx_glr_plot_01_baby_step_giant_step_thumb.png
:alt:
:doc:`/api/gallery/crypto/discrete_log/plot_01_baby_step_giant_step`
.. raw:: html
Baby-step giant-step: square-root discrete logs (Shanks 1971)
.. raw:: html
.. only:: html
.. image:: /api/gallery/crypto/discrete_log/images/thumb/sphx_glr_plot_02_pohlig_hellman_thumb.png
:alt:
:doc:`/api/gallery/crypto/discrete_log/plot_02_pohlig_hellman`
.. raw:: html
Pohlig-Hellman: why the group order must have a large prime factor (1978)
.. thumbnail-parent-div-close
.. raw:: html
.. toctree::
:hidden:
/api/gallery/crypto/discrete_log/plot_01_baby_step_giant_step
/api/gallery/crypto/discrete_log/plot_02_pohlig_hellman