hOpenPGP-3.7.2: native Haskell implementation of OpenPGP (RFC9580)
Safe HaskellNone
LanguageHaskell2010

Codec.Encryption.OpenPGP.Expirations

Synopsis

Documentation

isTKTimeValid :: forall (k :: TKKind). TKPrimaryPKPayload k => UTCTime -> TK k -> Bool Source #

keyFlagsFromSignature :: SignaturePayload -> Maybe (Set KeyFlag) Source #

Extract KeyFlags from a single signature's hashed subpackets.

effectiveKeyFlagsAt :: forall (k :: TKKind). TKPrimaryPKPayload k => UTCTime -> TK k -> Maybe (Set KeyFlag) Source #

Get effective key flags for the primary key at a given timestamp. Finds the latest effective self-signature (direct key sig, UID self-cert, or UAT self-cert) and extracts KeyFlags from its hashed subpackets. Returns Nothing if no effective self-signature exists or if no KeyFlags subpacket is present.

effectiveSubkeyFlagsAt :: forall (k :: TKKind). (TKPrimaryPKPayload k, TKSubkeyPKPayload k) => UTCTime -> TK k -> Fingerprint -> Maybe (Set KeyFlag) Source #

Get effective key flags for a subkey at a given timestamp. Finds the subkey by fingerprint, then finds the latest effective subkey binding signature and extracts KeyFlags from its hashed subpackets.

effectiveFeaturesAt :: forall (k :: TKKind). TKPrimaryPKPayload k => UTCTime -> TK k -> Maybe (Set FeatureFlag) Source #

Get effective features for the primary key at a given timestamp. Finds the latest effective self-signature and extracts Features from its hashed subpackets.