/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util
NameSizeModeActions
asn1.py127270644editdlrm
asn1.pyc142050644editdlrm
asn1.pyo142050644editdlrm
Counter.py51570644editdlrm
Counter.pyc42640644editdlrm
Counter.pyo42640644editdlrm
number.py954880644editdlrm
number.pyc1138970644editdlrm
number.pyo1138450644editdlrm
py3compat.py39120644editdlrm
py3compat.pyc42730644editdlrm
py3compat.pyo42730644editdlrm
py21compat.py27790644editdlrm
py21compat.pyc14770644editdlrm
py21compat.pyo14770644editdlrm
randpool.py27680644editdlrm
randpool.pyc34080644editdlrm
randpool.pyo34080644editdlrm
RFC1751.py211860644editdlrm
RFC1751.pyc293540644editdlrm
RFC1751.pyo293540644editdlrm
strxor.so222570755editdlrm
winrandom.py11960644editdlrm
winrandom.pyc2530644editdlrm
winrandom.pyo2530644editdlrm
_counter.so395660755editdlrm
_number_new.py40510644editdlrm
_number_new.pyc36610644editdlrm
_number_new.pyo35330644editdlrm
__init__.py15070644editdlrm
__init__.pyc7310644editdlrm
__init__.pyo7310644editdlrm
Edit: /opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/asn1.pyc (14205B)
Ñò Bd\Rc @sÒddklZlZddkZddkTdddddd gZddd „ƒYZdefd „ƒYZdefd „ƒYZdefd „ƒYZ defd„ƒYZ d efd„ƒYZ d„Z dS(iÿÿÿÿ(t long_to_bytest bytes_to_longN(t*t DerObjectt DerIntegertDerOctetStringtDerNullt DerSequencet DerObjectIdcBsƒeZdZhdd6dd6dd6dd6d d 6d d 6Zded ƒd„Zd„Zd„Zd„Z d„Z dd„Z RS(sBase class for defining a single DER object. Instantiate this class ONLY when you have to decode a DER element. i0tSEQUENCEis BIT STRINGitINTEGERis OCTET STRINGitNULLisOBJECT IDENTIFIERtcCsot|ƒp |djo ||_n<t|ƒdjot|ƒ|_n|ii|ƒ|_||_dS(sðInitialize the DER object according to a specific type. The ASN.1 type is either specified as the ASN.1 string (e.g. 'SEQUENCE'), directly with its numerical tag or with no tag at all (None).iN(tisInttNonettypeTagtlentordttypeTagstgettpayload(tselftASN1TypeR((sC/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/asn1.pyt__init__'s  cCs|i||ijS(N(RR(RR((sC/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/asn1.pytisType6scCs<|djo%t|ƒ}tt|ƒdƒ|St|ƒS(s•Return a byte string that encodes the given payload length (in bytes) in a format suitable for a DER length tag (L). ii€(RtbchrR(Rt payloadLentencoding((sC/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/asn1.pyt _lengthOctets9s  cCs*t|iƒ|it|iƒƒ|iS(s6Return a complete DER element, fully encoded as a TLV.(RRRRR(R((sC/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/asn1.pytencodeBscCs‚t||ƒ}|djo||dfSt||d|d|d@!ƒ}|djotdƒ‚n||d|d@fS(s…Given a (part of a) DER element, and an index to the first byte of a DER length tag (L), return a tuple with the payload size, and the index of the first byte of the such payload (V). Raises a ValueError exception if the DER length is invalid. Raises an IndexError exception if the DER element is too short. iisNot a DER length tag.(tbordRt ValueError(Rtidxtdertlengtht payloadLength((sC/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/asn1.pyt _decodeLenFs # icCs¿y•t|dƒ|_|id@djotdƒ‚n|id|ƒ\}}|o't|ƒ||jotdƒ‚n||||!|_Wntj otdƒ‚nX||S(sÎDecode a complete DER element, and re-initializes this object with it. @param derEle A complete DER element. It must start with a DER T tag. @param noLeftOvers Indicate whether it is acceptable to complete the parsing of the DER element and find that not all bytes in derEle have been used. @return Index of the first unused byte in the given DER element. Raises a ValueError exception in case of parsing errors. Raises an IndexError exception if the DER element is too short. iisUnsupported DER tagisNot a DER structuresNot a valid DER SEQUENCE.(RRRR$RRt IndexError(RtderElet noLeftOversR"R ((sC/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/asn1.pytdecodeVsN( t__name__t __module__t__doc__RRtbRRRRR$R((((sC/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/asn1.pyRs   cBs)eZdd„Zd„Zdd„ZRS(icCsti|dƒ||_dS(s|Class to model an INTEGER DER element. Limitation: only non-negative values are supported. R N(RRtvalue(RR-((sC/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/asn1.pyRqscCsSt|iƒ|_t|idƒdjotdƒ|i|_nti|ƒS(s>Return a complete INTEGER DER element, fully encoded as a TLV.ii(RR-RRRRR(R((sC/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/asn1.pyRyscCs|ti|||ƒ}|i|idjotdƒ‚nt|idƒdjotdƒ‚nt|iƒ|_|S(sDecode a complete INTEGER DER element, and re-initializes this object with it. @param derEle A complete INTEGER DER element. It must start with a DER INTEGER tag. @param noLeftOvers Indicate whether it is acceptable to complete the parsing of the DER element and find that not all bytes in derEle have been used. @return Index of the first unused byte in the given DER element. Raises a ValueError exception if the DER element is not a valid non-negative INTEGER. Raises an IndexError exception if the DER element is too short. R sNot a DER INTEGER.iisNegative INTEGER.( RR(RRRRRRR-(RR&R't tlvLength((sC/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/asn1.pyR(€s(R)R*RRR((((sC/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/asn1.pyRps  cBs‰eZdZdd„Zd„Zd„Zd„Zd„Zd„Z d„Z d„Z d „Z d „Z d „Zd „Zd d„ZRS(sClass to model a SEQUENCE DER element. This object behave like a dynamic Python sequence. Sub-elements that are INTEGERs, look like Python integers. Any other sub-element is a binary string encoded as the complete DER sub-element (TLV). cCs7ti|dƒ|djo g|_n ||_dS(sKInitialize the SEQUENCE DER object. Always empty initially.R N(RRRt_seq(RtstartSeq((sC/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/asn1.pyR s  cCs|i|=dS(N(R/(Rtn((sC/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/asn1.pyt __delitem__«scCs |i|S(N(R/(RR1((sC/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/asn1.pyt __getitem__­scCs||i|¹scCsttt|iƒƒS(s=Return the number of items in this sequence that are numbers.(RtfilterR R/(R((sC/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/asn1.pythasInts¼scCs#|io|iƒt|iƒjS(s6Return True if all items in this sequence are numbers.(R/RAR(R((sC/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/asn1.pyt hasOnlyIntsÀscCs‚tdƒ|_xc|iD]X}y|i|7_Wqy|it|ƒiƒ7_Wqqtdƒ‚qqXqXqWti|ƒS(s;Return the DER encoding for the ASN.1 SEQUENCE, containing the non-negative integers and longs added to this object. Limitation: Raises a ValueError exception if it some elements in the sequence are neither Python integers nor complete DER INTEGERs. R s&Trying to DER encode an unknown object(R,RR/RRRR(RR?((sC/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/asn1.pyRÄs ic Cs;g|_y ti|||ƒ}|i|idjotdƒ‚nd}xÃ|t|iƒjo¬t|i|ƒ}||idjo:t ƒ}||i|i|ƒ7}|ii |i ƒqQ|i |d|iƒ\}}|ii |i|||!ƒ||}qQWWnt j otdƒ‚nX|S(sŸDecode a complete SEQUENCE DER element, and re-initializes this object with it. @param derEle A complete SEQUENCE DER element. It must start with a DER SEQUENCE tag. @param noLeftOvers Indicate whether it is acceptable to complete the parsing of the DER element and find that not all bytes in derEle have been used. @return Index of the first unused byte in the given DER element. DER INTEGERs are decoded into Python integers. Any other DER element is not decoded. Its validity is not checked. Raises a ValueError exception if the DER element is not a valid DER SEQUENCE. Raises an IndexError exception if the DER element is too short. R sNot a DER SEQUENCE.iR isNot a valid DER SEQUENCE.(R/RR(RRRRRRRR>R-R$R%( RR&R'R.R Rt newIntegertitemLentitemIdx((sC/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/asn1.pyR(Ös&  N(R)R*R+RRR2R3R5R9R:R<R=R>RARBRR((((sC/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/asn1.pyR—s           cBs&eZedƒd„Zdd„ZRS(R cCsti|dƒ||_dS(Ns OCTET STRING(RRR(RR-((sC/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/asn1.pyRÿsicCs6ti||ƒ}|idƒptdƒ‚n|S(Ns OCTET STRINGsNot a valid OCTET STRING.(RR(RR(RR&R'tp((sC/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/asn1.pyR(s(R)R*R,RR((((sC/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/asn1.pyRþscBseZd„ZRS(cCsti|dƒdS(NR (RR(R((sC/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/asn1.pyR s(R)R*R(((sC/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/asn1.pyR scBseZd„Zdd„ZRS(cCsti|dƒdS(NsOBJECT IDENTIFIER(RR(R((sC/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/asn1.pyRsicCs6ti||ƒ}|idƒptdƒ‚n|S(NsOBJECT IDENTIFIERsNot a valid OBJECT IDENTIFIER.(RR(RR(RR&R'RF((sC/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/asn1.pyR(s(R)R*RR((((sC/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/asn1.pyR s cCs/d}y||7}Wntj odSXdS(Nii(t TypeError(txttest((sC/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/asn1.pyR s (( tCrypto.Util.numberRRtsystCrypto.Util.py3compatt__all__RRRRRRR (((sC/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/asn1.pyts  S'g