cryptocipher-0.2.8: Symmetrical Block, Stream and PubKey Ciphers

PortabilityGood
Stabilityexperimental
MaintainerVincent Hanquez <vincent@snarc.org>

Crypto.Cipher.DSA

Description

 

Synopsis

Documentation

data Error

Constructors

InvalidSignature

signature is not valid r or s is not between the bound 0..q

RandomGenFailure GenError

the random generator returns an error. give the opportunity to reseed for example.

Instances

data PublicKey

Constructors

PublicKey 

Instances

data PrivateKey

Constructors

PrivateKey 

Instances

sign :: CryptoRandomGen g => g -> (ByteString -> ByteString) -> PrivateKey -> ByteString -> Either GenError (Signature, g)

sign message using the private key.

verify :: Signature -> (ByteString -> ByteString) -> PublicKey -> ByteString -> Either Error Bool

verify a bytestring using the public key.