Your IP : 216.73.217.13


Current Path : /lib/python3/dist-packages/nacl/bindings/__pycache__/
Upload File :
Current 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