|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /lib64/python2.7/site-packages/nacl/bindings/ |
Upload File : |
�
y�\c @` s� d d l m Z m Z m Z d d l j Z d d l m Z m Z d d l m
Z
e j � Z e j
� Z e j � Z e j � Z d � Z d � Z d S( i ( t absolute_importt divisiont print_functionN( t ffit lib( t ensurec C` s� t | � t k r- t j d j t � � � n t j d t � } t j | | t | � | � } t
| d k d t j �t j | t � S( s� Compute a fast, cryptographic quality, keyed hash of the input data
:param data:
:type data: bytes
:param key: len(key) must be equal to
:py:data:`.KEYBYTES` (16)
:type key: bytes
s$ Key length must be exactly {0} bytess unsigned char[]i t raising(
t lent KEYBYTESt exct
ValueErrort formatR t newt BYTESR t crypto_shorthash_siphash24R t RuntimeErrort buffer( t datat keyt digestt rc( ( s@ /tmp/pip-install-A1qMVe/pynacl/nacl/bindings/crypto_shorthash.pyR s c C` s� t | � t k r- t j d j t � � � n t j d t � } t j | | t | � | � } t
| d k d t j �t j | t � S( s� Compute a fast, cryptographic quality, keyed hash of the input data
:param data:
:type data: bytes
:param key: len(key) must be equal to
:py:data:`.XKEYBYTES` (16)
:type key: bytes
s$ Key length must be exactly {0} bytess unsigned char[]i R (
R t XKEYBYTESR R
R R R t XBYTESR t crypto_shorthash_siphashx24R R R ( R R R R ( ( s@ /tmp/pip-install-A1qMVe/pynacl/nacl/bindings/crypto_shorthash.pyR . s ( t
__future__R R R t nacl.exceptionst
exceptionsR t nacl._sodiumR R R t crypto_shorthash_siphash24_bytesR
t# crypto_shorthash_siphash24_keybytesR t! crypto_shorthash_siphashx24_bytesR t$ crypto_shorthash_siphashx24_keybytesR R R ( ( ( s@ /tmp/pip-install-A1qMVe/pynacl/nacl/bindings/crypto_shorthash.pyt <module> s