Submit
Path:
~
/
/
opt
/
alt
/
python37
/
lib64
/
python3.7
/
site-packages
/
cryptography
/
hazmat
/
primitives
/
kdf
/
__pycache__
/
File Content:
scrypt.cpython-37.opt-1.pyc
B \��`� � @ s� d dl mZmZmZ d dlZd dlmZ d dlmZm Z m Z mZ d dlm Z d dlmZ d dlmZ ejd Ze�e�G d d � d e��ZdS )� )�absolute_import�division�print_functionN)�utils)�AlreadyFinalized� InvalidKey�UnsupportedAlgorithm�_Reasons)� ScryptBackend)� constant_time)�KeyDerivationFunction� c @ s$ e Zd Zdd� Zdd� Zdd� ZdS )�Scryptc C s� t |t�stdtj��|| _t |t�s.td��|dk sF||d @ dkrNtd��|dk r^td��|dk rntd��d | _ || _ || _|| _|| _ || _d S ) Nz0Backend object does not implement ScryptBackend.zsalt must be bytes.r � r z-n must be greater than 1 and be a power of 2.z%r must be greater than or equal to 1.z%p must be greater than or equal to 1.F)� isinstancer r r ZBACKEND_MISSING_INTERFACE�_length�bytes� TypeError� ValueError�_used�_salt�_n�_r�_p�_backend)�selfZsalt�length�n�r�pZbackend� r �\/opt/alt/python37/lib64/python3.7/site-packages/cryptography/hazmat/primitives/kdf/scrypt.py�__init__ s&