Safe Haskell | None |
---|---|
Language | Haskell2010 |
The KeyStore and Associated Types
Note that most of these types and functions were generated by the api-tools (Data.Api.Tools) from the schema in Data.KeyStore.Types.Schema, marked down in https://github.com/cdornan/keystore/blob/master/schema.md.
Synopsis
- data Dirctn
- newtype Settings = Settings {}
- data Pattern = Pattern {
- _pat_string :: String
- _pat_regex :: Regex
- newtype Void = Void {}
- newtype SignaturePacket = SignaturePacket {}
- newtype EncryptionPacket = EncryptionPacket {}
- newtype RSASignature = RSASignature {}
- newtype RSASecretBytes = RSASecretBytes {}
- newtype RSAEncryptedKey = RSAEncryptedKey {}
- newtype SecretData = SecretData {}
- newtype AESKey = AESKey {}
- newtype HashData = HashData {}
- newtype IV = IV {}
- newtype Salt = Salt {}
- newtype ClearText = ClearText {
- _ClearText :: Binary
- newtype EnvVar = EnvVar {}
- newtype Comment = Comment {}
- newtype TriggerID = TriggerID {
- _TriggerID :: Text
- newtype SettingID = SettingID {
- _SettingID :: Text
- newtype Identity = Identity {}
- newtype REP__Name = REP__Name {
- _REP__Name :: Text
- newtype Octets = Octets {}
- newtype Iterations = Iterations {
- _Iterations :: Int
- newtype REP__Pattern = REP__Pattern {}
- newtype FragmentID = FragmentID {
- _FragmentID :: Text
- data EncryptionKey
- data HashPRF
- data Cipher
- data REP__PrivateKey = REP__PrivateKey {}
- data REP__PublicKey = REP__PublicKey {}
- data AESSecretData = AESSecretData {
- _asd_iv :: !IV
- _asd_secret_data :: !SecretData
- data RSASecretData = RSASecretData {}
- data EncrypedCopyData
- data REP__Safeguard = REP__Safeguard {}
- data EncrypedCopy = EncrypedCopy {
- _ec_safeguard :: !Safeguard
- _ec_cipher :: !Cipher
- _ec_prf :: !HashPRF
- _ec_iterations :: !Iterations
- _ec_salt :: !Salt
- _ec_secret_data :: !EncrypedCopyData
- data HashDescription = HashDescription {}
- data Hash = Hash {}
- data REP__Settings = REP__Settings {
- _stgs_json :: !Value
- data Trigger = Trigger {
- _trg_id :: !TriggerID
- _trg_pattern :: !Pattern
- _trg_settings :: !Settings
- data EncrypedCopyMap_ = EncrypedCopyMap_ {
- _z_ecm_map :: ![EncrypedCopy]
- data Key_ = Key_ {
- _z_key_name :: !Name
- _z_key_comment :: !Comment
- _z_key_identity :: !Identity
- _z_key_is_binary :: !Bool
- _z_key_env_var :: !(Maybe EnvVar)
- _z_key_hash :: !(Maybe Hash)
- _z_key_public :: !(Maybe PublicKey)
- _z_key_secret_copies :: !EncrypedCopyMap_
- _z_key_clear_text :: !(Maybe ClearText)
- _z_key_clear_private :: !(Maybe PrivateKey)
- _z_key_created_at :: !UTC
- data NameKeyAssoc_ = NameKeyAssoc_ {
- _z_nka_name :: !Name
- _z_nka_key :: !Key_
- data KeyMap_ = KeyMap_ {
- _z_kmp_map :: ![NameKeyAssoc_]
- data TriggerMap_ = TriggerMap_ {
- _z_tmp_map :: ![Trigger]
- data Configuration_ = Configuration_ {}
- data KeyStore_ = KeyStore_ {}
- pattern :: String -> Pattern
- inj_pattern :: REP__Pattern -> ParserWithErrs Pattern
- prj_pattern :: Pattern -> REP__Pattern
- inj_settings :: REP__Settings -> ParserWithErrs Settings
- prj_settings :: Settings -> REP__Settings
- defaultSettings :: Settings
- mappendSettings :: Settings -> Settings -> Settings
- checkSettingsCollisions :: Settings -> [SettingID]
- marker :: Value
- inj_safeguard :: REP__Safeguard -> ParserWithErrs Safeguard
- prj_safeguard :: Safeguard -> REP__Safeguard
- inj_name :: REP__Name -> ParserWithErrs Name
- prj_name :: Name -> REP__Name
- inj_PublicKey :: REP__PublicKey -> ParserWithErrs PublicKey
- prj_PublicKey :: PublicKey -> REP__PublicKey
- inj_PrivateKey :: REP__PrivateKey -> ParserWithErrs PrivateKey
- prj_PrivateKey :: PrivateKey -> REP__PrivateKey
- e2p :: E a -> ParserWithErrs a
- pbkdf :: HashPRF -> ClearText -> Salt -> Iterations -> Octets -> (ByteString -> a) -> a
- keyWidth :: Cipher -> Octets
- void_ :: Void
- map_from_list :: Ord a => String -> (c -> [b]) -> (b -> a) -> (a -> Text) -> c -> ParserWithErrs (Map a b)
- type EncrypedCopyMap = Map Safeguard EncrypedCopy
- data Key = Key {
- _key_name :: Name
- _key_comment :: Comment
- _key_identity :: Identity
- _key_is_binary :: Bool
- _key_env_var :: Maybe EnvVar
- _key_hash :: Maybe Hash
- _key_public :: Maybe PublicKey
- _key_secret_copies :: EncrypedCopyMap
- _key_clear_text :: Maybe ClearText
- _key_clear_private :: Maybe PrivateKey
- _key_created_at :: UTCTime
- type KeyMap = Map Name Key
- type TriggerMap = Map TriggerID Trigger
- data Configuration = Configuration {}
- data KeyStore = KeyStore {}
- _text_Cipher :: Cipher -> Text
- _map_Cipher :: Map Text Cipher
- _text_HashPRF :: HashPRF -> Text
- _map_HashPRF :: Map Text HashPRF
- z_ks_config :: Lens' KeyStore_ Configuration_
- z_ks_keymap :: Lens' KeyStore_ KeyMap_
- z_cfg_settings :: Lens' Configuration_ Settings
- z_cfg_triggers :: Lens' Configuration_ TriggerMap_
- z_tmp_map :: Iso' TriggerMap_ [Trigger]
- z_kmp_map :: Iso' KeyMap_ [NameKeyAssoc_]
- z_nka_key :: Lens' NameKeyAssoc_ Key_
- z_nka_name :: Lens' NameKeyAssoc_ Name
- z_key_clear_private :: Lens' Key_ (Maybe PrivateKey)
- z_key_clear_text :: Lens' Key_ (Maybe ClearText)
- z_key_comment :: Lens' Key_ Comment
- z_key_created_at :: Lens' Key_ UTC
- z_key_env_var :: Lens' Key_ (Maybe EnvVar)
- z_key_hash :: Lens' Key_ (Maybe Hash)
- z_key_identity :: Lens' Key_ Identity
- z_key_is_binary :: Lens' Key_ Bool
- z_key_name :: Lens' Key_ Name
- z_key_public :: Lens' Key_ (Maybe PublicKey)
- z_key_secret_copies :: Lens' Key_ EncrypedCopyMap_
- z_ecm_map :: Iso' EncrypedCopyMap_ [EncrypedCopy]
- trg_id :: Lens' Trigger TriggerID
- trg_pattern :: Lens' Trigger Pattern
- trg_settings :: Lens' Trigger Settings
- stgs_json :: Iso' REP__Settings Value
- hash_description :: Lens' Hash HashDescription
- hash_hash :: Lens' Hash HashData
- hashd_comment :: Lens' HashDescription Comment
- hashd_iterations :: Lens' HashDescription Iterations
- hashd_prf :: Lens' HashDescription HashPRF
- hashd_salt :: Lens' HashDescription Salt
- hashd_salt_octets :: Lens' HashDescription Octets
- hashd_width_octets :: Lens' HashDescription Octets
- ec_cipher :: Lens' EncrypedCopy Cipher
- ec_iterations :: Lens' EncrypedCopy Iterations
- ec_prf :: Lens' EncrypedCopy HashPRF
- ec_safeguard :: Lens' EncrypedCopy Safeguard
- ec_salt :: Lens' EncrypedCopy Salt
- ec_secret_data :: Lens' EncrypedCopy EncrypedCopyData
- sg_names :: Iso' REP__Safeguard [Name]
- rsd_aes_secret_data :: Lens' RSASecretData AESSecretData
- rsd_encrypted_key :: Lens' RSASecretData RSAEncryptedKey
- asd_iv :: Lens' AESSecretData IV
- asd_secret_data :: Lens' AESSecretData SecretData
- puk_e :: Lens' REP__PublicKey Integer
- puk_n :: Lens' REP__PublicKey Integer
- puk_size :: Lens' REP__PublicKey Int
- prk_d :: Lens' REP__PrivateKey Integer
- prk_dP :: Lens' REP__PrivateKey Integer
- prk_dQ :: Lens' REP__PrivateKey Integer
- prk_p :: Lens' REP__PrivateKey Integer
- prk_pub :: Lens' REP__PrivateKey PublicKey
- prk_q :: Lens' REP__PrivateKey Integer
- prk_qinv :: Lens' REP__PrivateKey Integer
- fragmentID :: Iso' FragmentID Text
- rEP__Pattern :: Iso' REP__Pattern Text
- iterations :: Iso' Iterations Int
- octets :: Iso' Octets Int
- rEP__Name :: Iso' REP__Name Text
- identity :: Iso' Identity Text
- settingID :: Iso' SettingID Text
- triggerID :: Iso' TriggerID Text
- comment :: Iso' Comment Text
- envVar :: Iso' EnvVar Text
- clearText :: Iso' ClearText Binary
- salt :: Iso' Salt Binary
- iV :: Iso' IV Binary
- hashData :: Iso' HashData Binary
- aESKey :: Iso' AESKey Binary
- secretData :: Iso' SecretData Binary
- rSAEncryptedKey :: Iso' RSAEncryptedKey Binary
- rSASecretBytes :: Iso' RSASecretBytes Binary
- rSASignature :: Iso' RSASignature Binary
- encryptionPacket :: Iso' EncryptionPacket Binary
- signaturePacket :: Iso' SignaturePacket Binary
- void :: Iso' Void Int
- toKeyStore_ :: KeyStore -> KeyStore_
- fromKeyStore_ :: KeyStore_ -> KeyStore
- emptyKeyStore :: Configuration -> KeyStore
- toConfiguration_ :: Configuration -> Configuration_
- fromConfiguration_ :: Configuration_ -> Configuration
- defaultConfiguration :: Settings -> Configuration
- toTriggerMap_ :: TriggerMap -> TriggerMap_
- fromTriggerMap_ :: TriggerMap_ -> TriggerMap
- toKeyMap_ :: KeyMap -> KeyMap_
- fromKeyMap_ :: KeyMap_ -> KeyMap
- emptyKeyMap :: KeyMap
- toKey_ :: Key -> Key_
- fromKey_ :: Key_ -> Key
- toEncrypedCopyMap :: EncrypedCopyMap -> EncrypedCopyMap_
- fromEncrypedCopyMap :: EncrypedCopyMap_ -> EncrypedCopyMap
- ks_config :: Lens' KeyStore Configuration
- ks_keymap :: Lens' KeyStore KeyMap
- cfg_settings :: Lens' Configuration Settings
- cfg_triggers :: Lens' Configuration TriggerMap
- key_clear_private :: Lens' Key (Maybe PrivateKey)
- key_clear_text :: Lens' Key (Maybe ClearText)
- key_comment :: Lens' Key Comment
- key_created_at :: Lens' Key UTCTime
- key_env_var :: Lens' Key (Maybe EnvVar)
- key_hash :: Lens' Key (Maybe Hash)
- key_identity :: Lens' Key Identity
- key_is_binary :: Lens' Key Bool
- key_name :: Lens' Key Name
- key_public :: Lens' Key (Maybe PublicKey)
- key_secret_copies :: Lens' Key EncrypedCopyMap
- module Data.KeyStore.Types.NameAndSafeguard
- module Data.KeyStore.Types.E
- module Data.KeyStore.Types.UTC
- data PublicKey = PublicKey {}
- data PrivateKey = PrivateKey {}
Documentation
Keystore session context, created at the start of a session and passed to the keystore access functions.
Pattern | |
|
newtype SignaturePacket Source #
Instances
newtype EncryptionPacket Source #
Instances
newtype RSASignature Source #
Instances
newtype RSASecretBytes Source #
Instances
newtype RSAEncryptedKey Source #
Instances
newtype SecretData Source #
Instances
Instances
Eq EnvVar Source # | |
Ord EnvVar Source # | |
Show EnvVar Source # | |
IsString EnvVar Source # | |
Defined in Data.KeyStore.Types fromString :: String -> EnvVar # | |
ToJSON EnvVar Source # | |
Defined in Data.KeyStore.Types | |
FromJSON EnvVar Source # | |
FromJSONWithErrs EnvVar Source # | |
Defined in Data.KeyStore.Types |
Instances
Eq Comment Source # | |
Ord Comment Source # | |
Show Comment Source # | |
IsString Comment Source # | |
Defined in Data.KeyStore.Types fromString :: String -> Comment # | |
ToJSON Comment Source # | |
Defined in Data.KeyStore.Types | |
FromJSON Comment Source # | |
FromJSONWithErrs Comment Source # | |
Defined in Data.KeyStore.Types |
Instances
Eq TriggerID Source # | |
Ord TriggerID Source # | |
Defined in Data.KeyStore.Types | |
Show TriggerID Source # | |
IsString TriggerID Source # | |
Defined in Data.KeyStore.Types fromString :: String -> TriggerID # | |
ToJSON TriggerID Source # | |
Defined in Data.KeyStore.Types | |
FromJSON TriggerID Source # | |
FromJSONWithErrs TriggerID Source # | |
Defined in Data.KeyStore.Types |
Instances
Eq SettingID Source # | |
Ord SettingID Source # | |
Defined in Data.KeyStore.Types | |
Show SettingID Source # | |
IsString SettingID Source # | |
Defined in Data.KeyStore.Types fromString :: String -> SettingID # | |
ToJSON SettingID Source # | |
Defined in Data.KeyStore.Types | |
FromJSON SettingID Source # | |
FromJSONWithErrs SettingID Source # | |
Defined in Data.KeyStore.Types |
Instances
Eq Identity Source # | |
Ord Identity Source # | |
Defined in Data.KeyStore.Types | |
Show Identity Source # | |
IsString Identity Source # | |
Defined in Data.KeyStore.Types fromString :: String -> Identity # | |
ToJSON Identity Source # | |
Defined in Data.KeyStore.Types | |
FromJSON Identity Source # | |
FromJSONWithErrs Identity Source # | |
Defined in Data.KeyStore.Types |
Instances
Eq REP__Name Source # | |
Ord REP__Name Source # | |
Defined in Data.KeyStore.Types | |
Show REP__Name Source # | |
IsString REP__Name Source # | |
Defined in Data.KeyStore.Types fromString :: String -> REP__Name # | |
ToJSON REP__Name Source # | |
Defined in Data.KeyStore.Types | |
FromJSON REP__Name Source # | |
FromJSONWithErrs REP__Name Source # | |
Defined in Data.KeyStore.Types |
newtype Iterations Source #
Instances
newtype REP__Pattern Source #
Instances
newtype FragmentID Source #
Instances
data EncryptionKey Source #
Instances
Eq EncryptionKey Source # | |
Defined in Data.KeyStore.Types (==) :: EncryptionKey -> EncryptionKey -> Bool # (/=) :: EncryptionKey -> EncryptionKey -> Bool # | |
Show EncryptionKey Source # | |
Defined in Data.KeyStore.Types showsPrec :: Int -> EncryptionKey -> ShowS # show :: EncryptionKey -> String # showList :: [EncryptionKey] -> ShowS # | |
ToJSON EncryptionKey Source # | |
Defined in Data.KeyStore.Types toJSON :: EncryptionKey -> Value # toEncoding :: EncryptionKey -> Encoding # toJSONList :: [EncryptionKey] -> Value # toEncodingList :: [EncryptionKey] -> Encoding # | |
FromJSON EncryptionKey Source # | |
Defined in Data.KeyStore.Types parseJSON :: Value -> Parser EncryptionKey # parseJSONList :: Value -> Parser [EncryptionKey] # | |
FromJSONWithErrs EncryptionKey Source # | |
Defined in Data.KeyStore.Types |
Instances
Bounded HashPRF Source # | |
Enum HashPRF Source # | |
Eq HashPRF Source # | |
Ord HashPRF Source # | |
Show HashPRF Source # | |
ToJSON HashPRF Source # | |
Defined in Data.KeyStore.Types | |
FromJSON HashPRF Source # | |
FromJSONWithErrs HashPRF Source # | |
Defined in Data.KeyStore.Types |
data REP__PrivateKey Source #
Instances
Eq REP__PrivateKey Source # | |
Defined in Data.KeyStore.Types (==) :: REP__PrivateKey -> REP__PrivateKey -> Bool # (/=) :: REP__PrivateKey -> REP__PrivateKey -> Bool # | |
Show REP__PrivateKey Source # | |
Defined in Data.KeyStore.Types showsPrec :: Int -> REP__PrivateKey -> ShowS # show :: REP__PrivateKey -> String # showList :: [REP__PrivateKey] -> ShowS # | |
ToJSON REP__PrivateKey Source # | |
Defined in Data.KeyStore.Types toJSON :: REP__PrivateKey -> Value # toEncoding :: REP__PrivateKey -> Encoding # toJSONList :: [REP__PrivateKey] -> Value # toEncodingList :: [REP__PrivateKey] -> Encoding # | |
FromJSON REP__PrivateKey Source # | |
Defined in Data.KeyStore.Types parseJSON :: Value -> Parser REP__PrivateKey # parseJSONList :: Value -> Parser [REP__PrivateKey] # | |
FromJSONWithErrs REP__PrivateKey Source # | |
Defined in Data.KeyStore.Types |
data REP__PublicKey Source #
Instances
Eq REP__PublicKey Source # | |
Defined in Data.KeyStore.Types (==) :: REP__PublicKey -> REP__PublicKey -> Bool # (/=) :: REP__PublicKey -> REP__PublicKey -> Bool # | |
Show REP__PublicKey Source # | |
Defined in Data.KeyStore.Types showsPrec :: Int -> REP__PublicKey -> ShowS # show :: REP__PublicKey -> String # showList :: [REP__PublicKey] -> ShowS # | |
ToJSON REP__PublicKey Source # | |
Defined in Data.KeyStore.Types toJSON :: REP__PublicKey -> Value # toEncoding :: REP__PublicKey -> Encoding # toJSONList :: [REP__PublicKey] -> Value # toEncodingList :: [REP__PublicKey] -> Encoding # | |
FromJSON REP__PublicKey Source # | |
Defined in Data.KeyStore.Types parseJSON :: Value -> Parser REP__PublicKey # parseJSONList :: Value -> Parser [REP__PublicKey] # | |
FromJSONWithErrs REP__PublicKey Source # | |
Defined in Data.KeyStore.Types |
data AESSecretData Source #
AESSecretData | |
|
Instances
Eq AESSecretData Source # | |
Defined in Data.KeyStore.Types (==) :: AESSecretData -> AESSecretData -> Bool # (/=) :: AESSecretData -> AESSecretData -> Bool # | |
Show AESSecretData Source # | |
Defined in Data.KeyStore.Types showsPrec :: Int -> AESSecretData -> ShowS # show :: AESSecretData -> String # showList :: [AESSecretData] -> ShowS # | |
ToJSON AESSecretData Source # | |
Defined in Data.KeyStore.Types toJSON :: AESSecretData -> Value # toEncoding :: AESSecretData -> Encoding # toJSONList :: [AESSecretData] -> Value # toEncodingList :: [AESSecretData] -> Encoding # | |
FromJSON AESSecretData Source # | |
Defined in Data.KeyStore.Types parseJSON :: Value -> Parser AESSecretData # parseJSONList :: Value -> Parser [AESSecretData] # | |
FromJSONWithErrs AESSecretData Source # | |
Defined in Data.KeyStore.Types |
data RSASecretData Source #
Instances
Eq RSASecretData Source # | |
Defined in Data.KeyStore.Types (==) :: RSASecretData -> RSASecretData -> Bool # (/=) :: RSASecretData -> RSASecretData -> Bool # | |
Show RSASecretData Source # | |
Defined in Data.KeyStore.Types showsPrec :: Int -> RSASecretData -> ShowS # show :: RSASecretData -> String # showList :: [RSASecretData] -> ShowS # | |
ToJSON RSASecretData Source # | |
Defined in Data.KeyStore.Types toJSON :: RSASecretData -> Value # toEncoding :: RSASecretData -> Encoding # toJSONList :: [RSASecretData] -> Value # toEncodingList :: [RSASecretData] -> Encoding # | |
FromJSON RSASecretData Source # | |
Defined in Data.KeyStore.Types parseJSON :: Value -> Parser RSASecretData # parseJSONList :: Value -> Parser [RSASecretData] # | |
FromJSONWithErrs RSASecretData Source # | |
Defined in Data.KeyStore.Types |
data EncrypedCopyData Source #
Instances
Eq EncrypedCopyData Source # | |
Defined in Data.KeyStore.Types (==) :: EncrypedCopyData -> EncrypedCopyData -> Bool # (/=) :: EncrypedCopyData -> EncrypedCopyData -> Bool # | |
Show EncrypedCopyData Source # | |
Defined in Data.KeyStore.Types showsPrec :: Int -> EncrypedCopyData -> ShowS # show :: EncrypedCopyData -> String # showList :: [EncrypedCopyData] -> ShowS # | |
ToJSON EncrypedCopyData Source # | |
Defined in Data.KeyStore.Types toJSON :: EncrypedCopyData -> Value # toEncoding :: EncrypedCopyData -> Encoding # toJSONList :: [EncrypedCopyData] -> Value # toEncodingList :: [EncrypedCopyData] -> Encoding # | |
FromJSON EncrypedCopyData Source # | |
Defined in Data.KeyStore.Types parseJSON :: Value -> Parser EncrypedCopyData # parseJSONList :: Value -> Parser [EncrypedCopyData] # | |
FromJSONWithErrs EncrypedCopyData Source # | |
Defined in Data.KeyStore.Types |
data REP__Safeguard Source #
Instances
Eq REP__Safeguard Source # | |
Defined in Data.KeyStore.Types (==) :: REP__Safeguard -> REP__Safeguard -> Bool # (/=) :: REP__Safeguard -> REP__Safeguard -> Bool # | |
Show REP__Safeguard Source # | |
Defined in Data.KeyStore.Types showsPrec :: Int -> REP__Safeguard -> ShowS # show :: REP__Safeguard -> String # showList :: [REP__Safeguard] -> ShowS # | |
ToJSON REP__Safeguard Source # | |
Defined in Data.KeyStore.Types toJSON :: REP__Safeguard -> Value # toEncoding :: REP__Safeguard -> Encoding # toJSONList :: [REP__Safeguard] -> Value # toEncodingList :: [REP__Safeguard] -> Encoding # | |
FromJSON REP__Safeguard Source # | |
Defined in Data.KeyStore.Types parseJSON :: Value -> Parser REP__Safeguard # parseJSONList :: Value -> Parser [REP__Safeguard] # | |
FromJSONWithErrs REP__Safeguard Source # | |
Defined in Data.KeyStore.Types |
data EncrypedCopy Source #
EncrypedCopy | |
|
Instances
Eq EncrypedCopy Source # | |
Defined in Data.KeyStore.Types (==) :: EncrypedCopy -> EncrypedCopy -> Bool # (/=) :: EncrypedCopy -> EncrypedCopy -> Bool # | |
Show EncrypedCopy Source # | |
Defined in Data.KeyStore.Types showsPrec :: Int -> EncrypedCopy -> ShowS # show :: EncrypedCopy -> String # showList :: [EncrypedCopy] -> ShowS # | |
ToJSON EncrypedCopy Source # | |
Defined in Data.KeyStore.Types toJSON :: EncrypedCopy -> Value # toEncoding :: EncrypedCopy -> Encoding # toJSONList :: [EncrypedCopy] -> Value # toEncodingList :: [EncrypedCopy] -> Encoding # | |
FromJSON EncrypedCopy Source # | |
Defined in Data.KeyStore.Types parseJSON :: Value -> Parser EncrypedCopy # parseJSONList :: Value -> Parser [EncrypedCopy] # | |
FromJSONWithErrs EncrypedCopy Source # | |
Defined in Data.KeyStore.Types |
data HashDescription Source #
HashDescription | |
|
Instances
Eq HashDescription Source # | |
Defined in Data.KeyStore.Types (==) :: HashDescription -> HashDescription -> Bool # (/=) :: HashDescription -> HashDescription -> Bool # | |
Show HashDescription Source # | |
Defined in Data.KeyStore.Types showsPrec :: Int -> HashDescription -> ShowS # show :: HashDescription -> String # showList :: [HashDescription] -> ShowS # | |
ToJSON HashDescription Source # | |
Defined in Data.KeyStore.Types toJSON :: HashDescription -> Value # toEncoding :: HashDescription -> Encoding # toJSONList :: [HashDescription] -> Value # toEncodingList :: [HashDescription] -> Encoding # | |
FromJSON HashDescription Source # | |
Defined in Data.KeyStore.Types parseJSON :: Value -> Parser HashDescription # parseJSONList :: Value -> Parser [HashDescription] # | |
FromJSONWithErrs HashDescription Source # | |
Defined in Data.KeyStore.Types |
data REP__Settings Source #
Instances
Eq REP__Settings Source # | |
Defined in Data.KeyStore.Types (==) :: REP__Settings -> REP__Settings -> Bool # (/=) :: REP__Settings -> REP__Settings -> Bool # | |
Show REP__Settings Source # | |
Defined in Data.KeyStore.Types showsPrec :: Int -> REP__Settings -> ShowS # show :: REP__Settings -> String # showList :: [REP__Settings] -> ShowS # | |
ToJSON REP__Settings Source # | |
Defined in Data.KeyStore.Types toJSON :: REP__Settings -> Value # toEncoding :: REP__Settings -> Encoding # toJSONList :: [REP__Settings] -> Value # toEncodingList :: [REP__Settings] -> Encoding # | |
FromJSON REP__Settings Source # | |
Defined in Data.KeyStore.Types parseJSON :: Value -> Parser REP__Settings # parseJSONList :: Value -> Parser [REP__Settings] # | |
FromJSONWithErrs REP__Settings Source # | |
Defined in Data.KeyStore.Types |
Trigger | |
|
data EncrypedCopyMap_ Source #
Instances
Eq EncrypedCopyMap_ Source # | |
Defined in Data.KeyStore.Types (==) :: EncrypedCopyMap_ -> EncrypedCopyMap_ -> Bool # (/=) :: EncrypedCopyMap_ -> EncrypedCopyMap_ -> Bool # | |
Show EncrypedCopyMap_ Source # | |
Defined in Data.KeyStore.Types showsPrec :: Int -> EncrypedCopyMap_ -> ShowS # show :: EncrypedCopyMap_ -> String # showList :: [EncrypedCopyMap_] -> ShowS # | |
ToJSON EncrypedCopyMap_ Source # | |
Defined in Data.KeyStore.Types toJSON :: EncrypedCopyMap_ -> Value # toEncoding :: EncrypedCopyMap_ -> Encoding # toJSONList :: [EncrypedCopyMap_] -> Value # toEncodingList :: [EncrypedCopyMap_] -> Encoding # | |
FromJSON EncrypedCopyMap_ Source # | |
Defined in Data.KeyStore.Types parseJSON :: Value -> Parser EncrypedCopyMap_ # parseJSONList :: Value -> Parser [EncrypedCopyMap_] # | |
FromJSONWithErrs EncrypedCopyMap_ Source # | |
Defined in Data.KeyStore.Types |
Key_ | |
|
data NameKeyAssoc_ Source #
NameKeyAssoc_ | |
|
Instances
Eq NameKeyAssoc_ Source # | |
Defined in Data.KeyStore.Types (==) :: NameKeyAssoc_ -> NameKeyAssoc_ -> Bool # (/=) :: NameKeyAssoc_ -> NameKeyAssoc_ -> Bool # | |
Show NameKeyAssoc_ Source # | |
Defined in Data.KeyStore.Types showsPrec :: Int -> NameKeyAssoc_ -> ShowS # show :: NameKeyAssoc_ -> String # showList :: [NameKeyAssoc_] -> ShowS # | |
ToJSON NameKeyAssoc_ Source # | |
Defined in Data.KeyStore.Types toJSON :: NameKeyAssoc_ -> Value # toEncoding :: NameKeyAssoc_ -> Encoding # toJSONList :: [NameKeyAssoc_] -> Value # toEncodingList :: [NameKeyAssoc_] -> Encoding # | |
FromJSON NameKeyAssoc_ Source # | |
Defined in Data.KeyStore.Types parseJSON :: Value -> Parser NameKeyAssoc_ # parseJSONList :: Value -> Parser [NameKeyAssoc_] # | |
FromJSONWithErrs NameKeyAssoc_ Source # | |
Defined in Data.KeyStore.Types |
KeyMap_ | |
|
data TriggerMap_ Source #
TriggerMap_ | |
|
Instances
Eq TriggerMap_ Source # | |
Defined in Data.KeyStore.Types (==) :: TriggerMap_ -> TriggerMap_ -> Bool # (/=) :: TriggerMap_ -> TriggerMap_ -> Bool # | |
Show TriggerMap_ Source # | |
Defined in Data.KeyStore.Types showsPrec :: Int -> TriggerMap_ -> ShowS # show :: TriggerMap_ -> String # showList :: [TriggerMap_] -> ShowS # | |
ToJSON TriggerMap_ Source # | |
Defined in Data.KeyStore.Types toJSON :: TriggerMap_ -> Value # toEncoding :: TriggerMap_ -> Encoding # toJSONList :: [TriggerMap_] -> Value # toEncodingList :: [TriggerMap_] -> Encoding # | |
FromJSON TriggerMap_ Source # | |
Defined in Data.KeyStore.Types parseJSON :: Value -> Parser TriggerMap_ # parseJSONList :: Value -> Parser [TriggerMap_] # | |
FromJSONWithErrs TriggerMap_ Source # | |
Defined in Data.KeyStore.Types |
data Configuration_ Source #
Instances
Eq Configuration_ Source # | |
Defined in Data.KeyStore.Types (==) :: Configuration_ -> Configuration_ -> Bool # (/=) :: Configuration_ -> Configuration_ -> Bool # | |
Show Configuration_ Source # | |
Defined in Data.KeyStore.Types showsPrec :: Int -> Configuration_ -> ShowS # show :: Configuration_ -> String # showList :: [Configuration_] -> ShowS # | |
ToJSON Configuration_ Source # | |
Defined in Data.KeyStore.Types toJSON :: Configuration_ -> Value # toEncoding :: Configuration_ -> Encoding # toJSONList :: [Configuration_] -> Value # toEncodingList :: [Configuration_] -> Encoding # | |
FromJSON Configuration_ Source # | |
Defined in Data.KeyStore.Types parseJSON :: Value -> Parser Configuration_ # parseJSONList :: Value -> Parser [Configuration_] # | |
FromJSONWithErrs Configuration_ Source # | |
Defined in Data.KeyStore.Types |
prj_pattern :: Pattern -> REP__Pattern Source #
prj_settings :: Settings -> REP__Settings Source #
checkSettingsCollisions :: Settings -> [SettingID] Source #
e2p :: E a -> ParserWithErrs a Source #
pbkdf :: HashPRF -> ClearText -> Salt -> Iterations -> Octets -> (ByteString -> a) -> a Source #
map_from_list :: Ord a => String -> (c -> [b]) -> (b -> a) -> (a -> Text) -> c -> ParserWithErrs (Map a b) Source #
type EncrypedCopyMap = Map Safeguard EncrypedCopy Source #
data Configuration Source #
Instances
Eq Configuration Source # | |
Defined in Data.KeyStore.Types (==) :: Configuration -> Configuration -> Bool # (/=) :: Configuration -> Configuration -> Bool # | |
Show Configuration Source # | |
Defined in Data.KeyStore.Types showsPrec :: Int -> Configuration -> ShowS # show :: Configuration -> String # showList :: [Configuration] -> ShowS # |
_text_Cipher :: Cipher -> Text Source #
_text_HashPRF :: HashPRF -> Text Source #
toKeyStore_ :: KeyStore -> KeyStore_ Source #
fromKeyStore_ :: KeyStore_ -> KeyStore Source #
fromKeyMap_ :: KeyMap_ -> KeyMap Source #
emptyKeyMap :: KeyMap Source #
module Data.KeyStore.Types.E
module Data.KeyStore.Types.UTC
Represent a RSA public key
Instances
Eq PublicKey | |
Data PublicKey | |
Defined in Crypto.Types.PubKey.RSA gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PublicKey -> c PublicKey # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PublicKey # toConstr :: PublicKey -> Constr # dataTypeOf :: PublicKey -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c PublicKey) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PublicKey) # gmapT :: (forall b. Data b => b -> b) -> PublicKey -> PublicKey # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PublicKey -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PublicKey -> r # gmapQ :: (forall d. Data d => d -> u) -> PublicKey -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> PublicKey -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> PublicKey -> m PublicKey # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PublicKey -> m PublicKey # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PublicKey -> m PublicKey # | |
Read PublicKey | |
Show PublicKey | |
ToJSON PublicKey Source # | |
Defined in Data.KeyStore.Types | |
FromJSON PublicKey Source # | |
FromJSONWithErrs PublicKey Source # | |
Defined in Data.KeyStore.Types | |
ASN1Object PublicKey | |
data PrivateKey #
Represent a RSA private key.
Only the pub, d fields are mandatory to fill.
p, q, dP, dQ, qinv are by-product during RSA generation, but are useful to record here to speed up massively the decrypt and sign operation.
implementations can leave optional fields to 0.
PrivateKey | |
|