HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulecryptonite-0.30Haskell2010

Crypto.PubKey.RSA.Types

  • 5 types
  • 5 values
  • Packagecryptonite-0.30
  • Exports10
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceTypes.hs
datadata Error
#

error possible during encryption, decryption or signing.

Constructors

Instances2Eq, Show
  • Eq ErrorDefined in cryptonite-0.30 · Crypto.PubKey.RSA.Types
  • Show ErrorDefined in cryptonite-0.30 · Crypto.PubKey.RSA.Types
datadata Blinder
#

Blinder which is used to obfuscate the timing of the decryption primitive (used by decryption and signing).

Constructors

Instances2Eq, Show
  • Eq BlinderDefined in cryptonite-0.30 · Crypto.PubKey.RSA.Types
  • Show BlinderDefined in cryptonite-0.30 · Crypto.PubKey.RSA.Types
datadata PublicKey
#

Represent a RSA public key

Constructors

Instances5Eq, Data, Read, Show, NFData
  • Eq PublicKeyDefined in cryptonite-0.30 · Crypto.PubKey.RSA.Types
  • Data PublicKeyDefined in cryptonite-0.30 · Crypto.PubKey.RSA.Types
  • Read PublicKeyDefined in cryptonite-0.30 · Crypto.PubKey.RSA.Types
  • Show PublicKeyDefined in cryptonite-0.30 · Crypto.PubKey.RSA.Types
  • NFData PublicKeyDefined in cryptonite-0.30 · Crypto.PubKey.RSA.Types
datadata PrivateKey
#

Represent a RSA private key.

Only the pub, d fields are mandatory to fill.

p, q, dP, dQ, qinv are by-product during RSA generation, but are useful to record here to speed up massively the decrypt and sign operation.

implementations can leave optional fields to 0.

Constructors

Instances5Eq, Data, Read, Show, NFData
newtypenewtype KeyPair
#

Represent RSA KeyPair

note the RSA private key contains already an instance of public key for efficiency

Constructors

Instances5Eq, Data, Read, Show, NFData
  • Eq KeyPairDefined in cryptonite-0.30 · Crypto.PubKey.RSA.Types
  • Data KeyPairDefined in cryptonite-0.30 · Crypto.PubKey.RSA.Types
  • Read KeyPairDefined in cryptonite-0.30 · Crypto.PubKey.RSA.Types
  • Show KeyPairDefined in cryptonite-0.30 · Crypto.PubKey.RSA.Types
  • NFData KeyPairDefined in cryptonite-0.30 · Crypto.PubKey.RSA.Types