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.Types

  • 1 type
  • 1 value
  • Packagecrypton-1.0.4
  • Exports2
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceTypes.hs
datadata Error
#

Error possible during encryption, decryption or signing.

Constructors

Instances2Eq, Show
  • Eq ErrorDefined in crypton-1.0.4 · Crypto.PubKey.Rabin.Types
  • Show ErrorDefined in crypton-1.0.4 · Crypto.PubKey.Rabin.Types
valuegeneratePrimes
  1. :: MonadRandom m
  2. => Int

    size in bytes

  3. -> PrimeCondition

    condition prime p must satisfy

  4. -> PrimeCondition

    condition prime q must satisfy

  5. -> m (Integer, Integer)

    chosen distinct primes p and q

#

Generate primes p & q