crypto-pubkey-types-0.4.3: Generic cryptography Public keys algorithm types

LicenseBSD-style
MaintainerVincent Hanquez <vincent@snarc.org>
StabilityStable
PortabilityExcellent
Safe HaskellNone
LanguageHaskell98

Crypto.Types.PubKey.DH

Description

 

Synopsis

Documentation

data Params #

Represent Diffie Hellman parameters namely P (prime), and G (generator).

Constructors

Params 

Instances

Eq Params # 

Methods

(==) :: Params -> Params -> Bool #

(/=) :: Params -> Params -> Bool #

Data Params # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Params -> c Params #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Params #

toConstr :: Params -> Constr #

dataTypeOf :: Params -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c Params) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Params) #

gmapT :: (forall b. Data b => b -> b) -> Params -> Params #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Params -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Params -> r #

gmapQ :: (forall d. Data d => d -> u) -> Params -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Params -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Params -> m Params #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Params -> m Params #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Params -> m Params #

Read Params # 
Show Params # 
ASN1Object Params # 

newtype PublicNumber #

Represent Diffie Hellman public number Y.

Constructors

PublicNumber Integer 

Instances

Enum PublicNumber # 
Eq PublicNumber # 
Num PublicNumber # 
Ord PublicNumber # 
Read PublicNumber # 
Real PublicNumber # 
Show PublicNumber # 

newtype PrivateNumber #

Represent Diffie Hellman private number X.

Constructors

PrivateNumber Integer 

Instances

Enum PrivateNumber # 
Eq PrivateNumber # 
Num PrivateNumber # 
Ord PrivateNumber # 
Read PrivateNumber # 
Real PrivateNumber # 
Show PrivateNumber # 

newtype SharedKey #

Represent Diffie Hellman shared secret.

Constructors

SharedKey Integer