crypto-pubkey-0.2.4: Public Key cryptography

PortabilityGood
Stabilityexperimental
MaintainerVincent Hanquez <vincent@snarc.org>
Safe HaskellNone

Crypto.PubKey.RSA.Prim

Contents

Description

 

Synopsis

decrypt primitive

dp :: Maybe Blinder -> PrivateKey -> ByteString -> ByteStringSource

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 :: PublicKey -> ByteString -> ByteStringSource

Compute the RSA encrypt primitive