cryptonite-0.20: Cryptography Primitives sink

LicenseBSD-style
MaintainerVincent Hanquez <vincent@snarc.org>
Stabilityexperimental
PortabilityGood
Safe HaskellNone
LanguageHaskell2010

Crypto.PubKey.RSA.Prim

Contents

Description

 

Synopsis

decrypt primitive

dp :: ByteArray ba => Maybe Blinder -> PrivateKey -> ba -> ba Source #

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

ep :: ByteArray ba => PublicKey -> ba -> ba Source #

Compute the RSA encrypt primitive