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

PortabilityExcellent
StabilityStable
MaintainerVincent Hanquez <vincent@snarc.org>
Safe HaskellSafe-Inferred

Crypto.Types.PubKey.DSA

Description

 

Synopsis

Documentation

type Params = (Integer, Integer, Integer)Source

Represent DSA parameters namely P, G, and Q.

type Signature = (Integer, Integer)Source

Represent a DSA signature namely R and S.

data PublicKey Source

Represent a DSA public key.

Constructors

PublicKey 

Fields

public_params :: Params

DSA parameters

public_y :: Integer

DSA public Y

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 :: Integer

DSA private X