DonatShell
Server IP : 180.180.241.3  /  Your IP : 216.73.216.252
Web Server : Microsoft-IIS/7.5
System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586
User : IUSR ( 0)
PHP Version : 5.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Program Files/MySQL/MySQL Workbench 6.3 CE/python/site-packages/ecdsa/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /Program Files/MySQL/MySQL Workbench 6.3 CE/python/site-packages/ecdsa/util.pyc
ó
rKXc@ soddlmZddlZddlZddlZddlmZddlmZddl	m
Z
ddlmZm
Z
mZmZd!ZejeŒZdd„Zdd"d
„ƒYZd„Zd„Zd„Zed„Zed„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z!d„Z"d„Z#d„Z$d„Z%d„Z&d„Z'd „Z(dS(#iÿÿÿÿ(tdivisionN(tsha256i(tder(torderlen(tPY3tint2bytetbtnextiiHi='cC s¦|dkrtj}n|dks*t‚t|ƒ}d}xS|dkr‘|d8}t||ƒƒd}d|ko‚|knr?|Sq?q?Wtd|ƒ‚dS(sÉReturn a random integer k such that 1 <= k < order, uniformly
    distributed across that range. For simplicity, this only behaves well if
    'order' is fairly close (but below) a power of 256. The try-try-again
    algorithm we use takes longer and longer time (on average) to complete as
    'order' falls, rising to a maximum of avg=512 loops for the worst-case
    (256**k)+1 . All of the standard curves behave well. There is a cutoff at
    10k loops (which raises RuntimeError) to prevent an infinite loop when
    something is really broken like the entropy function not working.

    Note that this function is not declared to be forwards-compatible: we may
    change the behavior in future releases. The entropy= argument (which
    should get a callable that behaves like os.urandom) can be used to
    achieve stability within a given release (for repeatable unit tests), but
    should not be used as a long-term-compatible key generation algorithm.
    ii'islrandrange() tried hard but gave up, either something is very wrong or you got realllly unlucky. Order was %xN(tNonetosturandomtAssertionErrorRtstring_to_numbertRuntimeError(tordertentropytbytestdont_try_forevert	candidate((sPC:\Program Files\MySQL\MySQL Workbench 6.3 CE/python/site-packages\ecdsa\util.pyt	randranges
