File: //proc/3/root/usr/lib/python2.4/site-packages/dns/rdtypes/ANY/DNSKEY.pyc
mò
!`Nc @ sV d k Z d k Z d k Z d k Z d Z d Z d Z d e i i f d YZ
d S( Ni i i t DNSKEYc B s t Z d Z d d d d g Z d Z e e d Z e e d Z e e Z e e d Z
e d Z e e Z d
Z RS( s DNSKEY record
@ivar flags: the key flags
@type flags: int
@ivar protocol: the protocol for which this key may be used
@type protocol: int
@ivar algorithm: the algorithm used for the key
@type algorithm: int
@ivar key: the public key
@type key: stringt flagst protocolt algorithmt keyc C sA t t | i | | | | _ | | _ | | _ | | _ d S( N(
t superR t selft __init__t rdclasst rdtypeR R R R ( R R R R R R R ( ( t: /usr/lib/python2.4/site-packages/dns/rdtypes/ANY/DNSKEY.pyR * s
c K s, d | i | i | i t i i | i f S( Ns %d %d %d %s( R R R R t dnst rdatat
_base64ifyR ( R t origint
relativizet kw( ( R
t to_text1 s c
C sÆ | i } | i } t i i | i } g } xV | i i }
|
i o Pn |
i p t i i n | i |
i q9 Wd i | } | i d } | | | | | | | S( Ni t t base64_codec( t tokt
get_uint16R t get_uint8R R t dnssect algorithm_from_textt
get_stringR t chunkst gett unescapet tt
is_eol_or_eoft
is_identifiert exceptiont SyntaxErrort appendt valuet joint b64t decodeR t clsR R (
R' R R R R R R R% R R R R R ( ( R
t from_text5 s
c C sB t i d | i | i | i } | i | | i | i d S( Ns !HBB(
t structt packR R R R t headert filet writeR ( R R, t compressR R+ ( ( R
t to_wireG s !
c C s | d j o t i i n t i d | | | d ! } | d 7} | d 8} | | | | !i } | | | | d | d | d | S( Ni s !HBBi i i ( t rdlenR R t FormErrorR) t unpackt wiret currentR+ t unwrapR R' R R ( R' R R R3 R4 R0 R R R+ ( ( R
t from_wireL s
c C s{ t i d | i | i | i } t i d | i | i | i } t | | } | d j o t | i | i } n | S( Ns !HBBi ( R) R* R R R R t hst othert hot cmpt vR ( R R8 R7 R9 R; ( ( R
t _cmpX s !!
(
t __name__t
__module__t __doc__t __slots__R t Nonet TrueR R( t classmethodR/ R6 R<