Codec.Encryption.OpenPGP.KeyringParser

hOpenPGP-2.5.5: native Haskell implementation of OpenPGP (RFC4880)

Safe Haskell | None
Language | Haskell2010

Codec.Encryption.OpenPGP.KeyringParser

Contents

- Parsers
- Utilities

Synopsis

- parseAChunk :: (Monoid s, Show s) => Parser s r -> s -> ([(r, s)], Maybe (Maybe (r -> r), Parser s r)) -> (([(r, s)], Maybe (Maybe (r -> r), Parser s r)), [r])
- finalizeParsing :: Monoid s => ([(r, s)], Maybe (Maybe (r -> r), Parser s r)) -> (([(r, s)], Maybe (Maybe (r -> r), Parser s r)), [r])
- anyTK :: Bool -> Parser [Pkt] (Maybe TK)
- data UidOrUat
  - = I Text
  - | A [UserAttrSubPacket]
- splitUs :: [(UidOrUat, [SignaturePayload])] -> ([(Text, [SignaturePayload])], [([UserAttrSubPacket], [SignaturePayload])])
- publicTK :: Bool -> Parser [Pkt] (Maybe TK)
- secretTK :: Bool -> Parser [Pkt] (Maybe TK)
- brokenTK :: Int -> Parser [Pkt] (Maybe TK)
- pkPayload :: Parser [Pkt] (PKPayload, Maybe SKAddendum)
- signature :: Bool -> [SigType] -> Parser [Pkt] [SignaturePayload]
- signedUID :: Bool -> Parser [Pkt] (UidOrUat, [SignaturePayload])
- signedUAt :: Bool -> Parser [Pkt] (UidOrUat, [SignaturePayload])
- signedOrRevokedPubSubkey :: Bool -> Parser [Pkt] [(Pkt, [SignaturePayload])]
- brokenPubSubkey :: Parser [Pkt] [(Pkt, [SignaturePayload])]
- rawOrSignedOrRevokedSecSubkey :: Bool -> Parser [Pkt] [(Pkt, [SignaturePayload])]
- brokenSecSubkey :: Parser [Pkt] [(Pkt, [SignaturePayload])]
- skPayload :: Parser [Pkt] (PKPayload, Maybe SKAddendum)
- broken :: Int -> Parser [Pkt] Pkt
- parseTKs :: Bool -> [Pkt] -> [TK]

# Parsers

parseAChunk :: (Monoid s, Show s) => Parser s r -> s -> ([(r, s)], Maybe (Maybe (r -> r), Parser s r)) -> (([(r, s)], Maybe (Maybe (r -> r), Parser s r)), [r]) #

finalizeParsing :: Monoid s => ([(r, s)], Maybe (Maybe (r -> r), Parser s r)) -> (([(r, s)], Maybe (Maybe (r -> r), Parser s r)), [r]) #

anyTK :: Bool -> Parser [Pkt] (Maybe TK) #

data UidOrUat #

Constructors

I Text |
A [UserAttrSubPacket] |

Instances

Show UidOrUat # |
Methods showsPrec :: Int -> UidOrUat -> ShowS # show :: UidOrUat -> String # showList :: [UidOrUat] -> ShowS #

splitUs :: [(UidOrUat, [SignaturePayload])] -> ([(Text, [SignaturePayload])], [([UserAttrSubPacket], [SignaturePayload])]) #

publicTK :: Bool -> Parser [Pkt] (Maybe TK) #

secretTK :: Bool -> Parser [Pkt] (Maybe TK) #

brokenTK :: Int -> Parser [Pkt] (Maybe TK) #

pkPayload :: Parser [Pkt] (PKPayload, Maybe SKAddendum) #

signature :: Bool -> [SigType] -> Parser [Pkt] [SignaturePayload] #

signedUID :: Bool -> Parser [Pkt] (UidOrUat, [SignaturePayload]) #

signedUAt :: Bool -> Parser [Pkt] (UidOrUat, [SignaturePayload]) #

signedOrRevokedPubSubkey :: Bool -> Parser [Pkt] [(Pkt, [SignaturePayload])] #

brokenPubSubkey :: Parser [Pkt] [(Pkt, [SignaturePayload])] #

rawOrSignedOrRevokedSecSubkey :: Bool -> Parser [Pkt] [(Pkt, [SignaturePayload])] #

brokenSecSubkey :: Parser [Pkt] [(Pkt, [SignaturePayload])] #

skPayload :: Parser [Pkt] (PKPayload, Maybe SKAddendum) #

broken :: Int -> Parser [Pkt] Pkt #

# Utilities

parseTKs :: Bool -> [Pkt] -> [TK] #

parse TKs from packets