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

Modulecrypto-pubkey-types-0.4.3Haskell98

Crypto.Types.PubKey.RSA

  • 3 types
  • 4 values
datadata PublicKey
#

Represent a RSA public key

Constructors

Instances5Eq, Data, Read, Show, ASN1Object
  • Eq PublicKeyDefined in crypto-pubkey-types-0.4.3 · Crypto.Types.PubKey.RSA
  • Data PublicKeyDefined in crypto-pubkey-types-0.4.3 · Crypto.Types.PubKey.RSA
  • Read PublicKeyDefined in crypto-pubkey-types-0.4.3 · Crypto.Types.PubKey.RSA
  • Show PublicKeyDefined in crypto-pubkey-types-0.4.3 · Crypto.Types.PubKey.RSA
  • ASN1Object PublicKeyDefined in crypto-pubkey-types-0.4.3 · Crypto.Types.PubKey.RSA
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, ASN1Object
  • Eq PrivateKeyDefined in crypto-pubkey-types-0.4.3 · Crypto.Types.PubKey.RSA
  • Data PrivateKeyDefined in crypto-pubkey-types-0.4.3 · Crypto.Types.PubKey.RSA
  • Read PrivateKeyDefined in crypto-pubkey-types-0.4.3 · Crypto.Types.PubKey.RSA
  • Show PrivateKeyDefined in crypto-pubkey-types-0.4.3 · Crypto.Types.PubKey.RSA
  • ASN1Object PrivateKeyDefined in crypto-pubkey-types-0.4.3 · Crypto.Types.PubKey.RSA
newtypenewtype KeyPair
#

Represent RSA KeyPair

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

Constructors

Instances5Eq, Data, Read, Show, ASN1Object
  • Eq KeyPairDefined in crypto-pubkey-types-0.4.3 · Crypto.Types.PubKey.RSA
  • Data KeyPairDefined in crypto-pubkey-types-0.4.3 · Crypto.Types.PubKey.RSA
  • Read KeyPairDefined in crypto-pubkey-types-0.4.3 · Crypto.Types.PubKey.RSA
  • Show KeyPairDefined in crypto-pubkey-types-0.4.3 · Crypto.Types.PubKey.RSA
  • ASN1Object KeyPairDefined in crypto-pubkey-types-0.4.3 · Crypto.Types.PubKey.RSA