HEX
Server: LiteSpeed
System: Linux shams.tasjeel.ae 5.14.0-611.5.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 08:09:09 EST 2025 x86_64
User: infowars (1469)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //lib/python3.9/site-packages/yubico/__pycache__/yubikey_defs.cpython-39.opt-1.pyc
a

�w\5�@s�dZgd�ZddlmZdZdZdZdZdZdZ	d	Z
d
ZGdd�de�Z
Gd
d�de�ZdZGdd�de�ZGdd�de�ZdS)z4
Module with constants. Many of them from ykdefs.h.
)
�RESP_TIMEOUT_WAIT_MASK�RESP_TIMEOUT_WAIT_FLAG�RESP_PENDING_FLAG�SLOT_WRITE_FLAG�SHA1_MAX_BLOCK_SIZE�SHA1_DIGEST_SIZE�OTP_CHALRESP_SIZE�UID_SIZE�
YUBICO_VID�SLOT�MODE�PID�YK4_CAPA�)�__version__�� �@����c@sLeZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZdZdZdZdS)r
zSlot entriesr���r��	r���r�(�0�8N)�__name__�
__module__�__qualname__�__doc__ZCONFIGZCONFIG2ZUPDATE1ZUPDATE2ZSWAPZNDEFZNDEF2Z
DEVICE_SERIALZ
DEVICE_CONFIGZSCAN_MAPZYK4_CAPABILITIESZ	CHAL_OTP1Z	CHAL_OTP2Z
CHAL_HMAC1Z
CHAL_HMAC2�r&r&�7/usr/lib/python3.9/site-packages/yubico/yubikey_defs.pyr
)s r
c@sBeZdZdZdZdZdZdZdZdZ	dZ
d	Zd
Ze
ddd
��ZdS)rz	USB modes�r�rrrr�rFcCs�t|j|j|j|j|j|j|jg�}|rB|�t|j|j|jg��|r`|�t|j|j|jg��|r~|�t|j|j|jg��|S)z7Returns a set of all USB modes, with optional filtering)	�set�OTP�CCID�OTP_CCID�U2F�OTP_U2F�U2F_CCID�OTP_U2F_CCID�difference_update)�cls�otp�ccid�u2fZmodesr&r&r'�allMs8�
���zMODE.allN)FFF)r"r#r$r%r,r-r.r/r0r1r2�MASKZ
FLAG_EJECT�classmethodr8r&r&r&r'rAsriPc@sbeZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZdZdZdZdZdZeddd��ZdS)rzUSB Product IDsriiiiiiii iiiiiiiiFcCs�t|j|j|j|j|j|j|j|j|j	|j
|j|j|j
|j|j|j|jg�}|rz|�t|j|j|j|j	|j|j
|jg��|r�|�t|j|j|j|j|j	|j
|j|j|jg	��|r�|�t|j|j|j|j|j
|j
|jg��|S)z2Returns a set of all PIDs, with optional filtering)r+�YUBIKEY�NEO_OTP�NEO_OTP_CCID�NEO_CCID�NEO_U2F�NEO_OTP_U2F�NEO_U2F_CCID�NEO_OTP_U2F_CCID�NEO_SKY�YK4_OTP�YK4_U2F�YK4_OTP_U2F�YK4_CCID�YK4_OTP_CCID�YK4_U2F_CCID�YK4_OTP_U2F_CCID�PLUS_U2F_OTPr3)r4r5r6r7Zpidsr&r&r'r8�sh��
��
zPID.allN)FFF)r"r#r$r%r;r<r=r>r?r@rArBrCrDrErFrGrHrIrJrKr:r8r&r&r&r'rus(rc@s,eZdZdZdZdZdZGdd�de�ZdS)r
z%Capability bits in the YK4_CAPA fieldrr)rc@seZdZdZdZdZdS)zYK4_CAPA.TAGz5Tags for TLV data read from the YK4_CAPABILITIES slotrr)N)r"r#r$r%ZCAPAZSERIALr&r&r&r'�TAG�srLN)	r"r#r$r%r,r/r-�objectrLr&r&r&r'r
�s
r
N)r%�__all__Zyubico_versionrrrrrrrrrrMr
rr	rr
r&r&r&r'�<module>s1U