jose-0.1.26.0: Javascript Object Signing and Encryption

Safe HaskellNone

Crypto.JOSE.JWK

Description

A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. This module also defines a JSON Web Key Set (JWK Set) JSON data structure for representing a set of JWKs.

Synopsis

Documentation

data JWK Source

JWK §3. JSON Web Key (JWK) Format

Constructors

JWK 

materialJWK :: KeyMaterial -> JWKSource

Construct a minimal JWK from key material.

genRSA :: Int -> IO (JWK, JWK)Source

Generate a (public, private) RSA keypair.

data JWKSet Source

JWK §4. JSON Web Key Set (JWK Set) Format

Constructors

JWKSet [JWK] 

Instances