HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulecrypton-2.1.7Haskell2010

Crypto.PubKey.RSA.Prim

Contents
  1. Decrypt primitive
  2. Encrypt primitive
Synopsis
  • Packagecrypton-2.1.7
  • Exports2
  • LanguageHaskell2010
  • LicenceBSD-3-Clause AND MIT AND ISC
  • SourcePrim.hs

Decrypt primitive

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