HORIZON HASKELLDocslts/ghc-10.0.x8174fa42026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

Modulecryptonite-0.30Haskell2010

Crypto.PubKey.RSA.Prim

  • 2 values
  • Packagecryptonite-0.30
  • Exports2
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourcePrim.hs

Decrypt primitive

1 declaration
valuedp :: ByteArray ba => Maybe Blinder -> PrivateKey -> ba -> ba
#

Compute the RSA decrypt primitive. if the p and q numbers are available, then dpFast is used otherwise, we use dpSlow which only need d and n.

Encrypt primitive

1 declaration