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

Modulecryptonite-0.30Haskell2010

Crypto.PubKey.Rabin.Types

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

Error possible during encryption, decryption or signing.

Constructors

Instances2Eq, Show
  • Eq ErrorDefined in cryptonite-0.30 · Crypto.PubKey.Rabin.Types
  • Show ErrorDefined in cryptonite-0.30 · 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