403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python2.6/site-packages/yum/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.6/site-packages/yum/pgpmsg.pyo
Ńņ
7ŪŲJc@sOddkZddkZddkZddkZddkZyddkZWn>ej
o2ddkZddkZdfd„ƒYZnXe	Z
dZdZdZ
dZdZdZd	Zd
ZdZdZd
ZdZdZdZdZdZdZdZdZhde6de6de6de6de6de6de6de6de6de6d e6d!e6d"e6d#e6Zd
Zd$Z dZ!d	Z"d
Z#dZ$d	Z%d
Z&d%Z'd&Z(d'Z)d(Z*d)Z+d*Z,h	d+e$6d,e%6d-e&6d.e'6d/e(6d0e)6d1e*6d2e+6d3e,6Z-d$Z.dZ/d	Z0d
Z1dZ2dZ3d
Z4dZ5dZ6dZ7h
d4e.6d5e/6d6e06d7e16d8e26d9e36d:e46d;e56d<e66d=e76Z8d$Z9dZ:d	Z;hd>e96d?e:6d@e;6Z<dZ=d	Z>d
Z?dZ@dZAd
ZBdZChdAe=6dBe>6dCe?6dDe@6dEeA6dFeB6dGeC6ZDd$ZEdZFd	ZGd%ZHd&ZId'ZJd(ZKdHZLdIZMdJZNdKZOdLZPdMZQh
dNeE6dOeF6dPeG6dQeH6dReI6dSeJ6dTeK6dUeL6dVeM6dWeN6dXeO6dYeP6dZeQ6ZRd	ZSd
ZTdZUdZVd
ZWdZXdZYdZZdZ[dZ\d%Z]d)Z^d*Z_d[Z`d\ZadHZbd]Zcd^Zdd_Zed`ZfdaZghdbeS6dceT6ddeU6deeV6dfeW6dgeX6dheY6dieZ6dje[6dke\6dle]6dme^6dne_6doe`6dpea6dqeb6drec6dsed6dtee6duef6dveg6Zhd$ZidZjd	Zkd
ZldJZmhdwei6dxej6dyek6dzel6d{em6ZndZod	ZpdZqdZrd%ZsdZtdZudMZvd|„Zwd}„Zxd~„Zyd„Zzd€„Z{d„Z|d‚„Z}dƒ„Z~d„„Zd…„Z€d†fd‡„ƒYZdˆefd‰„ƒYZ‚dŠefd‹„ƒYZƒdŒefd„ƒYZ„dŽe…fd„ƒYZ†d„Z‡d‘„Zˆd’„Z‰d“„ZŠd”„Z‹dS(•i’’’’NthashlibcBseZed„ƒZRS(cCs=|djotiƒS|djotiƒStd‚dS(Ntmd5tsha1sBad checksum type(Rtnewtshat
ValueError(talgo((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pyRs


(t__name__t
__module__tstaticmethodR(((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pyRsi€iĄi<i?iiiiiiiii	i
iii
is#public-key encrypted session packetssignature packets&symmetric-key encrypted session packetsone-pass signature packetssecret-key certificate packetspublic-key certificate packetssecret-key subkey packetscompressed data packets#symmetric-key encrypted data packets
marker packetsliteral data packetstrust packetsuser id packetspublic subkey packetiiiiiiisRSA (Encrypt or Sign)sRSA Encrypt-Onlys
RSA Sign-OnlysElgamal Encrypt-Onlys DSA (Digital Signature Standard)sElliptic CurvetECDSAsElgamal (Encrypt or Sign)sDiffie-HellmansPlaintext or unencrypted datatIDEAs
Triple-DEStCAST5tBlowfishsSAFER-SK128sDES/SKsAES 128-bitsAES 192-bitsAES 256-bittUncompressedtZIPtZLIBtMD5tSHA1t	RIPEMD160sdouble-width SHAtMD2tTIGER192sHAVAL-5-160iii i(i0i@s document signature, binary images"document signature, canonical textssignature over just subpacketss;public key packet and user ID packet, generic certifications-public key packet and user ID packet, personas:public key packet and user ID packet, casual certifications<public key packet and user ID packet, positive certificationssubkey bindings
key signatureskey revocationssubkey revocationscertificate revocationt	timestampiiiiiiissignature creation timessignature expiration timesexportable certificationstrust signaturesregular expressiont	revocableskey expiration times&placeholder for backward compatibilityspreferred symmetric algorithmssrevocation keys
issuer key IDs
notation dataspreferred hash algorithmss preferred compression algorithmsskey server preferencesspreferred key serversprimary user ids
policy URLs	key flagsssigner's user idsreason for revocationsNo reason specifiedsKey is supercededsKey has been compromisedsKey is no longer useds&user id information is no longer validcCsnd}x[|djoMtid|||d!ƒd}|dt|ƒ}|d}|d}q	W||fS(sšget_whole_number(msg, idx, numlen)
extracts a "whole number" field of length numlen from msg at index idx
returns (<whole number>, new_idx) where the whole number is a long integer
and new_idx is the index of the next element in the messagelitBil(tstructtunpacktlong(tmsgtidxtnumlentntb((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pytget_whole_numbers
!
cCs(t|||ƒ\}}t|ƒ|fS(siget_whole_int(msg, idx, numlen)
same as get_whole_number but returns the number as an int for convenience(R!tint(RRRR((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pyt
get_whole_int"scCsRg}x<|djo.|idtid|d@ƒƒ|dL}q	Wdi|ƒS(sKpack_long(l)
    returns big-endian representation of unsigned long integeriRi’it(tinsertRtpacktjoin(tltarr((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pyt	pack_long(s
 cCsŠt|ƒ}t|ƒdd}t|ƒdjo=t|dƒ}x0|djo|d7}|dL}qFWnd}tid|ƒ|S(s_pack_mpi(l)
    returns the PGP Multi-Precision Integer representation of unsigned long integeriiis>H(R*tlentordRR&(R(tstbitsR((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pytpack_mpi1s

cCs€t||dƒ\}}|djo||fS|djo3t||dƒ\}}|dd>|d|fSt||dƒS(sfget_sig_subpak_len(msg, idx)
extracts a signature subpacket length field
returns (subpak_len, new_idx)iiĄi’ii(R#(RRtplentplen2((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pytget_sig_subpak_lenAs

cCs7t||dƒ\}}|ft|||ddƒS(sget_mpi(msg, idx)
    extracts a multi-precision integer field from the message msg at index idx
    returns (n, <mpi>, new_idx) where the mpi is a long integer and new_idx is
    the index of the next element in the message and n is the number of bits of
    precision in <mpi>iii(R#R!(RRtln((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pyt	get_n_mpiMscCs!t||ƒ}|d|dfS(sŃget_mpi(msg, idx)
extracts a multi-precision integer field from the message msg at index idx
returns (<mpi>, new_idx) where the mpi is a long integer and new_idx is
the index of the next element in the messageii(R4(RRR(((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pytget_mpiVscCsditd„t|ƒƒƒS(NR$cSstt|ƒƒdidƒS(i(thexR,tzfill(tx((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pyt<lambda>_s(R'tmaptlist(R-((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pyt
str_to_hex^scCsh|djodS|d}|d}|d}|d}|d}|d}|}d||||fS(Nitneveri<is%d days %02d:%02d:%02d((R-tsecstminsthrstdays((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pytduration_to_stras






cCs£g}t|ƒtijo)t|ƒtijot|fƒ}nxN|D]F}|i|ƒo|i||ƒqL|idt|ƒdƒqLWdi|ƒS(Nsunknown(t)s, (	ttypettypestListTypet	TupleTypeR;thas_keytappendtstrR'(tmtvalstslistti((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pyt
map_to_strms,t
pgp_packetcBseZd„Zd„ZRS(cCs
d|_dS(N(tNonetpkt_typ(tself((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pyt__init__zscCstt|iƒS(N(ROtctb_pkt_to_strRR(RS((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pyt__str__}s(RRRTRV(((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pyRPys	t
public_keycBs>eZd„Zd„Zd„Zd„Zd„Zd„ZRS(cCs5ti|ƒd|_d|_d|_d|_dS(Ni(RPRTRQtversiontpk_algotkey_sizetfingerprint_(RS((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pyRTs

			cCs|io|iS|idjoNtidƒ}|it|iƒƒ|it|iƒƒ|iƒ|_n‹|idjogtidƒ}|idƒ|i	ƒ}|it
idt|ƒƒƒ|i|ƒ|iƒ|_nt
d|iƒ‚|iS(NiRiRs™s>Hsunknown public key version %d(R[RXRRtupdateR*t
pk_rsa_modt
pk_rsa_exptdigestt	serializeRR&R+tRuntimeError(RSthtbuf((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pytfingerprintˆs 


cCsE|idjot|id@ƒS|idjo|iƒdSdS(Nil’’’’iių’’’(RXR*R]Rd(RS((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pytkey_id¢scCsžg}|idjod|itid|it|iƒ|i|iƒƒ|it|i	ƒƒ|it|i
ƒƒnx|idjog|itid|it|iƒ|iƒƒ|itjp|itjo0|it|i	ƒƒ|it|i
ƒƒqń|it
jo\|it|iƒƒ|it|iƒƒ|it|iƒƒ|it|iƒƒqń|itjp|itjoF|it|iƒƒ|it|iƒƒ|it|iƒƒqńtd|iƒ‚ndi|ƒS(Nis>BIHBis>BIBsunknown public key algorithm %dR$(RXRIRR&R"RtvalidityRYR/R]R^tALGO_PK_RSA_ENC_OR_SIGNtALGO_PK_RSA_SIGN_ONLYtALGO_PK_DSAtpk_dsa_prime_ptpk_dsa_grp_ord_qtpk_dsa_grp_gen_gtpk_dsa_pub_keytALGO_PK_ELGAMAL_ENC_OR_SIGNtALGO_PK_ELGAMAL_ENC_ONLYtpk_elgamal_prime_ptpk_elgamal_grp_gen_gtpk_elgamal_pub_keyRaR'(RStchunks((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pyR`Øs*4.  cCsr|}t||dƒ\|_}|idjo=|idjo-|idjotd|i|fƒ‚n|idjo
d|_nt||dƒ\|_}t|iƒ|_|idjot||dƒ\|_}nt||dƒ\|_}|itjp|it	jo:t
||ƒ\|_|_}t
||ƒ\|_}n|itjowt
||ƒ\}|_}t
||ƒ\|_}t
||ƒ\|_}t
||ƒ\}|_}|||_nŒ|itjp|itjoRt
||ƒ\|_|_}t
||ƒ\|_}t
||ƒ\|_}ntd|i|fƒ‚dS(Niiiis*unknown public key packet version %d at %ds%unknown public key algorithm %d at %d(R#RXRaR!RtfloatRfRYRgRhR4RZR]R5R^RiRjRkRlRmRnRoRpRqRr(RSRRtpkt_lentidx_savetl1tl2((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pytdeserializeĄs20
  cCs=tiƒ}|iti|ƒdƒ|idt|iƒdƒ|idti|i	ƒdƒ|idjo8|idti|i	|i
dddƒdƒn|idt|idƒ|it
jp|itjo@|id	t|iƒdƒ|id
t|iƒdƒn|itjo||idt|iƒdƒ|idt|iƒdƒ|id
t|iƒdƒ|idt|iƒdƒn|itjp|itjo^|idt|iƒdƒ|idt|iƒdƒ|idt|iƒdƒn|iƒS(Ns
s	version: stimestamp: is
validity: ii<s
pubkey algo: spk_rsa_mod: spk_rsa_exp: spk_dsa_prime_p: spk_dsa_grp_ord_q: spk_dsa_grp_gen_g: spk_dsa_pub_key: spk_elgamal_prime_p: spk_elgamal_grp_gen_g: spk_elgamal_pub_key: (t	cStringIOtStringIOtwriteRPRVRJRXttimetctimeRRftalgo_pk_to_strRYRgRhR6R]R^RiRjRkRlRmRnRoRpRqRrtgetvalue(RStsio((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pyRVÜs(!8 "" "(RRRTRdReR`RyRV(((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pyRW€s					tuser_idcBs#eZd„Zd„Zd„ZRS(cCsti|ƒd|_dS(N(RPRTRQtid(RS((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pyRTós
cCs||||!|_dS(N(Rƒ(RSRRRu((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pyRy÷scCs ti|ƒdd|idS(Ns
sid: (RPRVRƒ(RS((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pyRVśs(RRRTRyRV(((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pyR‚ņs		t	signaturecBsbeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„ZRS(
cCs>ti|ƒd|_d|_d|_d|_d|_dS(N(RPRTRQRXtsig_typeRYt	hash_algot	hash_frag(RS((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pyRTžs
				cCs^|idjo|iS|itƒ}|o	|dS|itƒ}|o	|dSdSdS(Nii(RXtkey_id_tget_hashed_subpaktSIG_SUB_TYPE_ISSUER_KEY_IDtget_unhashed_subpakRQ(RSRN((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pyRes		cCsC|idjotdƒ‚n|itƒ}|o	|dSdS(Nis$v3 signatures don't have expirationsii(RXRR‰tSIG_SUB_TYPE_KEY_EXPIRE(RSRN((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pyt
expirations	cCs.x'|iD]}|d|jo|Sq
WdS(Ni(thashed_subpaksRQ(RSttypRN((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pyR‰s

	cCs.x'|iD]}|d|jo|Sq
WdS(Ni(tunhashed_subpaksRQ(RSRRN((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pyR‹ s

	c!Cst||ƒ\}}t||dƒ\}}|tjo/t||dƒ\}}|t|ƒf|fS|tjp
|tjo)t||dƒ\}}||f|fS|tjp
|tjo)t||dƒ\}}||f|fS|t	joDt||dƒ\}}t||dƒ\}	}|||	f|fS|t
jo4||||d!}
||d}||
f|fS|tjp'|tjp|t
jp
|tjoCttt||||d!ƒƒ}||d}||f|fS|tjobt||dƒ\}}t||dƒ\}
}|||d!}|d}|||
|f|fS|tjo,|||d!}|d}||f|fS|tjoęt||dƒ\}}t||dƒ\}}t||dƒ\}}t||dƒ\}}t||dƒ\}}t||dƒ\}}||||!}||}||||!}||}|||||||f|fS|tjoUg}||||d!D]}|t|ƒqŗ~}||d}||f|fS|tjo4||||d!}||d}||f|fS|tjo)t||dƒ\}}||f|fS|tjo4||||d!}||d}||f|fS|tjo4||||d!}||d}||f|fS|tjoQt||dƒ\}}|d}||||!}||}|||f|fS||||d!} ||d}|| f|fS(Niiiii(R2R#tSIG_SUB_TYPE_CREATE_TIMER!RttSIG_SUB_TYPE_EXPIRE_TIMERŒtSIG_SUB_TYPE_EXPORT_CERTtSIG_SUB_TYPE_REVOCABLEtSIG_SUB_TYPE_TRUST_SIGtSIG_SUB_TYPE_REGEXPtSIG_SUB_TYPE_PREF_SYMM_ALGOtSIG_SUB_TYPE_PREF_HASH_ALGOtSIG_SUB_TYPE_PREF_COMP_ALGOtSIG_SUB_TYPE_KEY_FLAGSR:R,R;tSIG_SUB_TYPE_REVOKE_KEYRŠtSIG_SUB_TYPE_NOTATIONtSIG_SUB_TYPE_KEY_SRV_PREFtSIG_SUB_TYPE_PREF_KEY_SRVRtSIG_SUB_TYPE_PRIM_USER_IDtSIG_SUB_TYPE_POLICY_URLtSIG_SUB_TYPE_SGNR_USER_IDtSIG_SUB_TYPE_REVOKE_REASON(!RSRRtsublentsubtypettmR-tboolt	trust_lvlt	trust_amttexprt	algo_listtclsRtfprinttk_idtflg1tflg2tflg3tflg4tname_lentval_lentnamtvalt_[1]R8tprefsturlt	signer_idtrev_codetreas_lentreastdat((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pytdeserialize_subpacket&s’


4$






 
6






cCs2x+|iD] }|dtjo	|dSq
WdS(spis_primary_user_id()
        returns true if this signature contains a primary user id subpacket with value trueii(RŽRŸ(RSRN((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pytis_primary_user_idrs


cCs®|dtjodti|dƒS|dtjodt|dƒS|dtjo|dodSdSn|dtjoi|ddjodS|ddjo
d|d	S|dd	jo
d
|d	Sd|d|d	fS|dtjo
d|dS|dtjo|dod
SdSn|dt	jodt|dƒS|dt
jodtt|dƒS|dt
joKd}|dt@o|d}n|tt|d	ƒdt|dƒS|dtjodt|dƒS|dtjo
d|dS|dtjodtt|dƒS|dtjodtt|dƒS|dtjoBd}g}|ddd@o|idƒn|di|ƒS|dtjo
d|dS|dtjo|dodSdSn|dtjo
d |dS|dtjoļg}d}t|dƒdjo|dd}n|t@o|id!ƒn|t @o|id"ƒn|t!@o|id#ƒn|t"@o|id$ƒn|t#@o|id%ƒn|t$@o|id&ƒnd'di|ƒS|dt%jo
d(|dS|dt&jo?d)}t'i(|dƒot'|d}nd*||d	fSd+|dt|dƒfS(,Niscreation time: issignature expires: ssignature exportable: TRUEssignature exportable: FALSEstrust: ordinarystrust: introducer (%d)istrust: meta-introducer (%d)strust: %d %dsregexp: ssignature revocable: TRUEssignature revocable: FALSEs
key expires: s preferred symmetric algorithms: srevocation key: s(sensitive) t isissuer key id: s2notation: flags(%d, %d, %d, %d) name(%s) value(%s)spreferred hash algorithms: s"preferred compression algorithms: skey server preferences: i€s	No-modifys, spreferred key server: %ssis primary user idsis not primary user idspolicy url: %ssmay certify other keyss
may sign datasmay encrypt communicationssmay encrypt storages4private component may have been secret-sharing splits	group keyskey flags: ssigner id: R$sreason for revocation: %s, %ssunknown(%d): %s()R‘R}R~R’RBR“R•R–R”RŒR—ROtalgo_sk_to_strR›tREVOKE_KEY_CLASS_SENSRR<RŠRœR˜talgo_hash_to_strR™talgo_comp_to_strRRIR'RžRŸR RšR+tKEY_FLAGS1_MAY_CERTIFYtKEY_FLAGS1_MAY_SIGNtKEY_FLAGS1_MAY_ENC_COMMtKEY_FLAGS1_MAY_ENC_STRGtKEY_FLAGS1_PRIV_MAYBE_SPLITtKEY_FLAGS1_GROUPR”R¢trevoke_reason_to_strRH(RStspR-R·tflagstflgs1R¼((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pytsubpacket_to_strzsž


