| Safe Haskell | None |
|---|
Crypto.JOSE.JWA.JWK
Contents
Description
Cryptographic Algorithms for Keys.
- data EC = EC
- data RSA = RSA
- data Oct = Oct
- data ECKeyParameters
- = ECPrivateKeyParameters { }
- | ECPublicKeyParameters {
- ecCrv :: Crv
- ecX :: SizedBase64Integer
- ecY :: SizedBase64Integer
- data RSAPrivateKeyOthElem = RSAPrivateKeyOthElem {}
- data RSAPrivateKeyOptionalParameters = RSAPrivateKeyOptionalParameters {}
- data RSAKeyParameters
- genRSAParams :: Int -> IO (RSAKeyParameters, RSAKeyParameters)
- genRSA :: Int -> IO (KeyMaterial, KeyMaterial)
- newtype OctKeyParameters = OctKeyParameters Base64Octets
- data KeyMaterial
"kty" (Key Type) Parameter Values
Elliptic Curve key type (Recommeded+)
Constructors
| EC |
RSA key type (Required)
Constructors
| RSA |
Octet sequence (symmetric key) key type (Required)
Constructors
| Oct |
Parameters for Elliptic Curve Keys
data ECKeyParameters Source
Parameters for Elliptic Curve Keys
Constructors
| ECPrivateKeyParameters | |
Fields | |
| ECPublicKeyParameters | |
Fields
| |
Parameters for RSA Keys
data RSAPrivateKeyOthElem Source
"oth" (Other Primes Info) Parameter
Constructors
| RSAPrivateKeyOthElem | |
Fields
| |
data RSAPrivateKeyOptionalParameters Source
Optional parameters for RSA private keys
Constructors
| RSAPrivateKeyOptionalParameters | |
Fields
| |
data RSAKeyParameters Source
Parameters for RSA Keys
Constructors
| RSAPrivateKeyParameters | |
| RSAPublicKeyParameters | |
Fields | |
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
newtype OctKeyParameters Source
Symmetric key parameters data.
Constructors
| OctKeyParameters Base64Octets |
data KeyMaterial Source
Key material sum type.