HORIZON HASKELLDocslts/ghc-9.14.x7a6c33e2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 7a6c33e · 2026-10-12

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