(



cCst||dƒ\|_}|idjo
d|_n|idjoøt||dƒ\}}t||dƒ\|_}t||dƒ\|_}t|iƒ|_|||d!|_|d}t||dƒ\|_}t||dƒ\|_}nO|idjo%t||dƒ\|_}t||dƒ\|_}t||dƒ\|_}t||dƒ\}}||}g|_	x:||jo,|i
||ƒ\}}|i	i|ƒqWt||dƒ\}}||}g|_xW||jo,|i
||ƒ\}}|ii|ƒq÷Wnt
d|i|fƒ‚t||dƒ\|_}|itjp|itjot||ƒ\|_}n^|itjo4t||ƒ\|_}t||ƒ\|_}nt
d|i|fƒ‚|S(Niiiiis)unknown signature packet version %d at %ds4unknown public-key algorithm (%d) in signature at %d(R#RXR!R…RRtRˆRYR†RŽR¾RIRRaR‡RgRhR5trsa_sigRit	dsa_sig_rt	dsa_sig_s(RSRRRuthash_lentsub_paks_lentsub_paks_endRĢ((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pyRyĻsN


	

	
 cCs5tiƒ}|iti|ƒdƒ|idt|iƒdƒ|idt|idƒ|idjoC|idt	i
|iƒdƒ|idt|i
ƒdƒn“|idjo‚|idƒx/|iD]$}|id	|i|ƒdƒqŚW|id
ƒx3|iD]$}|id	|i|ƒdƒqWn|idt|idƒ|idt|iƒdƒ|itjp|itjo/|id
ƒ|idt|iƒdƒn^|itjoM|idƒ|idt|iƒdƒ|idt|iƒdƒn|iƒS(Ns
s	version: stype: istimestamp: skey_id: ishashed subpackets:
s    sunhashed subpackets:
shash_algo: shash_frag: s
pk_algo: RSA
s	rsa_sig: s
pk_algo: DSA
sdsa_sig_r: sdsa_sig_s: (RzR{R|RPRVRJRXtsig_type_to_strR…R}R~RR<RˆRŽRĻRRĆR†R6R‡RYRgRhRŠRiRŃRŅR€(RSRRN((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pyRVųs4!"

"

& 
"
"(RRRTReRR‰R‹R¾RæRĻRyRV(((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pyR„żs						L		U	)tpgp_certificatecBsJeZd„Zd„Zd„ZeeƒZd„Zd„Zd„Z	RS(cCs1d|_d|_d|_g|_g|_dS(N(RQRXRWt
revocationtuser_idst
rvkd_user_ids(RS((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pyRTs
				cCs«tiƒ}|id|iƒ|id|iƒ|it|iƒƒxT|iD]I}|it|dƒƒx)|dD]}|idt|ƒƒq|WqTW|iƒS(NsPGP Public Key Certificate v%d
sPrimary ID: %s
iis   (	RzR{R|RXR‚RJRWRŁR€(RSRtuidtsig((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pyRV s
cCs|iddiS(Ni’’’’i(RŁRƒ(RS((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pytget_user_id+scCs°|idjo9|iidjodS|ii|iidddS|id}xO|dD]C}|itjo-|iƒ}|djodS|ii|SqaWdSdS(Niiii<i(RXRWRfRRŁR…tSIG_TYPE_PK_USER_GENR(RStu_idRNtexp((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pyR3s!

cCsdS(Ni((RS((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pyRZDscCsĆ|ditjo$tdtt|diƒƒ‚n|d|_|ii|_|idjo‚d}||itjo‚||idjotd||iƒ‚n||it	jo$tdtt
||iƒƒ‚n|||_|d}nx–|t|ƒjoĖ||it
jo*td|tt||iƒfƒ‚n||g}|d}d}d}x
|t|ƒjoö||itjoā||itttttfjo*td|tt
||iƒfƒ‚n||idjotd||iƒ‚n|i||ƒ||itjo
d}n|io||itjo
|}n|d}qzW|io#|o|o|di|_n|o|ii|ƒq|ii|ƒqWn“d}g|_g|_g|_||itjob||id	jotd
||iƒ‚n||it	jo|||_|d}q}nx‚|t|ƒjon||itjoZ||itjo$tdtt
||iƒƒ‚n|ii||ƒ|d}q€Wx”|t|ƒjo€||it
jo6||g}d}d}|d}xį|t|ƒjoĶ||itjo¹||itttttfjo*td|tt
||iƒfƒ‚n|i||ƒ||itjo
d}n||id	jo||iƒo
d}n|d}qRW|o|ii|ƒq”|ii|ƒq||itjoų||g}|d}d}x©|t|ƒjo•||itjo||it t!fjo*td|tt
||iƒfƒ‚n|i||ƒ||it!jo
d}n|d}q–W|o|ii|ƒq”|ii|ƒqtd
|tt||iƒfƒ‚qWt|iƒdjotdƒ‚ndS(s load(pkts)
Initialize the pgp_certificate with a list of OpenPGP packets. The list of packets will
be scanned to make sure they are valid for a pgp certificate.is6first PGP packet should be a public-key packet, not %siis'version 3 cert has version %d signatures"v3 cert revocation sig has type %ss#pgp packet %d is not user id, is %ss/signature %d doesn't bind user_id to key, is %sis'version 4 cert has version %d signatures8v4 cert signature has type %s, supposed to be direct keys.signature %d doesn't bind subkey to key, is %ss-pgp packet %d is not user id or subkey, is %ss)no user id packet was present in the certN("RRtCTB_PKT_PK_CERTRRORURWRXtCTB_PKT_SIGR…tSIG_TYPE_KEY_REVOKERÖRŲR+tCTB_PKT_USER_IDRŽtSIG_TYPE_PK_USER_PERtSIG_TYPE_PK_USER_CAStSIG_TYPE_PK_USER_POStSIG_TYPE_CERT_REVOKEtsig_typRItcert_idRƒR‚RŚRŁtdirect_key_sigstsubkeystrvkd_subkeystSIG_TYPE_KEYRætCTB_PKT_PK_SUBtSIG_TYPE_SUBKEY_BINDtSIG_TYPE_SUBKEY_REVOKE(RStpktstpkt_idxR‚t
is_revokedRætsubkey((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pytloadGsø$
$
*

'#*

			
'$

'#*
%


'*
+(
RRRTRVRŻtpropertyR‚RRZRö(((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pyR×s					cCsĶt||dƒ\}}|t@tjo·d}|t@tjo
d}n|t@tjo
d}n|t@tjo
d}n|t@tjo
d}nd}|djot|||ƒ\}}n|t@d?||fS|t@t	joÅt||dƒ\}}|djo|t
@||fS|djo:t||dƒ\}}|t
@|dd>|d|fS|djo*t||dƒ\}}|t
@||fStd	|‚ntd
||f‚dS(sget_ctb(msg, idx)
extracts a the "cypher type bit" information from message msg at index idx
returns (type, len, new_idx) where type is the enumerated type of the packet,
len is the length of the packet, and new_idx is the index of the next element
in the messageiiiiiĄiąii’s=partial message bodies are not supported by this version (%d)s4unknown (not "normal") cypher type bit %d at byte %dN(R#tCTB_76_MASKt
CTB_76_NORMALtCTB_PKT_LEN_MASKt
CTB_PKT_LEN_1t
CTB_PKT_LEN_2t
CTB_PKT_LEN_4tCTB_PKT_LEN_UNDEFtCTB_PKTV2_MASKt
CTB_76_NEWtCTB_PKT_MASKt	Exception(RRR tn_lenRuR0R1((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pytget_ctbńs6






"
cCs‚d}d}|}xet|ƒD]W}|t|ƒd>A}x:tddƒD])}|d>}|d@o||A}qIqIWqW|d@S(	NiĪ·iūL†iiiiii’’’(R;R,trange(Rt
crc24_initt
crc24_polytcrcRNtj((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pytcrc24s

cCs g}d}t|ƒ}x||joót||ƒ\}}}d}|tjp
|tjo
tƒ}n5|tjo
tƒ}n|tjo
t	ƒ}n|oB||_
|i|||ƒtoti
|iƒdƒqntd||fƒ‚|i|ƒ||}qW|S(Nis
s unknown pgp packet type %d at %d(R+RRQRįRļRWRäR‚RāR„RRRytdebugR|RVRaRI(Rtpkt_listRtmsg_lenRRRutpkt((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pytdecode"s,





	
cCsYtd„|idƒƒ}d}d}tiƒ}x|D]}|p|djo
d}q:q:n|p$t|ƒdjo
d}q:q:n|ddjo£ti|dd!ƒ}d}t||dƒ\}}ti|iƒƒ}|i	ƒ|t
|ƒjo
td	‚nt|ƒ}	t
ƒ}
|
i|	ƒ||
_|
S|i|ƒq:WdS(
NcSs
|iƒS((trstrip(R8((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pyR9Dss
is$-----BEGIN PGP PUBLIC KEY BLOCK-----it=iisbad checksum on pgp message(R:tsplitRzR{R+tbase64tdecodestringR!R€tcloseR
RRR×Rötraw_keyR|RQ(Rtpgpkey_linestin_blocktin_datat	block_bufR(tcsumRNtcert_msgRtcert((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pyt
decode_msgAs:




	
	cCsĒg}td„|idƒƒ}d}d}x“|D]‹}|p,|djod}|d|7}q4qmn|d|7}|djo7d}t|ƒ}|o|i|ƒnd}q4q4q4W|S(	NcSs
|iƒS((R(R8((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pyR9yss
iR$s$-----BEGIN PGP PUBLIC KEY BLOCK-----is%s
s"-----END PGP PUBLIC KEY BLOCK-----(R:RRRI(RtcertsRRtblockR(R((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pytdecode_multiple_keysus(

(ŒRR}RzRRERtImportErrorRRRQRRłRRųR’RtCTB_PKT_PK_ENCRātCTB_PKT_SK_ENCtCTB_PKT_OP_SIGtCTB_PKT_SK_CERTRįtCTB_PKT_SK_SUBtCTB_PKT_COMPRESSEDtCTB_PKT_ENCtCTB_PKT_MARKERtCTB_PKT_LITt
CTB_PKT_TRUSTRäRļRURśRūRüRżRžRgtALGO_PK_RSA_ENC_ONLYRhRoRitALGO_PK_ELLIPTIC_CURVEt
ALGO_PK_ECDSARnt
ALGO_PK_DHRt
ALGO_SK_PLAINtALGO_SK_IDEAtALGO_SK_3DESt
ALGO_SK_CAST5tALGO_SK_BLOWFISHtALGO_SK_SAFER_SK128tALGO_SK_DES_SKtALGO_SK_AES_128tALGO_SK_AES_192tALGO_SK_AES_256RĮtALGO_COMP_UNCOMPt
ALGO_COMP_ZIPtALGO_COMP_ZLIBRÄt
ALGO_HASH_MD5tALGO_HASH_SHA1tALGO_HASH_RIPEMD160tALGO_HASH_SHA_DBLt
ALGO_HASH_MD2tALGO_HASH_TIGER192tALGO_HASH_HAVAL_5_160RĆtSIG_TYPE_DOCUMENTtSIG_TYPE_DOCUMENT_CANONtSIG_TYPE_STANDALONERŽRåRęRēRšRīRćRńRčtSIG_TYPE_TIMESTAMPRÖR‘R’R“R•R–R”RŒtSIG_SUB_TYPE_PLACEHOLDERR—R›RŠRœR˜R™RRžRŸR RšR”R¢tsig_sub_type_to_strtREVOKE_REASON_NONEtREVOKE_REASON_SUPERtREVOKE_REASON_COMPRtREVOKE_REASON_NOT_USEDtREVOKE_REASON_ID_INVALIDRĖRÅRĘRĒRČRÉRŹtREVOKE_KEY_CLASS_MANDRĀR!R#R*R/R2R4R5R<RBRORPRWR‚R„tobjectR×RR
RRR!(((s./usr/lib/python2.6/site-packages/yum/pgpmsg.pyt<module>s“<








	
											r’Ś	$	
		4

Youez - 2016 - github.com/yon3zu
LinuXploit