jose-0.1.26.0: Javascript Object Signing and Encryption

Safe HaskellNone

Crypto.JOSE.JWA.JWK

Contents

Description

Cryptographic Algorithms for Keys.

Synopsis

"kty" (Key Type) Parameter Values

data EC Source

Elliptic Curve key type (Recommeded+)

Constructors

EC 

Instances

data RSA Source

RSA key type (Required)

Constructors

RSA 

data Oct Source

Octet sequence (symmetric key) key type (Required)

Constructors

Oct 

Parameters for Elliptic Curve Keys

Parameters for RSA Keys

genRSAParams :: Int -> IO (RSAKeyParameters, RSAKeyParameters)Source

Generate RSA public and private key parameters.

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

Generate RSA public and private key material.

Parameters for Symmetric Keys