HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulecrypton-1.0.4Haskell2010

Crypto.PubKey.RSA.Types

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

error possible during encryption, decryption or signing.

Constructors

Instances2Eq, Show
  • Eq ErrorDefined in crypton-1.0.4 · Crypto.PubKey.RSA.Types
  • Show ErrorDefined in crypton-1.0.4 · 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 crypton-1.0.4 · Crypto.PubKey.RSA.Types
  • Show BlinderDefined in crypton-1.0.4 · Crypto.PubKey.RSA.Types
datadata PublicKey
#

Represent a RSA public key

Constructors

Instances5Eq, Data, Read, Show, NFData
  • Eq PublicKeyDefined in crypton-1.0.4 · Crypto.PubKey.RSA.Types
  • Data PublicKeyDefined in crypton-1.0.4 · Crypto.PubKey.RSA.Types
  • Read PublicKeyDefined in crypton-1.0.4 · Crypto.PubKey.RSA.Types
  • Show PublicKeyDefined in crypton-1.0.4 · Crypto.PubKey.RSA.Types
  • NFData PublicKeyDefined in crypton-1.0.4 · 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 crypton-1.0.4 · Crypto.PubKey.RSA.Types
  • Data KeyPairDefined in crypton-1.0.4 · Crypto.PubKey.RSA.Types
  • Read KeyPairDefined in crypton-1.0.4 · Crypto.PubKey.RSA.Types
  • Show KeyPairDefined in crypton-1.0.4 · Crypto.PubKey.RSA.Types
  • NFData KeyPairDefined in crypton-1.0.4 · Crypto.PubKey.RSA.Types