aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-04-17 11:13:54 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-04-17 11:13:54 -0400
commit80981600a0994ba36d3867d5ada55b5ea5a3d9cb (patch)
tree48882bae07441e2d2eaad54b06c3419ef3cda084
parenteafb51959225d871b94136b7b02c5cf7752d49be (diff)
looked up HMAC block size details
-rw-r--r--Crypto.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Crypto.hs b/Crypto.hs
index 12c70ef04..25a87c3ad 100644
--- a/Crypto.hs
+++ b/Crypto.hs
@@ -48,6 +48,9 @@ import CryptoTypes
{- The first half of a Cipher is used for HMAC; the remainder
- is used as the GPG symmetric encryption passphrase.
-
+ - HMAC SHA1 needs only 64 bytes. The remainder is for expansion,
+ - perhaps to HMAC SHA512, which needs 128 bytes (ideally).
+ -
- 256 is enough for gpg's symetric cipher; unlike weaker public key
- crypto, the key does not need to be too large.
-}