HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

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