summaryrefslogtreecommitdiff
path: root/Data
diff options
context:
space:
mode:
authorStephen Paul Weber <singpolyma@singpolyma.net>2012-11-30 18:08:48 -0500
committerStephen Paul Weber <singpolyma@singpolyma.net>2012-11-30 18:08:48 -0500
commitbd378deb253f33a9cd32f8534ecc44f17921401b (patch)
tree60b161f680b2cd1dcdf8a743f8fed16a4ad078e7 /Data
parent1ef98205821990faa671dcb8efd949134e5e4c02 (diff)
formatting
Diffstat (limited to 'Data')
-rw-r--r--Data/OpenPGP.hs16
1 files changed, 10 insertions, 6 deletions
diff --git a/Data/OpenPGP.hs b/Data/OpenPGP.hs
index 94bcb6d..ccdc70a 100644
--- a/Data/OpenPGP.hs
+++ b/Data/OpenPGP.hs
@@ -377,10 +377,12 @@ put_packet (OnePassSignaturePacket { version = version,
377 key_algorithm = key_algorithm, 377 key_algorithm = key_algorithm,
378 key_id = key_id, 378 key_id = key_id,
379 nested = nested }) = 379 nested = nested }) =
380 (B.concat [ encode version, encode signature_type, 380 (B.concat [
381 encode hash_algorithm, encode key_algorithm, 381 encode version, encode signature_type,
382 encode (fst $ head $ readHex key_id :: Word64), 382 encode hash_algorithm, encode key_algorithm,
383 encode nested ], 4) 383 encode (fst $ head $ readHex key_id :: Word64),
384 encode nested
385 ], 4)
384put_packet (SecretKeyPacket { version = version, timestamp = timestamp, 386put_packet (SecretKeyPacket { version = version, timestamp = timestamp,
385 key_algorithm = algorithm, key = key, 387 key_algorithm = algorithm, key = key,
386 s2k_useage = s2k_useage, 388 s2k_useage = s2k_useage,
@@ -439,8 +441,10 @@ put_packet MarkerPacket = (B.fromString "PGP", 10)
439put_packet (LiteralDataPacket { format = format, filename = filename, 441put_packet (LiteralDataPacket { format = format, filename = filename,
440 timestamp = timestamp, content = content 442 timestamp = timestamp, content = content
441 }) = 443 }) =
442 (B.concat [encode format, encode filename_l, lz_filename, 444 (B.concat [
443 encode timestamp, content], 11) 445 encode format, encode filename_l, lz_filename,
446 encode timestamp, content
447 ], 11)
444 where 448 where
445 filename_l = (fromIntegral $ B.length lz_filename) :: Word8 449 filename_l = (fromIntegral $ B.length lz_filename) :: Word8
446 lz_filename = B.fromString filename 450 lz_filename = B.fromString filename