HEX
Server: Apache
System: Linux 185.122.168.184.host.secureserver.net 5.14.0-570.60.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Nov 5 05:00:59 EST 2025 x86_64
User: barbeatleanalyti (1024)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //var/opt/nydus/ops/cryptography/hazmat/primitives/twofactor/__pycache__/totp.cpython-39.pyc
a

�,�h��@sFddlZddlmZddlmZddlmZmZmZGdd�d�Z	dS)�N)�
constant_time)�InvalidToken)�HOTP�_ALLOWED_HASH_TYPES�
_generate_uric@sleZdZdeeeeejed�dd�Z	ej
eefed�dd�Zeedd	�d
d�Z
eejeed�d
d�ZdS)�TOTPNT)�key�length�	algorithm�	time_step�backend�enforce_key_lengthcCs||_t||||d�|_dS)N)r
)�
_time_stepr�_hotp)�selfrr	r
rrr
�r�`/opt/nydus/tmp/pip-target-wkfpz8uv/lib64/python/cryptography/hazmat/primitives/twofactor/totp.py�__init__s	�z
TOTP.__init__)�time�returncCst||j�}|j�|�S)N)�intrr�generate)rr�counterrrrrsz
TOTP.generate)�totprrcCst�|�|�|�std��dS)Nz#Supplied TOTP value does not match.)rZbytes_eqrr)rrrrrr�verify#szTOTP.verify)�account_name�issuerrcCst|jd||dt|j�fg�S)NrZperiod)rrrr)rrrrrr�get_provisioning_uri's�zTOTP.get_provisioning_uri)NT)�__name__�
__module__�__qualname__�bytesrr�typing�Any�boolr�Union�floatrr�str�Optionalrrrrrrs��
�r)
r"Zcryptography.hazmat.primitivesrZ(cryptography.hazmat.primitives.twofactorrZ-cryptography.hazmat.primitives.twofactor.hotprrrrrrrr�<module>s