Viewing File: /usr/lib64/python2.7/site-packages/dns/rdtypes/ANY/HIP.pyc
ó
!`Nc @ sh d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d e j j f d „ ƒ YZ d S( iÿÿÿÿNt HIPc B s’ e Z d Z d d d d g Z d „ Z d e d „ Z d e d „ Z e e ƒ Z d d d „ Z
d d „ Z e e ƒ Z d e d
„ Z d „ Z
RS(
s= HIP record
@ivar hit: the host identity tag
@type hit: string
@ivar algorithm: the public key cryptographic algorithm
@type algorithm: int
@ivar key: the public key
@type key: string
@ivar servers: the rendezvous servers
@type servers: list of dns.name.Name objects
@see: RFC 5205t hitt algorithmt keyt serversc C sA t t | ƒ j | | ƒ | | _ | | _ | | _ | | _ d S( N( t superR t __init__R R R R ( t selft rdclasst rdtypeR R R R ( ( s9 /usr/lib64/python2.7/site-packages/dns/rdtypes/ANY/HIP.pyR ' s
c K s² | j j d ƒ } | j j d ƒ j d d ƒ } d } g } x0 | j D]% } | j t | j | | ƒ ƒ ƒ qF Wt | ƒ d k r› | d d j | ƒ 7} n d | j
| | | f S( Ns hex-codecs base64-codecs
t i t s
%u %s %s%s( R t encodeR t replaceR t appendt strt choose_relativityt lent joinR ( R t origint
relativizet kwR R t textR t server( ( s9 /usr/lib64/python2.7/site-packages/dns/rdtypes/ANY/HIP.pyt to_text. s #c C sÓ | j ƒ } | j ƒ j d ƒ } t | ƒ d k rH t j j d ƒ ‚ n | j ƒ j d ƒ } g } xT | j ƒ }
|
j ƒ r‚ Pn t j j
|
j | ƒ } | j | | ƒ | j
| ƒ qf | | | | | | | ƒ S( Ns hex-codeciÿ s HIT too longs base64-codec( t get_uint8t
get_stringt decodeR t dnst exceptiont SyntaxErrort gett
is_eol_or_eoft namet from_textt valueR R ( t clsR R t tokR R R R R R t tokenR ( ( s9 /usr/lib64/python2.7/site-packages/dns/rdtypes/ANY/HIP.pyR"