keystore-0.6.2.0: Managing stores of secret things

Safe HaskellNone

Data.KeyStore.Types

Description

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

Documentation

data REP__PublicKey Source

Constructors

REP__PublicKey 

Fields

_puk_size :: !Int
 
_puk_n :: !Integer
 
_puk_e :: !Integer
 

data REP__PrivateKey Source

Constructors

REP__PrivateKey 

Fields

_prk_pub :: !PublicKey
 
_prk_d :: !Integer
 
_prk_p :: !Integer
 
_prk_q :: !Integer
 
_prk_dP :: !Integer
 
_prk_dQ :: !Integer
 
_prk_qinv :: !Integer
 

data Cipher Source

Instances

Bounded Cipher 
Enum Cipher 
Eq Cipher 
Ord Cipher 
Show Cipher 
Typeable Cipher 
ToJSON Cipher 
FromJSONWithErrs Cipher 

data HashPRF Source

Instances

Bounded HashPRF 
Enum HashPRF 
Eq HashPRF 
Ord HashPRF 
Show HashPRF 
Typeable HashPRF 
ToJSON HashPRF 
FromJSONWithErrs HashPRF 

newtype FragmentID Source

Constructors

FragmentID 

Fields

_FragmentID :: Text
 

newtype Iterations Source

Constructors

Iterations 

Fields

_Iterations :: Int
 

newtype Octets Source

Constructors

Octets 

Fields

_Octets :: Int
 

Instances

newtype REP__Name Source

Constructors

REP__Name 

Fields

_REP__Name :: Text
 

newtype Identity Source

Constructors

Identity 

Fields

_Identity :: Text
 

Instances

newtype SettingID Source

Constructors

SettingID 

Fields

_SettingID :: Text
 

newtype Comment Source

Constructors

Comment 

Fields

_Comment :: Text
 

Instances

newtype EnvVar Source

Constructors

EnvVar 

Fields

_EnvVar :: Text
 

Instances

Eq EnvVar 
Ord EnvVar 
Show EnvVar 
Typeable EnvVar 
IsString EnvVar 
ToJSON EnvVar 
FromJSONWithErrs EnvVar 

newtype ClearText Source

Constructors

ClearText 

Fields

_ClearText :: Binary
 

newtype Salt Source

Constructors

Salt 

Fields

_Salt :: Binary
 

Instances

Eq Salt 
Ord Salt 
Show Salt 
Typeable Salt 
ToJSON Salt 
FromJSONWithErrs Salt 

newtype IV Source

Constructors

IV 

Fields

_IV :: Binary
 

Instances

Eq IV 
Ord IV 
Show IV 
Typeable IV 
ToJSON IV 
FromJSONWithErrs IV 

newtype HashData Source

Constructors

HashData 

Fields

_HashData :: Binary
 

data Hash Source

Instances

Eq Hash 
Show Hash 
Typeable Hash 
ToJSON Hash 
FromJSONWithErrs Hash 

newtype AESKey Source

Constructors

AESKey 

Fields

_AESKey :: Binary
 

Instances

newtype Void Source

Constructors

Void 

Fields

_Void :: Int
 

Instances

Eq Void 
Ord Void 
Show Void 
Typeable Void 
ToJSON Void 
FromJSONWithErrs Void 

data Pattern Source

Keystore session context, created at the start of a session and passed to the keystore access functions.

Constructors

Pattern 

Fields

_pat_string :: String
 
_pat_regex :: Regex
 

Instances

pattern :: String -> PatternSource

type KeyMap = Map Name KeySource

data Dirctn Source

Constructors

Encrypting 
Decrypting 

Instances

Show Dirctn 

map_from_list :: Ord a => String -> (c -> [b]) -> (b -> a) -> (a -> Text) -> c -> ParserWithErrs (Map a b)Source

data PublicKey

Represent a RSA public key

Constructors

PublicKey 

Fields

public_size :: Int

size of key in bytes

public_n :: Integer

public p*q

public_e :: Integer

public exponant e

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.

Constructors

PrivateKey 

Fields

private_pub :: PublicKey

public part of a private key (size, n and e)

private_d :: Integer

private exponant d

private_p :: Integer

p prime number

private_q :: Integer

q prime number

private_dP :: Integer

d mod (p-1)

private_dQ :: Integer

d mod (q-1)

private_qinv :: Integer

q^(-1) mod p