cryptonite/Crypto
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
..
Cipher Add import to fix backwards compatibility 2017-04-10 00:57:49 -04:00
ConstructHash apply zero-padding to miyaguchi-preneel. 2016-06-08 22:26:14 +09:00
Data fix unpad of zero-padding and add tests. 2016-06-08 22:57:35 +09:00
ECC/Simple fix proxy 2016-12-02 21:07:13 +00:00
Error Argon2: add working hash function 2017-02-24 13:37:40 +00:00
Hash [Hash] change Digest to use a foundation UArray that have configurable pinnable memory setting 2017-04-25 14:23:13 +01:00
Internal add new constraints 2017-03-13 18:52:24 +00:00
KDF Decrease Argon2 maximum output length 2017-04-09 17:18:26 +02:00
MAC [CMAC] drop the accessor in favor of just using the ByteArrayAccess constraint 2016-04-09 10:31:13 +01:00
Math merge crypto-numbers minus all the random parts 2015-02-09 05:47:11 +00:00
Number Fix issue #154 2017-04-21 13:51:52 -06:00
PubKey Allow sign/verify digest directly 2017-05-15 19:42:19 -07:00
Random fix documentation typo 2016-05-05 19:51:22 +03:00
ECC.hs Use new module name Crypto.PubKey.Curve448 2017-01-19 20:26:25 +01:00
Error.hs add crypto errors standard enumeration and some helper. 2015-04-07 10:56:38 +01:00
Hash.hs Add missing extension 2017-04-25 14:21:53 +01:00
OTP.hs Drop use of 'time' library from OTP implementation 2016-04-11 17:52:59 +01:00
Random.hs [random] add a seed capability with export/import from integer. 2016-04-09 08:33:37 +01:00
Tutorial.hs Restore Haddock comment in tutorial module 2017-05-05 07:21:52 +02:00