Ë
    zñ�jR  ã                   ó^  — d dl Zd dlZddlmZ ej
                  Zej                  j                  Z	ej                  Z
ej                  Zej                  Zej                  Zej                  Zej                  Zej                   Zej                  j"                  Zej                  j&                  Zej                  j*                  Zej                  j.                  Zej                  j2                  Zej                  j6                  Zej                  j:                  Zej                  j>                  Z ej                  jB                  Z"ej                  jF                  Z$ee ejJ                  jL                  fde'de(de(de'de'd	ejJ                  jR                  d
e(fd„Z*eefde(de'de'd
e(fd„Z+y)é    Né   )Ú_argon2ÚsizeÚpasswordÚsaltÚopslimitÚmemlimitÚencoderÚreturnc           
      óp   — |j                  t        j                  j                  | ||||t        «      «      S )a�  
    Derive a ``size`` bytes long key from a caller-supplied
    ``password`` and ``salt`` pair using the argon2id
    memory-hard construct.

    the enclosing module provides the constants

        - :py:const:`.OPSLIMIT_INTERACTIVE`
        - :py:const:`.MEMLIMIT_INTERACTIVE`
        - :py:const:`.OPSLIMIT_MODERATE`
        - :py:const:`.MEMLIMIT_MODERATE`
        - :py:const:`.OPSLIMIT_SENSITIVE`
        - :py:const:`.MEMLIMIT_SENSITIVE`

    as a guidance for correct settings.

    :param size: derived key size, must be between
                 :py:const:`.BYTES_MIN` and
                 :py:const:`.BYTES_MAX`
    :type size: int
    :param password: password used to seed the key derivation procedure;
                     it length must be between
                     :py:const:`.PASSWD_MIN` and
                     :py:const:`.PASSWD_MAX`
    :type password: bytes
    :param salt: **RANDOM** salt used in the key derivation procedure;
                 its length must be exactly :py:const:`.SALTBYTES`
    :type salt: bytes
    :param opslimit: the time component (operation count)
                     of the key derivation procedure's computational cost;
                     it must be between
                     :py:const:`.OPSLIMIT_MIN` and
                     :py:const:`.OPSLIMIT_MAX`
    :type opslimit: int
    :param memlimit: the memory occupation component
                     of the key derivation procedure's computational cost;
                     it must be between
                     :py:const:`.MEMLIMIT_MIN` and
                     :py:const:`.MEMLIMIT_MAX`
    :type memlimit: int
    :rtype: bytes

    .. versionadded:: 1.2
    )ÚencodeÚnaclÚbindingsÚcrypto_pwhash_algÚALG)r   r   r   r   r	   r
   s         úU/var/www/api.ozpay.ru/ozpay/venv/lib/python3.12/site-packages/nacl/pwhash/argon2id.pyÚkdfr   5   s5   € ðj �>‰>Ü�‰×'Ñ'Ø�(˜D (¨H´có	
óð ó    c                 óN   — t         j                  j                  | ||t        «      S )a¯  
    Hashes a password with a random salt, using the memory-hard
    argon2id construct and returning an ascii string that has all
    the needed info to check against a future password

    The default settings for opslimit and memlimit are those deemed
    correct for the interactive user login case.

    :param bytes password:
    :param int opslimit:
    :param int memlimit:
    :rtype: bytes

    .. versionadded:: 1.2
    )r   r   Úcrypto_pwhash_str_algr   )r   r   r	   s      r   Ústrr   q   s$   € ô( �=‰=×.Ñ.Ø�(˜H¤cóð r   ),Únacl.bindingsr   Únacl.encodingÚ r   ÚALG_ARGON2ID13r   r   Ú crypto_pwhash_argon2id_STRPREFIXÚ	STRPREFIXÚ	SALTBYTESÚ
PASSWD_MINÚ
PASSWD_MAXÚPWHASH_SIZEÚ	BYTES_MINÚ	BYTES_MAXÚverifyÚ#crypto_pwhash_argon2id_MEMLIMIT_MINÚMEMLIMIT_MINÚ#crypto_pwhash_argon2id_MEMLIMIT_MAXÚMEMLIMIT_MAXÚ#crypto_pwhash_argon2id_OPSLIMIT_MINÚOPSLIMIT_MINÚ#crypto_pwhash_argon2id_OPSLIMIT_MAXÚOPSLIMIT_MAXÚ+crypto_pwhash_argon2id_OPSLIMIT_INTERACTIVEÚOPSLIMIT_INTERACTIVEÚ+crypto_pwhash_argon2id_MEMLIMIT_INTERACTIVEÚMEMLIMIT_INTERACTIVEÚ)crypto_pwhash_argon2id_OPSLIMIT_SENSITIVEÚOPSLIMIT_SENSITIVEÚ)crypto_pwhash_argon2id_MEMLIMIT_SENSITIVEÚMEMLIMIT_SENSITIVEÚ(crypto_pwhash_argon2id_OPSLIMIT_MODERATEÚOPSLIMIT_MODERATEÚ(crypto_pwhash_argon2id_MEMLIMIT_MODERATEÚMEMLIMIT_MODERATEÚencodingÚ
RawEncoderÚintÚbytesÚEncoderr   r   © r   r   ú<module>r?      s³  ðó Û å à×Ñ€Ø�M‰M×:Ñ:€	à×Ñ€	à×Ñ€
Ø×Ñ€
à×!Ñ!€à×Ñ€	Ø×Ñ€	à	�‰€à�}‰}×@Ñ@€Ø�}‰}×@Ñ@€Ø�}‰}×@Ñ@€Ø�}‰}×@Ñ@€ð 	‡M�M×=Ñ=ð ð 	‡M�M×=Ñ=ð ð —]‘]×LÑLÐ Ø—]‘]×LÑLÐ à—M‘M×JÑJÐ Ø—M‘M×JÑJÐ ð 'Ø&Ø%)§]¡]×%=Ñ%=ñ9Ø
ð9àð9ð ð9ð ð	9ð
 ð9ð �]‰]×"Ñ"ð9ð ó9ð| )Ø(ñØðàðð ðð ô	r   