MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //proc/3/root/usr/lib/python2.4/site-packages/dns/rdtypes/ANY/NSEC3.pyc
mò
-=Pc@sdkZdkZdkZdkZdkZdkZdkZeiddƒZ	eiddƒZ
dZdZdei
ifd„ƒYZdS(Nt 0123456789ABCDEFGHIJKLMNOPQRSTUVt ABCDEFGHIJKLMNOPQRSTUVWXYZ234567itNSEC3cBs‰tZdZddddddgZd„Zeed„Zeed	„Ze	eƒZeed
„Z
ed„Ze	eƒZd„ZRS(
sžNSEC3 record

    @ivar algorithm: the hash algorithm number
    @type algorithm: int
    @ivar flags: the flags
    @type flags: int
    @ivar iterations: the number of iterations
    @type iterations: int
    @ivar salt: the salt
    @type salt: string
    @ivar next: the next name hash
    @type next: string
    @ivar windows: the windowed bitmap list
    @type windows: list of (window number, string) tuplest	algorithmtflagst
iterationstsalttnexttwindowsc		CsStt|ƒi||ƒ||_||_||_||_	||_
||_dS(N(tsuperRtselft__init__trdclasstrdtypeRRRRRR(	R
RR
RRRRRR((t9/usr/lib/python2.4/site-packages/dns/rdtypes/ANY/NSEC3.pyR6s					c
Ks3ti|iƒitƒiƒ}|idjo
d}n|iidƒ}d}xº|i
D]¯\}	}g}xƒtdt|ƒƒD]l}t||ƒ}
xStddƒD]B}|
d|?@o-|itii|	d|d|ƒƒq«q«Wq…W|ddi|ƒ7}q]Wd	|i|i|i|||fS(
Ntt-s	hex-codeciii€it s%u %u %u %s %s%s(tbase64t	b32encodeR
Rt	translatetb32_normal_to_hextlowerRtencodettextRtwindowtbitmaptbitstxrangetlentitordtbytetjtappendtdnst	rdatatypetto_texttjoinRRR(
R
torigint
relativizetkwR!RRRRRR RR((RR%@s"!

5c	Css|iƒ}|iƒ}|iƒ}|iƒ}|djo
d}n|idƒ}|iƒi	ƒi
tƒ}
t
i|
ƒ}
g}x‘|iƒiƒ}|iƒoPntii|iƒ}|djotiidƒ‚n|djotiidƒ‚n|i|ƒq‰W|iƒd}d}
d}d	gd
}g}xÔ|D]Ì}||joqPn|}|d}||joK|
djo'|i|di#|d|
!ƒfƒnd	gd
}|}n|d}|d}|d}	|d}
t't(||ƒd
|	?Bƒ||<qPW|
djo'|i|di#|d|
!ƒfƒn||||||||
|ƒS(NRRs	hex-codeciisNSEC3 with bit 0iÿÿsNSEC3 with bit > 65535ti iii€(,ttokt	get_uint8RRt
get_uint16Rt
get_stringRtdecodetupperRtb32_hex_to_normalRRt	b32decodetrdtypestgettunescapettokent
is_eol_or_eofR#R$t	from_texttvaluetnrdtypet	exceptiontSyntaxErrorR"tsortRtoctetstprior_rdtypeRRt
new_windowR&toffsetR tbittchrRtclsRR
(RDRR
R+R'R(RR3RRBRRR?R>R@RAR R:RRR6RR((RR8Ss\










'





&
'cCsÙt|iƒ}|itid|i|i	|i
|ƒƒ|i|iƒt|iƒ}|itid|ƒƒ|i|iƒxP|iD]E\}}|it|ƒƒ|itt|ƒƒƒ|i|ƒqŒWdS(Ns!BBHBs!B(RR
RtltfiletwritetstructtpackRRRRRRRRC(R
RFtcompressR'RERR((Rtto_wire„s
c	Csætid|||d!ƒ\}}}
}|d7}|d8}||||!i	ƒ}||7}||8}tid||ƒ\}
|d7}|d8}||||
!i	ƒ}||
7}||
8}g}xþ|djoð|djotiidƒ‚nt||ƒ}t||dƒ}	|	djp
|	djotiid	ƒ‚n|d
7}|d
8}||	jotiidƒ‚n||||	!i	ƒ}||	7}||	8}|i||fƒqÉW||||||
|||ƒS(Ns!BBHBis!BiiisNSEC3 too shorti sbad NSEC3 octetsisbad NSEC3 bitmap length(RHtunpacktwiretcurrentRRRtslentrdlentunwrapRtnlenRRR#R;t	FormErrorRRR>RR"RDRR
(RDRR
RMRNRPR'RRR>RRRRRRRORR((Rt	from_wire‘s>	 














cCsKtiƒ}|i|ƒtiƒ}|i|ƒt|iƒ|iƒƒS(N(	t	cStringIOtStringIOtb1R
RKtb2tothertcmptgetvalue(R
RYRWRX((Rt_cmp³s


(
t__name__t
__module__t__doc__t	__slots__RtNonetTrueR%R8tclassmethodRKRTR\(((RR$s	
/
 (RRUtstringRHt
dns.exceptionR#t	dns.rdatat
dns.rdatatypet	maketransR1RtSHA1tOPTOUTtrdatatRdataR(
RURiRdRjRRR1RR#RH((Rt?s