HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulecrypton-1.0.4Haskell2010

Crypto.PubKey.Rabin.Basic

Rabin cryptosystem for public-key cryptography and digital signature.

  • 3 types
  • 7 values
  • Packagecrypton-1.0.4
  • Exports10
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceBasic.hs
datadata PrivateKey
#

Represent a Rabin private key.

Instances4Eq, Data, Read, Show
  • Eq PrivateKeyDefined in crypton-1.0.4 · Crypto.PubKey.Rabin.Basic
  • Data PrivateKeyDefined in crypton-1.0.4 · Crypto.PubKey.Rabin.Basic
  • Read PrivateKeyDefined in crypton-1.0.4 · Crypto.PubKey.Rabin.Basic
  • Show PrivateKeyDefined in crypton-1.0.4 · 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.