HORIZON HASKELLDocslts/ghc-9.14.x99ffbb82026-10-19Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 99ffbb8 · 2026-10-19

Modulecrypton-1.0.6Haskell2010

Crypto.PubKey.Rabin.Basic

Rabin cryptosystem for public-key cryptography and digital signature.

Synopsis
  • Packagecrypton-1.0.6
  • Exports10
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceBasic.hs
datadata PrivateKey

Represent a Rabin private key.

Instances4Eq, Data, Read, Show
  • Eq PrivateKeyDefined in crypton-1.0.6 · Crypto.PubKey.Rabin.Basic
  • Data PrivateKeyDefined in crypton-1.0.6 · Crypto.PubKey.Rabin.Basic
  • Read PrivateKeyDefined in crypton-1.0.6 · Crypto.PubKey.Rabin.Basic
  • Show PrivateKeyDefined in crypton-1.0.6 · Crypto.PubKey.Rabin.Basic

Generate a pair of (private, public) key of size in bytes. Primes p and q are both congruent 3 mod 4.

See algorithm 8.11 in "Handbook of Applied Cryptography" by Alfred J. Menezes et al.