From 80981600a0994ba36d3867d5ada55b5ea5a3d9cb Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 17 Apr 2011 11:13:54 -0400 Subject: looked up HMAC block size details --- Crypto.hs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Crypto.hs') 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. -} -- cgit v1.2.3