U
    Øccó  ã                   @   sv   d dl ZejjZed ZejjZejjZ	ejj
Zed ZejjZejjZejjZejjZejjZeeedœdd„ZdS )é    Né   )Úpassword_hashÚpasswordÚreturnc                 C   s   t j | |¡S )a¡  
    Takes a modular crypt encoded argon2i or argon2id stored password hash
    and checks if the user provided password will hash to the same string
    when using the stored parameters

    :param password_hash: password hash serialized in modular crypt() format
    :type password_hash: bytes
    :param password: user provided password
    :type password: bytes
    :rtype: boolean

    .. versionadded:: 1.2
    )ÚnaclÚbindingsZcrypto_pwhash_str_verify)r   r   © r   ú7/tmp/pip-unpacked-wheel-e6sdgn5m/nacl/pwhash/_argon2.pyÚverify#   s    r
   )Znacl.bindingsr   r   Zcrypto_pwhash_STRBYTESZ_argon2_strbytes_plus_oneZPWHASH_SIZEZcrypto_pwhash_SALTBYTESZ	SALTBYTESZcrypto_pwhash_PASSWD_MINZ
PASSWD_MINZcrypto_pwhash_PASSWD_MAXZ
PASSWD_MAXZcrypto_pwhash_BYTES_MAXZ	BYTES_MAXZcrypto_pwhash_BYTES_MINZ	BYTES_MINZcrypto_pwhash_ALG_ARGON2I13ZALG_ARGON2I13Zcrypto_pwhash_ALG_ARGON2ID13ZALG_ARGON2ID13Zcrypto_pwhash_ALG_DEFAULTZALG_ARGON2_DEFAULTÚbytesÚboolr
   r   r   r   r	   Ú<module>   s   