| License | BSD-style | 
|---|---|
| Maintainer | Vincent Hanquez <vincent@snarc.org> | 
| Stability | Stable | 
| Portability | Excellent | 
| Safe Haskell | None | 
| Language | Haskell98 | 
Crypto.Types.PubKey.DSA
Description
references: https://tools.ietf.org/html/rfc6979
- data Params = Params {}
- data Signature = Signature {}
- type PublicNumber = Integer
- data PublicKey = PublicKey {}
- type PrivateNumber = Integer
- data PrivateKey = PrivateKey {}
- data KeyPair = KeyPair Params PublicNumber PrivateNumber
- toPublicKey :: KeyPair -> PublicKey
- toPrivateKey :: KeyPair -> PrivateKey
Documentation
Represent DSA parameters namely P, G, and Q.
Represent a DSA signature namely R and S.
type PublicNumber = Integer #
DSA Public Number, usually embedded in DSA Public Key
Represent a DSA public key.
Constructors
| PublicKey | |
| Fields 
 | |
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 
 | |
Instances
Represent a DSA key pair
Constructors
| KeyPair Params PublicNumber PrivateNumber | 
toPublicKey :: KeyPair -> PublicKey #
Public key of a DSA Key pair
toPrivateKey :: KeyPair -> PrivateKey #
Private key of a DSA Key pair