+
    niZ
                     J    R t ^ RIt^ RIHtHt ^ RIt^ RItR R ltR R lt	R# )zA place to store TSIG keys.N)AnyDictc                    V ^8  d   QhR\         \        \        3,          R\         \        P                  P
                  \        3,          /# )   textringreturn)r   strr   dnsnameName)formats   "iC:\Users\petid\OneDrive\Desktop\Maestro\MAESTRO\maestro-backend\venv\Lib\site-packages\dns/tsigkeyring.py__annotate__r      s4      S#X 4s0B+C     c                L   / pV P                  4        F  w  r#\        P                  P                  V4      p\	        V\
        4      '       d.   \        P                  P                  WC4      P                  W&   Kg  Vw  rV\        P                  P                  WFV4      W&   K  	  V# )a'  Convert a dictionary containing (textual DNS name, base64 secret)
pairs into a binary keyring which has (dns.name.Name, bytes) pairs, or
a dictionary containing (textual DNS name, (algorithm, base64 secret))
pairs into a binary keyring which has (dns.name.Name, dns.tsig.Key) pairs.
@rtype: dict)	itemsr	   r
   	from_text
isinstancer   tsigKeysecret)r   keyringr
   valuekname	algorithmr   s   &      r   r   r      s|     )+G~~'""4(eS!! XX\\%7>>GN"'Y XX\\%CGN ( Nr   c                    V ^8  d   QhR\         \        P                  P                  \        3,          R\         \
        \        3,          /# )r   r   r   )r   r	   r
   r   r   r   )r   s   "r   r   r   -   s4      T#((--,- $sCx. r   c                r   / pR pV P                  4        F  w  r4VP                  4       p\        V\        4      '       d   V! V4      W&   K7  \        VP                  \        4      '       d   V! VP                  4      pM\        VP                  4      pVP                  P                  4       V3W&   K  	  V# )a+  Convert a dictionary containing (dns.name.Name, dns.tsig.Key) pairs
into a text keyring which has (textual DNS name, (textual algorithm,
base64 secret)) pairs, or a dictionary containing (dns.name.Name, bytes)
pairs into a text keyring which has (textual DNS name, base64 secret) pairs.
@rtype: dictc                 f    \         P                  ! V 4      P                  4       P                  4       # )N)base64encodebytesdecoderstrip)r   s   &r   	b64encodeto_text.<locals>.b64encode6   s%    !!&)00299;;r   )r   to_textr   bytesr   r   r   )r   r   r"   r
   keytnametext_secrets   &      r   r$   r$   -   s     H< ]]_	c5!!'nHO#**e,,'

3!#**o"}}446DHO % Or   )
__doc__r   typingr   r   dns.namer	   dns.tsigr   r$    r   r   <module>r.      s    $ "    $r   