hOpenPGP-2.10.1: 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]) Source #

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

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

data UidOrUat Source #

Constructors

I Text |
A [UserAttrSubPacket] |

#### Instances

Instances details

Show UidOrUat Source # |
Instance details Defined in Codec.Encryption.OpenPGP.KeyringParser Methods showsPrec :: Int -> UidOrUat -> ShowS Source # show :: UidOrUat -> String Source # showList :: [UidOrUat] -> ShowS Source #

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

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

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

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

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

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

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

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

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

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

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

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

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

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

# Utilities

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

parse TKs from packets