%PDF- %PDF-
Direktori : /opt/plesk/python/2.7/lib64/python2.7/site-packages/nacl/bindings/ |
Current File : //opt/plesk/python/2.7/lib64/python2.7/site-packages/nacl/bindings/crypto_secretbox.pyo |
� �֫[c @` 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 e j � Z e j � 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` s� t | � t k r$ t j d � � n t | � t k rH t j d � � n d t | } t j d t | � � } t j | | t | � | | � } t | d k d d t j �t j | t | � � } | t S( Ns Invalid keys Invalid nonces s unsigned char[]i s Encryption failedt raising( t lent crypto_secretbox_KEYBYTESt exct ValueErrort crypto_secretbox_NONCEBYTESt crypto_secretbox_ZEROBYTESR t newR t crypto_secretboxR t CryptoErrort buffert crypto_secretbox_BOXZEROBYTES( t messaget noncet keyt paddedt ciphertextt res( ( sU /opt/plesk/python/2.7/lib64/python2.7/site-packages/nacl/bindings/crypto_secretbox.pyR s !c C` s� t | � t k r$ t j d � � n t | � t k rH t j d � � n d t | } t j d t | � � } t j | | t | � | | � } t | d k d d t j �t j | t | � � } | t S( Ns Invalid keys Invalid nonces s unsigned char[]i s1 Decryption failed. Ciphertext failed verificationR ( R R R R R R R R R t crypto_secretbox_openR R R R ( R R R R t plaintextR ( ( sU /opt/plesk/python/2.7/lib64/python2.7/site-packages/nacl/bindings/crypto_secretbox.pyR 8 s N( t __future__R R R t naclR R t nacl._sodiumR R t nacl.exceptionsR t crypto_secretbox_keybytesR t crypto_secretbox_noncebytesR t crypto_secretbox_zerobytesR t crypto_secretbox_boxzerobytesR t crypto_secretbox_macbytest crypto_secretbox_MACBYTESt! crypto_secretbox_messagebytes_maxt! crypto_secretbox_MESSAGEBYTES_MAXR R ( ( ( sU /opt/plesk/python/2.7/lib64/python2.7/site-packages/nacl/bindings/crypto_secretbox.pyt <module> s