HORIZON HASKELLDocslts/ghc-10.0.x8174fa42026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

  • Packagejose-0.10.0.1
  • Exports49
  • LanguageHaskell2010
  • LicenceApache-2.0
  • SourceJWK.hs

Type classes

1 declaration
classclass AsPublicKey k where
#

Keys that may have have public material

Methods

Instances5AsPublicKey

Parameters for Elliptic Curve Keys

11 declarations
datadata Crv
#

"crv" (Curve) Parameter

Instances5Eq, Ord, Show, FromJSON, ToJSON
  • Eq CrvDefined in jose-0.10.0.1 · Crypto.JOSE.JWA.JWK
  • Ord CrvDefined in jose-0.10.0.1 · Crypto.JOSE.JWA.JWK
  • Show CrvDefined in jose-0.10.0.1 · Crypto.JOSE.JWA.JWK
  • FromJSON CrvDefined in jose-0.10.0.1 · Crypto.JOSE.JWA.JWK
  • ToJSON CrvDefined in jose-0.10.0.1 · Crypto.JOSE.JWA.JWK

Parameters for RSA Keys

11 declarations
Instances4Eq, Show, FromJSON, ToJSON
Instances4Eq, Show, FromJSON, ToJSON
datadata RSAKeyParameters
#

Parameters for RSA Keys

Constructors

Instances5Eq, Show, FromJSON, ToJSON, AsPublicKey

Parameters for Symmetric Keys

2 declarations

Parameters for CFRG EC keys (RFC 8037)

3 declarations
datadata OKPKeyParameters
#
Instances5Eq, Show, FromJSON, ToJSON, AsPublicKey

Key generation

3 declarations
datadata KeyMaterial
#
Instances5Eq, Show, FromJSON, ToJSON, AsPublicKey

Signing and verification

18 declarations

Create a new DRG from 5 Word64.

This is a convenient interface to create deterministic interface for quickcheck style testing.

It can also be used in other contexts provided the input has been properly randomly generated.

Note that the Arbitrary instance provided by QuickCheck for Word64 does not have a uniform distribution. It is often better to use instead arbitraryBoundedRandom.

System endianness impacts how the tuple is interpreted and therefore changes the resulting DRG.

newtypenewtype ChaChaDRG
#

ChaCha Deterministic Random Generator

Instances2NFData, DRG
  • NFData ChaChaDRGDefined in cryptonite-0.30 · Crypto.Random.ChaChaDRG
  • DRG ChaChaDRGDefined in cryptonite-0.30 · Crypto.Random.ChaChaDRG
datadata SystemDRG
#

A referentially transparent System representation of the random evaluated out of the system.

Holding onto a specific DRG means that all the already evaluated bytes will be consistently replayed.

There's no need to reseed this DRG, as only pure entropy is represented here.

Instances1DRG
  • DRG SystemDRGDefined in cryptonite-0.30 · Crypto.Random.SystemDRG
classclass DRG gen where
#

A Deterministic Random Generator (DRG) class

Methods

Instances2DRG
  • DRG ChaChaDRGDefined in cryptonite-0.30 · Crypto.Random.ChaChaDRG
  • DRG SystemDRGDefined in cryptonite-0.30 · Crypto.Random.SystemDRG
newtypenewtype MonadPseudoRandom gen a
#

A simple Monad class very similar to a State Monad with the state being a DRG.

Instances4Monad, Functor, Applicative, MonadRandom