AlkantarClanX12
Current Path : /usr/lib/python3.6/site-packages/dnf/__pycache__/ |
Current File : //usr/lib/python3.6/site-packages/dnf/__pycache__/dnssec.cpython-36.pyc |
3 �ft`;, � @ s� d dl mZ d dl mZ d dl mZ d dlmZ d dlZd dlZd dlZd dl Z d dl mZ d dlZ d dlZ ejd�ZdZG d d � d e jj�Zddd �ZG dd� de�ZG dd� d�ZG dd� d�ZG dd� d�Zdd� Zdd� ZG dd� d�ZdS )� )�print_function)�absolute_import)�unicode_literals)�EnumN)�_�dnf�= c @ s e Zd ZdZdd� ZdS )�DnssecErrorz- Exception used in the dnssec module c C s dj | jd k r| jnd�S )Nz<DnssecError, value='{}'>z Not specified)�format�value)�self� r �/usr/lib/python3.6/dnssec.py�__repr__- s zDnssecError.__repr__N)�__name__� __module__�__qualname__�__doc__r r r r r r ) s r �_openpgpkeyc C s~ | j d�}t|�dkr"d}t|��|d }|d }tj� }|j|jd�� tj|j � dd� �j d�j� }|d | d | S ) z� Implements RFC 7929, section 3 https://tools.ietf.org/html/rfc7929#section-3 :param email_address: :param tag: :return: �@� z0Email address must contain exactly one '@' sign.r � zutf-8� �.)�split�lenr �hashlibZsha256�update�encode�base64Z b16encode�digest�decode�lower)Z email_address�tagr �msgZlocalZdomain�hashr r r r �email2location2 s r&