HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3/dist-packages/nacl/bindings/__pycache__/crypto_scalarmult.cpython-38.pyc
U

�֫[�@s`ddlmZmZmZddlmZddlmZm	Z	ddl
mZe	��Z
e	��Zdd�Zdd�Zd	S)
�)�absolute_import�division�print_function)�
exceptions)�ffi�lib)�ensurecCs@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�ZraisingN)
r�new�crypto_scalarmult_BYTESr�crypto_scalarmult_baser�exc�RuntimeError�buffer�crypto_scalarmult_SCALARBYTES)�n�q�rc�r�A/usr/lib/python3/dist-packages/nacl/bindings/crypto_scalarmult.pyrs�rcCsBt�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	rr
rN)
rrr
r�crypto_scalarmultrrrrr)r�prrrrrr,s	�rN)Z
__future__rrrZnaclrrZnacl._sodiumrrZnacl.exceptionsrZcrypto_scalarmult_bytesr
Zcrypto_scalarmult_scalarbytesrrrrrrr�<module>s