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

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

Crypto.Types.PubKey.DSA

Description

 

Synopsis

Documentation

data Params

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

type Signature = (Integer, Integer)

Represent a DSA signature namely R and S.

type PublicNumber = Integer

DSA Public Number, usually embedded in DSA Public Key

data PublicKey

Represent a DSA public key.

Constructors

PublicKey 

Fields

public_params :: Params

DSA parameters

public_y :: PublicNumber

DSA public Y

type PrivateNumber = Integer

DSA Private Number, usually embedded in DSA Private Key

data PrivateKey

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 -> PublicKey

Public key of a DSA Key pair

toPrivateKey :: KeyPair -> PrivateKey

Private key of a DSA Key pair