License | BSD-style |
---|---|
Maintainer | Vincent Hanquez <vincent@snarc.org> |
Stability | Stable |
Portability | Excellent |
Safe Haskell | None |
Language | Haskell98 |
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 Source
DSA Public Number, usually embedded in DSA Public Key
Represent a DSA public key.
PublicKey | |
|
type PrivateNumber = Integer Source
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.
PrivateKey | |
|
Represent a DSA key pair
toPublicKey :: KeyPair -> PublicKey Source
Public key of a DSA Key pair
toPrivateKey :: KeyPair -> PrivateKey Source
Private key of a DSA Key pair