PGP Package

PGP Package

PublicKey Module

class M2Crypto.PGP.PublicKey.PublicKey(pubkey_pkt)[source]
add_signature(userid, s_pkt)[source]
add_userid(u_pkt)[source]
decrypt(ctxt)[source]
encrypt(ptxt)[source]
keyid()[source]
remove_userid(userid)[source]
write(stream)[source]

PublicKeyRing Module

class M2Crypto.PGP.PublicKeyRing.PublicKeyRing(keyring)[source]
load()[source]
save(keyring)[source]
spurious()[source]
M2Crypto.PGP.PublicKeyRing.load_pubring(filename='pubring.pgp')[source]

RSA Module

M2Crypto PGP2 RSA.

Copyright (c) 1999-2003 Ng Pheng Siong. All rights reserved.

M2Crypto.PGP.RSA.new_pub_key(e_n)[source]

Factory function that instantiates an RSA_pub object from a (e, n) tuple.

‘e’ is the RSA public exponent; it is a string in OpenSSL’s binary format, i.e., a number of bytes in big-endian.

‘n’ is the RSA composite of primes; it is a string in OpenSSL’s
binary format, i.e., a number of bytes in big-endian.

constants Module

M2Crypto PGP2.

Copyright (c) 1999-2003 Ng Pheng Siong. All rights reserved.

packet Module

class M2Crypto.PGP.packet.CKEPacket(ctb, body=None)[source]

Bases: M2Crypto.PGP.packet.Packet

class M2Crypto.PGP.packet.CommentPacket(ctb, body=None)[source]

Bases: M2Crypto.PGP.packet.Packet

pack()[source]
class M2Crypto.PGP.packet.CompressedPacket(ctb, stream)[source]

Bases: M2Crypto.PGP.packet.Packet

uncompress()[source]
validate()[source]
class M2Crypto.PGP.packet.LiteralPacket(ctb, body=None)[source]

Bases: M2Crypto.PGP.packet.Packet

class M2Crypto.PGP.packet.PKEPacket(ctb, body=None)[source]

Bases: M2Crypto.PGP.packet.Packet

class M2Crypto.PGP.packet.Packet(ctb, body=None)[source]
pack()[source]
pkc()[source]
timestamp()[source]
validate()[source]
validity()[source]
version()[source]
class M2Crypto.PGP.packet.PacketStream(input)[source]
close()[source]
count()[source]
read(keep_trying=0)[source]
class M2Crypto.PGP.packet.PrivateKeyPacket(ctb, body=None)[source]

Bases: M2Crypto.PGP.packet.Packet

is_encrypted()[source]
class M2Crypto.PGP.packet.PublicKeyPacket(ctb, body=None)[source]

Bases: M2Crypto.PGP.packet.Packet

pack()[source]
pubkey()[source]
class M2Crypto.PGP.packet.SignaturePacket(ctb, body=None)[source]

Bases: M2Crypto.PGP.packet.Packet

pack()[source]
validate()[source]
class M2Crypto.PGP.packet.TrustPacket(ctb, body=None)[source]

Bases: M2Crypto.PGP.packet.Packet

class M2Crypto.PGP.packet.UserIDPacket(ctb, body=None)[source]

Bases: M2Crypto.PGP.packet.Packet

pack()[source]
userid()[source]
exception M2Crypto.PGP.packet.XXXError[source]

Bases: exceptions.Exception

M2Crypto.PGP.packet.is_ctb(ctb)[source]
M2Crypto.PGP.packet.make_ctb(value, llf)[source]

Table Of Contents

Previous topic

M2Crypto Package

Next topic

SSL Package

This Page