Represent a ECDSA signature namely R and S.
Modulecryptonite-0.30Haskell2010
Crypto.PubKey.ECC.ECDSA
WARNING: Signature operations may leak the private key. Signature verification should be safe.
- 6 types
- 8 values
- Packagecryptonite-0.30
- Exports14
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceECDSA.hs
ECC Public Point
ECDSA Public Key.
Constructors
ECC Private Number
ECDSA Private Key.
Constructors
Instances4Eq, Data, Read, Show
Eq PrivateKeyDefined in cryptonite-0.30 · Crypto.PubKey.ECC.ECDSAData PrivateKeyDefined in cryptonite-0.30 · Crypto.PubKey.ECC.ECDSARead PrivateKeyDefined in cryptonite-0.30 · Crypto.PubKey.ECC.ECDSAShow PrivateKeyDefined in cryptonite-0.30 · Crypto.PubKey.ECC.ECDSA
ECDSA Key Pair.
Constructors
Public key of a ECDSA Key pair.
Private key of a ECDSA Key pair.
signWith :: (ByteArrayAccess msg, HashAlgorithm hash)=> Integerk random number
-> PrivateKeyprivate key
-> hashhash function
-> msgmessage to sign
-> Maybe Signature
Sign message using the private key and an explicit k number.
WARNING: Vulnerable to timing attacks.
signDigestWith :: HashAlgorithm hash=> Integerk random number
-> PrivateKeyprivate key
-> Digest hashdigest to sign
-> Maybe Signature
Sign digest using the private key and an explicit k number.
WARNING: Vulnerable to timing attacks.
Sign message using the private key.
WARNING: Vulnerable to timing attacks.
Sign digest using the private key.
WARNING: Vulnerable to timing attacks.
Verify a bytestring using the public key.
Verify a digest using the public key.