Portability | Excellent |
---|---|
Stability | Stable |
Maintainer | Vincent Hanquez <vincent@snarc.org> |
Safe Haskell | None |
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 = IntegerSource
DSA Public Number, usually embedded in DSA Public Key
Represent a DSA public key.
PublicKey | |
|
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.
PrivateKey | |
|
Represent a DSA key pair
toPublicKey :: KeyPair -> PublicKeySource
Public key of a DSA Key pair
toPrivateKey :: KeyPair -> PrivateKeySource
Private key of a DSA Key pair