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

PortabilityExcellent
StabilityStable
MaintainerVincent Hanquez <vincent@snarc.org>
Safe HaskellNone

Crypto.Types.PubKey.DSA

Description

 

Synopsis

Documentation

data Params Source

Represent DSA parameters namely P, G, and Q.

Constructors

Params 

Fields

params_p :: Integer

DSA p

params_g :: Integer

DSA g

params_q :: Integer

DSA q

data Signature Source

Represent a DSA signature namely R and S.

Constructors

Signature 

Fields

sign_r :: Integer

DSA r

sign_s :: Integer

DSA s

type PublicNumber = IntegerSource

DSA Public Number, usually embedded in DSA Public Key

data PublicKey Source

Represent a DSA public key.

Constructors

PublicKey 

Fields

public_params :: Params

DSA parameters

public_y :: PublicNumber

DSA public Y

type PrivateNumber = IntegerSource

DSA Private Number, usually embedded in DSA Private Key

data PrivateKey Source

Represent a DSA private key.

Only x need to be secret. the DSA parameters are publicly shared with the other side.

Constructors

PrivateKey 

Fields

private_params :: Params

DSA parameters

private_x :: PrivateNumber

DSA private X

toPublicKey :: KeyPair -> PublicKeySource

Public key of a DSA Key pair

toPrivateKey :: KeyPair -> PrivateKeySource

Private key of a DSA Key pair