Safe Haskell | None |
---|---|
Language | Haskell2010 |
Codec.Encryption.OpenPGP.Types
Documentation
type Exportability = Bool Source
type TrustLevel = Word8 Source
type TrustAmount = Word8 Source
type Revocability = Bool Source
type RevocationReason = Text Source
type KeyServer = ByteString Source
type SignatureHash = ByteString Source
type PacketVersion = Word8 Source
type V3Expiration = Word16 Source
type FileName = ByteString Source
type ImageData = ByteString Source
type NestedFlag = Bool Source
class (Eq a, Ord a) => FutureFlag a where Source
data SymmetricAlgorithm Source
Constructors
Plaintext | |
IDEA | |
TripleDES | |
CAST5 | |
Blowfish | |
ReservedSAFER | |
ReservedDES | |
AES128 | |
AES192 | |
AES256 | |
Twofish | |
Camellia128 | |
Camellia192 | |
Camellia256 | |
OtherSA Word8 |
Instances
data NotationFlag Source
Constructors
HumanReadable | |
OtherNF Word8 |
Instances
Eq NotationFlag Source | |
Data NotationFlag Source | |
Ord NotationFlag Source | |
Show NotationFlag Source | |
Generic NotationFlag Source | |
ToJSON NotationFlag Source | |
FromJSON NotationFlag Source | |
Hashable NotationFlag Source | |
Pretty NotationFlag Source | |
FutureFlag NotationFlag Source | |
type Rep NotationFlag Source |
newtype ThirtyTwoBitTimeStamp Source
Constructors
ThirtyTwoBitTimeStamp | |
Fields |
Instances
newtype ThirtyTwoBitDuration Source
Constructors
ThirtyTwoBitDuration | |
Fields |
Instances
data RevocationClass Source
Constructors
SensitiveRK | |
RClOther Word8 |
Instances
data PubKeyAlgorithm Source
Constructors
RSA | |
DeprecatedRSAEncryptOnly | |
DeprecatedRSASignOnly | |
ElgamalEncryptOnly | |
DSA | |
ECDH | |
ECDSA | |
ForbiddenElgamal | |
DH | |
OtherPKA Word8 |
Instances
newtype TwentyOctetFingerprint Source
Constructors
TwentyOctetFingerprint | |
Fields
|
Instances
newtype EightOctetKeyId Source
Constructors
EightOctetKeyId | |
Fields
|
Instances
newtype NotationName Source
Constructors
NotationName | |
Fields |
Instances
Eq NotationName Source | |
Data NotationName Source | |
Ord NotationName Source | |
Show NotationName Source | |
Generic NotationName Source | |
ToJSON NotationName Source | |
FromJSON NotationName Source | |
Hashable NotationName Source | |
Pretty NotationName Source | |
Newtype NotationName ByteString Source | |
type Rep NotationName Source |
newtype NotationValue Source
Constructors
NotationValue | |
Fields |
Instances
Eq NotationValue Source | |
Data NotationValue Source | |
Ord NotationValue Source | |
Show NotationValue Source | |
Generic NotationValue Source | |
ToJSON NotationValue Source | |
FromJSON NotationValue Source | |
Hashable NotationValue Source | |
Pretty NotationValue Source | |
Newtype NotationValue ByteString Source | |
type Rep NotationValue Source |
data HashAlgorithm Source
Instances
Eq HashAlgorithm Source | |
Data HashAlgorithm Source | |
Ord HashAlgorithm Source | |
Show HashAlgorithm Source | |
Generic HashAlgorithm Source | |
ToJSON HashAlgorithm Source | |
FromJSON HashAlgorithm Source | |
Hashable HashAlgorithm Source | |
Pretty HashAlgorithm Source | |
FutureVal HashAlgorithm Source | |
type Rep HashAlgorithm Source |
data CompressionAlgorithm Source
Instances
data RevocationCode Source
Constructors
NoReason | |
KeySuperseded | |
KeyMaterialCompromised | |
KeyRetiredAndNoLongerUsed | |
UserIdInfoNoLongerValid | |
RCoOther Word8 |
Instances
Eq RevocationCode Source | |
Data RevocationCode Source | |
Ord RevocationCode Source | |
Show RevocationCode Source | |
Generic RevocationCode Source | |
ToJSON RevocationCode Source | |
FromJSON RevocationCode Source | |
Hashable RevocationCode Source | |
Pretty RevocationCode Source | |
FutureVal RevocationCode Source | |
type Rep RevocationCode Source |
data FeatureFlag Source
Constructors
ModificationDetection | |
FeatureOther Int |
Instances
Eq FeatureFlag Source | |
Data FeatureFlag Source | |
Ord FeatureFlag Source | |
Show FeatureFlag Source | |
Generic FeatureFlag Source | |
ToJSON FeatureFlag Source | |
FromJSON FeatureFlag Source | |
Hashable FeatureFlag Source | |
Pretty FeatureFlag Source | |
FutureFlag FeatureFlag Source | |
type Rep FeatureFlag Source |
data SignaturePayload Source
Constructors
Instances
data SigSubPacketPayload Source
Constructors
Instances
data SigSubPacket Source
Constructors
SigSubPacket | |
Fields |
Instances
Eq SigSubPacket Source | |
Data SigSubPacket Source | |
Show SigSubPacket Source | |
Generic SigSubPacket Source | |
ToJSON SigSubPacket Source | |
FromJSON SigSubPacket Source | |
Hashable SigSubPacket Source | |
Pretty SigSubPacket Source | |
type Rep SigSubPacket Source |
sspPayload :: Lens' SigSubPacket SigSubPacketPayload Source
sspCriticality :: Lens' SigSubPacket Bool Source
data KeyVersion Source
Constructors
DeprecatedV3 | |
V4 |
Instances
Eq KeyVersion Source | |
Data KeyVersion Source | |
Ord KeyVersion Source | |
Show KeyVersion Source | |
Generic KeyVersion Source | |
ToJSON KeyVersion Source | |
FromJSON KeyVersion Source | |
Hashable KeyVersion Source | |
Pretty KeyVersion Source | |
type Rep KeyVersion Source |
Constructors
IV | |
Fields
|
Constructors
BinaryData | |
TextData | |
UTF8Data | |
OtherData Word8 |
Constructors
Salt | |
Fields
|
newtype IterationCount Source
Constructors
IterationCount | |
Fields |
Instances
data ImageFormat Source
Constructors
JPEG | |
OtherImage Word8 |
Instances
Eq ImageFormat Source | |
Data ImageFormat Source | |
Ord ImageFormat Source | |
Show ImageFormat Source | |
Generic ImageFormat Source | |
ToJSON ImageFormat Source | |
FromJSON ImageFormat Source | |
Hashable ImageFormat Source | |
Pretty ImageFormat Source | |
FutureVal ImageFormat Source | |
type Rep ImageFormat Source |
data ImageHeader Source
Constructors
ImageHV1 ImageFormat |
Instances
Eq ImageHeader Source | |
Data ImageHeader Source | |
Ord ImageHeader Source | |
Show ImageHeader Source | |
Generic ImageHeader Source | |
ToJSON ImageHeader Source | |
FromJSON ImageHeader Source | |
Hashable ImageHeader Source | |
Pretty ImageHeader Source | |
type Rep ImageHeader Source |
data UserAttrSubPacket Source
Constructors
ImageAttribute ImageHeader ImageData | |
OtherUASub Word8 ByteString |
Instances
Constructors
BrokenNISTP256 | |
BrokenNISTP384 | |
BrokenNISTP521 |
newtype DSA_PublicKey Source
Constructors
DSA_PublicKey | |
Fields |
Instances
Eq DSA_PublicKey Source | |
Data DSA_PublicKey Source | |
Ord DSA_PublicKey Source | |
Show DSA_PublicKey Source | |
Generic DSA_PublicKey Source | |
ToJSON DSA_PublicKey Source | |
Hashable DSA_PublicKey Source | |
Pretty DSA_PublicKey Source | |
type Rep DSA_PublicKey Source |
newtype RSA_PublicKey Source
Constructors
RSA_PublicKey | |
Fields |
Instances
Eq RSA_PublicKey Source | |
Data RSA_PublicKey Source | |
Ord RSA_PublicKey Source | |
Show RSA_PublicKey Source | |
Generic RSA_PublicKey Source | |
ToJSON RSA_PublicKey Source | |
Hashable RSA_PublicKey Source | |
Pretty RSA_PublicKey Source | |
type Rep RSA_PublicKey Source |
newtype DSA_PrivateKey Source
Constructors
DSA_PrivateKey | |
Fields |
Instances
Eq DSA_PrivateKey Source | |
Data DSA_PrivateKey Source | |
Ord DSA_PrivateKey Source | |
Show DSA_PrivateKey Source | |
Generic DSA_PrivateKey Source | |
ToJSON DSA_PrivateKey Source | |
Hashable DSA_PrivateKey Source | |
Pretty DSA_PrivateKey Source | |
type Rep DSA_PrivateKey Source |
newtype RSA_PrivateKey Source
Constructors
RSA_PrivateKey | |
Fields |
Instances
Eq RSA_PrivateKey Source | |
Data RSA_PrivateKey Source | |
Ord RSA_PrivateKey Source | |
Show RSA_PrivateKey Source | |
Generic RSA_PrivateKey Source | |
ToJSON RSA_PrivateKey Source | |
Hashable RSA_PrivateKey Source | |
Pretty RSA_PrivateKey Source | |
type Rep RSA_PrivateKey Source |
newtype DSA_Params Source
Constructors
DSA_Params | |
Fields |
Instances
Eq DSA_Params Source | |
Data DSA_Params Source | |
Show DSA_Params Source | |
Generic DSA_Params Source | |
ToJSON DSA_Params Source | |
Hashable DSA_Params Source | |
Pretty DSA_Params Source | |
type Rep DSA_Params Source |
Associated Types
data PacketType a :: * Source
Instances
Constructors
PKESK | |
Constructors
Signature | |
Fields |
Constructors
SKESK | |
Constructors
SecretKey | |
Fields |
Constructors
PublicKey | |
Fields |
data SecretSubkey Source
Constructors
SecretSubkey | |
data CompressedData Source
Constructors
CompressedData | |
Constructors
Marker | |
Fields |
Constructors
Trust | |
Fields |
Constructors
UserId | |
Fields |
data PublicSubkey Source
Constructors
PublicSubkey | |
Fields |
data UserAttribute Source
Constructors
UserAttribute | |
Fields |
data SymEncIntegrityProtectedData Source
Constructors
SymEncIntegrityProtectedData | |
Instances
data ModificationDetectionCode Source
Constructors
ModificationDetectionCode | |
Instances
data BrokenPacket Source
Constructors
BrokenPacket | |
pkeskPubKeyAlgorithm :: Lens' PKESK PubKeyAlgorithm Source
pkeskPacketVersion :: Lens' PKESK PacketVersion Source
pkeskEightOctetKeyId :: Lens' PKESK EightOctetKeyId Source
skeskPacketVersion :: Lens' SKESK PacketVersion Source
skeskESK :: Lens' SKESK (Maybe ByteString) Source
secretKeySKAddendum :: Lens' SecretKey SKAddendum Source
secretKeyPKPayload :: Lens' SecretKey PKPayload Source
v3exp :: Lens' PKPayload V3Expiration Source
timestamp :: Lens' PKPayload ThirtyTwoBitTimeStamp Source
pkalgo :: Lens' PKPayload PubKeyAlgorithm Source
keyVersion :: Lens' PKPayload KeyVersion Source
publicKeyPKPayload :: Iso' PublicKey PKPayload Source
secretSubkeyPKPayload :: Lens' SecretSubkey PKPayload Source
symEncDataPayload :: Iso' SymEncData ByteString Source
markerPayload :: Iso' Marker ByteString Source
literalDataPayload :: Lens' LiteralData ByteString Source
literalDataFileName :: Lens' LiteralData FileName Source
literalDataDataType :: Lens' LiteralData DataType Source
trustPayload :: Iso' Trust ByteString Source
userIdPayload :: Iso' UserId Text Source
symEncIntegrityProtectedDataPacketVersion :: Lens' SymEncIntegrityProtectedData PacketVersion Source
otherPacketType :: Lens' OtherPacket Word8 Source
otherPacketPayload :: Lens' OtherPacket ByteString Source
brokenPacketType :: Lens' BrokenPacket Word8 Source
brokenPacketPayload :: Lens' BrokenPacket ByteString Source
brokenPacketParseError :: Lens' BrokenPacket String Source
Constructors
PKPayload | |
Fields |
data SKAddendum Source
Constructors
SUS16bit SymmetricAlgorithm S2K IV ByteString | |
SUSSHA1 SymmetricAlgorithm S2K IV ByteString | |
SUSym SymmetricAlgorithm IV ByteString | |
SUUnencrypted SKey Word16 |
Instances
Eq SKAddendum Source | |
Data SKAddendum Source | |
Ord SKAddendum Source | |
Show SKAddendum Source | |
Generic SKAddendum Source | |
ToJSON SKAddendum Source | |
Hashable SKAddendum Source | |
Pretty SKAddendum Source | |
type Rep SKAddendum Source |
Constructors
data Verification Source
Constructors
Verification | |
verificationSigner :: Lens' Verification PKPayload Source
Constructors
TK | |
Fields
|
type KeyringIxs = `[EightOctetKeyId, TwentyOctetFingerprint, Text]` Source
type Keyring = IxSet KeyringIxs TK Source
tkUIDs :: Lens' TK [(Text, [SignaturePayload])] Source
tkUAts :: Lens' TK [([UserAttrSubPacket], [SignaturePayload])] Source
tkSubs :: Lens' TK [(Pkt, [SignaturePayload])] Source
tkRevs :: Lens' TK [SignaturePayload] Source