cryptonite/Crypto/PubKey
Baojun Wang f9a0bc3c53 Allow sign/verify digest directly
currently sign/verify works on message directly, it would be nice if PSS could sign/verify digest directly. This is useful for:

  1) for some signing server it only has a digest (without message)
  2) message could be very large, for cases when client need request a singing server to sign, it may make more sense for the client to compute digest, then ask server to (PSS) sign the digest
  3) openSSL pkeyutl (PSS) sign operation signs with digest only, not the message, it would be nice to work with openSSL more easily 

*openSSL command line:
```shell
openssl pkeyutl -pkeyopt rsa_padding_mode:pss -pkeyopt rsa_pss_saltlen:-1  -pkeyopt digest:sha256 -sign -inkey "pri.key" -in hmac.bin > sig.bin
openssl pkeyutl -pkeyopt rsa_padding_mode:pss -pkeyopt rsa_pss_saltlen:-1  -pkeyopt digest:sha256 -verify -inkey "pri.key" -in hmac.bin -sigfile sig.bin
```
2017-05-15 19:42:19 -07:00
..
ECC using pointSize in withTempPoint to fix #151. 2017-04-11 20:32:57 +09:00
RSA Allow sign/verify digest directly 2017-05-15 19:42:19 -07:00
Curve448.hs Rename Ed448 to Curve448 2017-01-19 20:26:25 +01:00
Curve25519.hs fix Curve25519 generate secret key to work in the MonadRandom instead of IO 2016-12-01 12:50:31 +00:00
DH.hs Fix serialization of ECDH and DH 2016-04-09 17:13:51 +01:00
DSA.hs Do DSS truncation on verify 2016-01-10 17:05:37 -05:00
ECIES.hs add some documentation to ECIES 2016-12-02 15:03:19 +00:00
Ed448.hs Rename Ed448 to Curve448 2017-01-19 20:26:25 +01:00
Ed25519.hs ed25519: Adding generateSecretKey and a unit test 2017-05-02 16:18:26 -05:00
ElGamal.hs [DH] Keep The field size in bits, in Params 2016-04-09 13:41:40 +01:00
Internal.hs merge crypto-pubkey-types and crypto-pubkey 2015-04-03 07:33:16 +01:00
MaskGenFunction.hs [pubkey] remove bytestring from MaskGenFunction 2015-05-21 11:09:48 +01:00
RSA.hs [QA] fix import 2015-05-03 14:48:40 +01:00