Repository URL to install this package:
|
Version:
4.0.105 ▾
|
ó
ۍEYc @` s d d l m Z m Z m Z d d l m Z d d l m Z m Z d d l
m Z e j Z
e j Z d Z d Z d S( i ( t absolute_importt divisiont print_function( t
exceptions( t ffit lib( t ensurec C` sQ t j d t } t j | | } t | d k d d t j t j | t S( s
Computes and returns the scalar product of a standard group element and an
integer ``n``.
:param n: bytes
:rtype: bytes
s unsigned char[]i s Unexpected library errort raising(
R t newt crypto_scalarmult_BYTESR t crypto_scalarmult_baseR t exct RuntimeErrort buffert crypto_scalarmult_SCALARBYTES( t nt qt rc( ( sT /home/tvault/.virtenv/lib/python2.7/site-packages/nacl/bindings/crypto_scalarmult.pyR
s
c C` sT t j d t } t j | | | } t | d k d d t j t j | t S( s¡
Computes and returns the scalar product of the given group element and an
integer ``n``.
:param p: bytes
:param n: bytes
:rtype: bytes
s unsigned char[]i s Unexpected library errorR (
R R R R t crypto_scalarmultR R R R
R ( R t pR R ( ( sT /home/tvault/.virtenv/lib/python2.7/site-packages/nacl/bindings/crypto_scalarmult.pyR , s
N( t
__future__R R R t naclR R t nacl._sodiumR R t nacl.exceptionsR t crypto_scalarmult_bytesR t crypto_scalarmult_scalarbytesR R
R ( ( ( sT /home/tvault/.virtenv/lib/python2.7/site-packages/nacl/bindings/crypto_scalarmult.pyt <module> s