Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
JSON Web Encryption data types specified under JSON Web Algorithms.
Synopsis
- data Enc
- data AlgWithParams
- = RSA1_5
- | RSA_OAEP
- | RSA_OAEP_256
- | A128KW
- | A192KW
- | A256KW
- | Dir
- | ECDH_ES ECDHParameters
- | ECDH_ES_A128KW ECDHParameters
- | ECDH_ES_A192KW ECDHParameters
- | ECDH_ES_A256KW ECDHParameters
- | A128GCMKW AESGCMParameters
- | A192GCMKW AESGCMParameters
- | A256GCMKW AESGCMParameters
- | PBES2_HS256_A128KW PBES2Parameters
- | PBES2_HS384_A192KW PBES2Parameters
- | PBES2_HS512_A256KW PBES2Parameters
- data AESGCMParameters = AESGCMParameters Base64Octets Base64Octets
- data ECDHParameters = ECDHParameters JWK (Maybe Base64Octets) (Maybe Base64Octets)
- data PBES2Parameters = PBES2Parameters Base64Octets Int
Documentation
RFC 7518 §5 Cryptographic Algorithms for Content Encryption
data AlgWithParams Source #
RFC 7518 §4. Cryptographic Algorithms for Key Management
Instances
FromJSON AlgWithParams Source # | |
Defined in Crypto.JOSE.JWA.JWE parseJSON :: Value -> Parser AlgWithParams # parseJSONList :: Value -> Parser [AlgWithParams] # | |
ToJSON AlgWithParams Source # | |
Defined in Crypto.JOSE.JWA.JWE toJSON :: AlgWithParams -> Value # toEncoding :: AlgWithParams -> Encoding # toJSONList :: [AlgWithParams] -> Value # toEncodingList :: [AlgWithParams] -> Encoding # | |
Show AlgWithParams Source # | |
Defined in Crypto.JOSE.JWA.JWE showsPrec :: Int -> AlgWithParams -> ShowS # show :: AlgWithParams -> String # showList :: [AlgWithParams] -> ShowS # | |
Eq AlgWithParams Source # | |
Defined in Crypto.JOSE.JWA.JWE (==) :: AlgWithParams -> AlgWithParams -> Bool # (/=) :: AlgWithParams -> AlgWithParams -> Bool # |
data AESGCMParameters Source #
RFC 7518 §4.7.1. Header Parameters Used for AES GCM Key Encryption
Instances
FromJSON AESGCMParameters Source # | |
Defined in Crypto.JOSE.JWA.JWE parseJSON :: Value -> Parser AESGCMParameters # parseJSONList :: Value -> Parser [AESGCMParameters] # | |
ToJSON AESGCMParameters Source # | |
Defined in Crypto.JOSE.JWA.JWE toJSON :: AESGCMParameters -> Value # toEncoding :: AESGCMParameters -> Encoding # toJSONList :: [AESGCMParameters] -> Value # toEncodingList :: [AESGCMParameters] -> Encoding # | |
Show AESGCMParameters Source # | |
Defined in Crypto.JOSE.JWA.JWE showsPrec :: Int -> AESGCMParameters -> ShowS # show :: AESGCMParameters -> String # showList :: [AESGCMParameters] -> ShowS # | |
Eq AESGCMParameters Source # | |
Defined in Crypto.JOSE.JWA.JWE (==) :: AESGCMParameters -> AESGCMParameters -> Bool # (/=) :: AESGCMParameters -> AESGCMParameters -> Bool # |
data ECDHParameters Source #
RFC 7518 §4.6.1. Header Parameters Used for ECDH Key Agreement
Instances
FromJSON ECDHParameters Source # | |
Defined in Crypto.JOSE.JWA.JWE parseJSON :: Value -> Parser ECDHParameters # parseJSONList :: Value -> Parser [ECDHParameters] # | |
ToJSON ECDHParameters Source # | |
Defined in Crypto.JOSE.JWA.JWE toJSON :: ECDHParameters -> Value # toEncoding :: ECDHParameters -> Encoding # toJSONList :: [ECDHParameters] -> Value # toEncodingList :: [ECDHParameters] -> Encoding # | |
Show ECDHParameters Source # | |
Defined in Crypto.JOSE.JWA.JWE showsPrec :: Int -> ECDHParameters -> ShowS # show :: ECDHParameters -> String # showList :: [ECDHParameters] -> ShowS # | |
Eq ECDHParameters Source # | |
Defined in Crypto.JOSE.JWA.JWE (==) :: ECDHParameters -> ECDHParameters -> Bool # (/=) :: ECDHParameters -> ECDHParameters -> Bool # |
data PBES2Parameters Source #
RFC 7518 §4.8.1. Header Parameters Used for PBES2 Key Encryption
Instances
FromJSON PBES2Parameters Source # | |
Defined in Crypto.JOSE.JWA.JWE parseJSON :: Value -> Parser PBES2Parameters # parseJSONList :: Value -> Parser [PBES2Parameters] # | |
ToJSON PBES2Parameters Source # | |
Defined in Crypto.JOSE.JWA.JWE toJSON :: PBES2Parameters -> Value # toEncoding :: PBES2Parameters -> Encoding # toJSONList :: [PBES2Parameters] -> Value # toEncodingList :: [PBES2Parameters] -> Encoding # | |
Show PBES2Parameters Source # | |
Defined in Crypto.JOSE.JWA.JWE showsPrec :: Int -> PBES2Parameters -> ShowS # show :: PBES2Parameters -> String # showList :: [PBES2Parameters] -> ShowS # | |
Eq PBES2Parameters Source # | |
Defined in Crypto.JOSE.JWA.JWE (==) :: PBES2Parameters -> PBES2Parameters -> Bool # (/=) :: PBES2Parameters -> PBES2Parameters -> Bool # |