Crypto.PubKey.RSA.Prim

crypton-1.0.1: Cryptography Primitives sink

License | BSD-style
Maintainer | Vincent Hanquez <vincent@snarc.org>
Stability | experimental
Portability | Good
Safe Haskell | None
Language | Haskell2010

Crypto.PubKey.RSA.Prim

Contents

- Decrypt primitive
- Encrypt primitive

Description

Synopsis

- dp :: ByteArray ba => Maybe Blinder -> PrivateKey -> ba -> ba
- ep :: ByteArray ba => PublicKey -> ba -> ba

# Decrypt primitive

dp :: 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

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

Compute the RSA encrypt primitive