HORIZON HASKELLDocslts/ghc-9.14.xd82dee82026-10-12Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12

Modulecrypton-1.0.6Haskell2010

Crypto.PubKey.Rabin.Basic

Rabin cryptosystem for public-key cryptography and digital signature.

  • 3 types
  • 7 values
  • 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
valuegenerate :: MonadRandom m => Int -> m (PublicKey, PrivateKey)
#

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.