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

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

Type classes

1 declaration

Parameters for Elliptic Curve Keys

11 declarations
datadata Crv
#

"crv" (Curve) Parameter

Instances5Eq, Ord, Show, FromJSON, ToJSON
  • Eq CrvDefined in jose-0.11 · Crypto.JOSE.JWA.JWK
  • Ord CrvDefined in jose-0.11 · Crypto.JOSE.JWA.JWK
  • Show CrvDefined in jose-0.11 · Crypto.JOSE.JWA.JWK
  • FromJSON CrvDefined in jose-0.11 · Crypto.JOSE.JWA.JWK
  • ToJSON CrvDefined in jose-0.11 · 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
newtypenewtype ChaChaDRG
#

ChaCha Deterministic Random Generator

Instances2NFData, DRG
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 crypton-1.0.4 · Crypto.Random.SystemDRG
classclass DRG gen where
#

A Deterministic Random Generator (DRG) class

Methods

Instances3DRG
  • DRG ChaChaDRGDefined in crypton-1.0.4 · Crypto.Random.ChaChaDRG
  • DRG SystemDRGDefined in crypton-1.0.4 · Crypto.Random.SystemDRG
  • HashAlgorithm hash => DRG (HmacDRG hash)Defined in crypton-1.0.4 · Crypto.Random.HmacDRG
newtypenewtype MonadPseudoRandom gen a
#

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

Instances4Monad, Functor, Applicative, MonadRandom

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.