summaryrefslogtreecommitdiff
path: root/lib/OpenPGP.Crypto.hs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/OpenPGP.Crypto.hs')
-rw-r--r--lib/OpenPGP.Crypto.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/OpenPGP.Crypto.hs b/lib/OpenPGP.Crypto.hs
index 3e23815..5d1475f 100644
--- a/lib/OpenPGP.Crypto.hs
+++ b/lib/OpenPGP.Crypto.hs
@@ -20,7 +20,7 @@ fingerprint :: OpenPGP.Packet -> String
20fingerprint p | OpenPGP.version p == 4 = 20fingerprint p | OpenPGP.version p == 4 =
21 BaseConvert.toString 16 $ SHA1.toInteger $ SHA1.hash $ 21 BaseConvert.toString 16 $ SHA1.toInteger $ SHA1.hash $
22 LZ.unpack (LZ.concat (OpenPGP.fingerprint_material p)) 22 LZ.unpack (LZ.concat (OpenPGP.fingerprint_material p))
23fingerprint p | OpenPGP.version p == 2 || OpenPGP.version p == 3 = 23fingerprint p | (OpenPGP.version p) `elem` [2, 3] =
24 concat $ map (BaseConvert.toString 16) $ 24 concat $ map (BaseConvert.toString 16) $
25 MD5.hash $ LZ.unpack (LZ.concat (OpenPGP.fingerprint_material p)) 25 MD5.hash $ LZ.unpack (LZ.concat (OpenPGP.fingerprint_material p))
26 26