https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/nacl/bindings/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/nacl/bindings/__pycache__/crypto_scalarmult.cpython-310.pyc
o

��a4 �@s�UddlmZddlmZmZddlmZeej	�Z
e��Ze
ed<e��Ze
ed<dZdZe
r8e��Ze��Zdedefdd	�Zded
edefdd�Zdedefd
d�Zdedefdd�Zded
edefdd�Zded
edefdd�ZdS)�)�
exceptions)�ffi�lib)�ensure�crypto_scalarmult_BYTES�crypto_scalarmult_SCALARBYTES�n�returncCs@t�dt�}t�||�}t|dkdtjd�t�|t	�dd�S)z�
    Computes and returns the scalar product of a standard group element and an
    integer ``n``.

    :param n: bytes
    :rtype: bytes
    �unsigned char[]r�Unexpected library error��raisingN)
r�newrr�crypto_scalarmult_baser�exc�RuntimeError�bufferr�r�q�rc�r�A/usr/lib/python3/dist-packages/nacl/bindings/crypto_scalarmult.pyr$sr�pcCsBt�dt�}t�|||�}t|dkdtjd�t�|t	�dd�S)z�
    Computes and returns the scalar product of the given group element and an
    integer ``n``.

    :param p: bytes
    :param n: bytes
    :rtype: bytes
    r
rrrN)
rrrr�crypto_scalarmultrrrrr�rrrrrrrr4s	rcC�xttdtjd�tt|t�ot|�tkd�d�tj	d�t
�dt�}t
�||�}t|dkdtjd�t
�|t�dd�S)	a
    Computes and returns the scalar product of a standard group element and an
    integer ``n`` on the edwards25519 curve.

    :param n: a :py:data:`.crypto_scalarmult_ed25519_SCALARBYTES` long bytes
              sequence representing a scalar
    :type n: bytes
    :return: a point on the edwards25519 curve, represented as a
             :py:data:`.crypto_scalarmult_ed25519_BYTES` long bytes sequence
    :rtype: bytes
    :raises nacl.exceptions.UnavailableError: If called when using a
        minimal build of libsodium.
    �Not available in minimal buildr�&Input must be a {} long bytes sequence�%crypto_scalarmult_ed25519_SCALARBYTESr
rrN)r�has_crypto_scalarmult_ed25519r�UnavailableError�
isinstance�bytes�lenr�format�	TypeErrorrr�crypto_scalarmult_ed25519_BYTESr�crypto_scalarmult_ed25519_baserrrrrrr'E�"�

��	r'cCr)	a:
    Computes and returns the scalar product of a standard group element and an
    integer ``n`` on the edwards25519 curve. The integer ``n`` is not clamped.

    :param n: a :py:data:`.crypto_scalarmult_ed25519_SCALARBYTES` long bytes
              sequence representing a scalar
    :type n: bytes
    :return: a point on the edwards25519 curve, represented as a
             :py:data:`.crypto_scalarmult_ed25519_BYTES` long bytes sequence
    :rtype: bytes
    :raises nacl.exceptions.UnavailableError: If called when using a
        minimal build of libsodium.
    rrrrr
rrN)rrrr r!r"r#rr$r%rrr&r�&crypto_scalarmult_ed25519_base_noclamprrrrrrr)jr(r)cC�ttdtjd�tt|t�ot|�tkd�d�tj	d�tt|t�o't|�t
kd�d�tj	d�t�dt
�}t
�|||�}t|dkdtjd�t�|t
�d	d	�S)
aq
    Computes and returns the scalar product of a *clamped* integer ``n``
    and the given group element on the edwards25519 curve.
    The scalar is clamped, as done in the public key generation case,
    by setting to zero the bits in position [0, 1, 2, 255] and setting
    to one the bit in position 254.

    :param n: a :py:data:`.crypto_scalarmult_ed25519_SCALARBYTES` long bytes
              sequence representing a scalar
    :type n: bytes
    :param p: a :py:data:`.crypto_scalarmult_ed25519_BYTES` long bytes sequence
              representing a point on the edwards25519 curve
    :type p: bytes
    :return: a point on the edwards25519 curve, represented as a
             :py:data:`.crypto_scalarmult_ed25519_BYTES` long bytes sequence
    :rtype: bytes
    :raises nacl.exceptions.UnavailableError: If called when using a
        minimal build of libsodium.
    rrrrr&r
rrN)rrrr r!r"r#rr$r%r&rrr�crypto_scalarmult_ed25519rrrrrrr+�s0�

��	��r+cCr*)
a�
    Computes and returns the scalar product of an integer ``n``
    and the given group element on the edwards25519 curve. The integer
    ``n`` is not clamped.

    :param n: a :py:data:`.crypto_scalarmult_ed25519_SCALARBYTES` long bytes
              sequence representing a scalar
    :type n: bytes
    :param p: a :py:data:`.crypto_scalarmult_ed25519_BYTES` long bytes sequence
              representing a point on the edwards25519 curve
    :type p: bytes
    :return: a point on the edwards25519 curve, represented as a
             :py:data:`.crypto_scalarmult_ed25519_BYTES` long bytes sequence
    :rtype: bytes
    :raises nacl.exceptions.UnavailableError: If called when using a
        minimal build of libsodium.
    rrrrr&r
rrN)rrrr r!r"r#rr$r%r&rrr�!crypto_scalarmult_ed25519_noclamprrrrrrr,�s0�

��	��r,N)�naclrr�nacl._sodiumrr�nacl.exceptionsr�bool�$PYNACL_HAS_CRYPTO_SCALARMULT_ED25519r�crypto_scalarmult_bytesr�int�__annotations__�crypto_scalarmult_scalarbytesrr&r�crypto_scalarmult_ed25519_bytes�%crypto_scalarmult_ed25519_scalarbytesr"rrr'r)r+r,rrrr�<module>s$
�%%3

https://t.me/RX1948 - 2025