tPRNGcB s#eZd„Zd„Zd„ZRS(cC s|j|ƒ|_dS(N(tblock_generatort	generator(tselftseed((sPC:\Program Files\MySQL\MySQL Workbench 6.3 CE/python/site-packages\ecdsa\util.pyt__init__AscC sIgt|ƒD]}t|jƒ^q
}tr8t|ƒSdj|ƒSdS(Nt(trangeRRRRtjoin(Rtnumbytestita((sPC:\Program Files\MySQL\MySQL Workbench 6.3 CE/python/site-packages\ecdsa\util.pyt__call__Ds(
cc sSd}xFtrNx/td||fjƒƒjƒD]}|Vq2W|d7}q	WdS(Nis
prng-%d-%si(tTrueRtencodetdigest(RRtcountertbyte((sPC:\Program Files\MySQL\MySQL Workbench 6.3 CE/python/site-packages\ecdsa\util.pyRMs
	)	(t__name__t
__module__RR R(((sPC:\Program Files\MySQL\MySQL Workbench 6.3 CE/python/site-packages\ecdsa\util.pyR;s			cC sut|ƒdt|ƒƒ}ttj|ƒdƒ|dd}d|koW|knsqtd||fƒ‚|S(Niii(RRtinttbinasciithexlifyR(RRtbasetnumber((sPC:\Program Files\MySQL\MySQL Workbench 6.3 CE/python/site-packages\ecdsa\util.pyt%randrange_from_seed__overshoot_moduloTs$1cC sd|>dS(Ni((tnumbits((sPC:\Program Files\MySQL\MySQL Workbench 6.3 CE/python/site-packages\ecdsa\util.pytlsb_of_ones`scC sAttj|ddƒdƒ}|d}|d}|||fS(Niii(R(tmathtlog(RtbitsRt	extrabits((sPC:\Program Files\MySQL\MySQL Workbench 6.3 CE/python/site-packages\ecdsa\util.pytbits_and_bytesbs 

cC s˜t|ƒ\}}}|r(|d7}n||ƒjƒ| }d|t|ƒ|}dttj|ƒdƒ}d|ko‰|kns”t‚|S(Niti(R4R#tlenR(R)R*R(RRthashmodR2RR3R+R,((sPC:\Program Files\MySQL\MySQL Workbench 6.3 CE/python/site-packages\ecdsa\util.pyt#randrange_from_seed__truncate_bytesss
"cC sÝttj|ddƒdƒ}|dd}||ƒjƒ| }d|t|ƒ|}d||}|r›tt|dƒt|ƒ@ƒ|d}ndttj	|ƒdƒ}d|koÎ|knsÙt
‚|S(NiiiiR5ii(R(R0R1R#R6RtordR/R)R*R(RRR7R2tmaxbytesR+ttopbitsR,((sPC:\Program Files\MySQL\MySQL Workbench 6.3 CE/python/site-packages\ecdsa\util.pyt"randrange_from_seed__truncate_bits€s +"cC sµ|dkst‚t|ƒ\}}}t|ƒ}x{tr°tdƒ}|rstt|dƒƒt|ƒ@ƒ}nt|||ƒƒd}d|ko¤|knr6|Sq6WdS(NiR(	RR4RR!RRR9R/R(RRR2RR3tgeneratet	extrabytetguess((sPC:\Program Files\MySQL\MySQL Workbench 6.3 CE/python/site-packages\ecdsa\util.pyt randrange_from_seed__trytryagainŽs	%cC skt|ƒ}dtd|ƒd}tj||jƒƒ}t|ƒ|ksgtt|ƒ|fƒ‚|S(Ns%0itx(RtstrR)t	unhexlifyR"R6R(tnumRtltfmt_strtstring((sPC:\Program Files\MySQL\MySQL Workbench 6.3 CE/python/site-packages\ecdsa\util.pytnumber_to_string¡s
*cC sEt|ƒ}dtd|ƒd}tj||jƒƒ}|| S(Ns%0iRA(RRBR)RCR"(RDRRERFRG((sPC:\Program Files\MySQL\MySQL Workbench 6.3 CE/python/site-packages\ecdsa\util.pytnumber_to_string_crop¨scC sttj|ƒdƒS(Ni(R(R)R*(RG((sPC:\Program Files\MySQL\MySQL Workbench 6.3 CE/python/site-packages\ecdsa\util.pyR®scC sLt|ƒ}t|ƒ|ks6tt|ƒ|fƒ‚ttj|ƒdƒS(Ni(RR6RR(R)R*(RGRRE((sPC:\Program Files\MySQL\MySQL Workbench 6.3 CE/python/site-packages\ecdsa\util.pytstring_to_number_fixedlen±s*cC s(t||ƒ}t||ƒ}||fS(N(RH(trtsRtr_strts_str((sPC:\Program Files\MySQL\MySQL Workbench 6.3 CE/python/site-packages\ecdsa\util.pytsigencode_stringsºscC s t|||ƒ\}}||S(N(RO(RKRLRRMRN((sPC:\Program Files\MySQL\MySQL Workbench 6.3 CE/python/site-packages\ecdsa\util.pytsigencode_string¿scC s"tjtj|ƒtj|ƒƒS(N(Rtencode_sequencetencode_integer(RKRLR((sPC:\Program Files\MySQL\MySQL Workbench 6.3 CE/python/site-packages\ecdsa\util.pyt
sigencode_derÅscC s-||dkr||}nt|||ƒS(Ni(RO(RKRLR((sPC:\Program Files\MySQL\MySQL Workbench 6.3 CE/python/site-packages\ecdsa\util.pytsigencode_strings_canonizeËs
cC s-||dkr||}nt|||ƒS(Ni(RP(RKRLR((sPC:\Program Files\MySQL\MySQL Workbench 6.3 CE/python/site-packages\ecdsa\util.pytsigencode_string_canonizeÐs
cC s-||dkr||}nt|||ƒS(Ni(RS(RKRLR((sPC:\Program Files\MySQL\MySQL Workbench 6.3 CE/python/site-packages\ecdsa\util.pytsigencode_der_canonizeÕs
cC snt|ƒ}t|ƒd|ks>tt|ƒd|fƒ‚t|| |ƒ}t|||ƒ}||fS(Ni(RR6RRJ(t	signatureRRERKRL((sPC:\Program Files\MySQL\MySQL Workbench 6.3 CE/python/site-packages\ecdsa\util.pytsigdecode_stringÛs
2cC s”|\}}t|ƒ}t|ƒ|ksBtt|ƒ|fƒ‚t|ƒ|ksltt|ƒ|fƒ‚t||ƒ}t||ƒ}||fS(N(RR6RRJ(t
rs_stringsRRMRNRERKRL((sPC:\Program Files\MySQL\MySQL Workbench 6.3 CE/python/site-packages\ecdsa\util.pytsigdecode_stringsâs**cC s«tj|ƒ\}}|tdƒkrFtjdtj|ƒƒ‚ntj|ƒ\}}tj|ƒ\}}|tdƒkr¡tjdtj|ƒƒ‚n||fS(NRstrailing junk after DER sig: %ss#trailing junk after DER numbers: %s(Rtremove_sequenceRt
UnexpectedDERR)R*tremove_integer(tsig_derRRYtemptyRKtrestRL((sPC:\Program Files\MySQL\MySQL Workbench 6.3 CE/python/site-packages\ecdsa\util.pyt
sigdecode_derës		(iiiHi='ii(()t
__future__RR	R0R)thashlibRRRtcurvesRtsixRRRRtoid_ecPublicKeyt
encode_oidtencoded_oid_ecPublicKeyRRRR-R/R4R8R<R@RHRIRRJRORPRSRTRURVRXRZRa(((sPC:\Program Files\MySQL\MySQL Workbench 6.3 CE/python/site-packages\ecdsa\util.pyt<module>s<"(			
															

Anon7 - 2022
AnonSec Team