summaryrefslogtreecommitdiff
path: root/Data/OpenPGP.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Data/OpenPGP.hs')
-rw-r--r--Data/OpenPGP.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/Data/OpenPGP.hs b/Data/OpenPGP.hs
index 17a6927..3064dc5 100644
--- a/Data/OpenPGP.hs
+++ b/Data/OpenPGP.hs
@@ -845,6 +845,16 @@ parse_packet tag = fmap (UnsupportedPacket tag) getRemainingByteString
845 845
846-- | Helper method for fingerprints and such 846-- | Helper method for fingerprints and such
847fingerprint_material :: Packet -> [B.ByteString] 847fingerprint_material :: Packet -> [B.ByteString]
848fingerprint_material p | version p == 5 =
849 [
850 B.singleton 0x9A,
851 encode (10 + fromIntegral (B.length material) :: Word32),
852 B.singleton 5, encode (timestamp p), encode (key_algorithm p),
853 encode (fromIntegral (B.length material) :: Word32),
854 material
855 ]
856 where
857 material = B.concat $ encode_public_key_material p
848fingerprint_material p | version p == 4 = 858fingerprint_material p | version p == 4 =
849 [ 859 [
850 B.singleton 0x99, 860 B.singleton 0x99,