| Server IP : 61.19.30.66 / Your IP : 216.73.216.15 Web Server : Apache/2.2.22 (Ubuntu) System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 User : www-data ( 33) PHP Version : 5.3.10-1ubuntu3.48 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python2.7/dist-packages/Crypto/SelfTest/Cipher/ |
Upload File : |
ó
T:´Nc @ s¥ d Z d d l Z d Z d d l Td d d d d d d d d f g Z d e j f d „ ƒ YZ i d „ Z e d k r¡ d d l Z d „ Z e j
d d ƒ n d S( s% Self-test suite for Crypto.Cipher.XORiÿÿÿÿNs $Id$( t *t 01t 00s zero keyt 0102040810204080t 0003050911214181s
1-byte keyt cda8c8a2dc8a8c2at ccaas
2-byte keyt ffi@ t@ fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0i t@ 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1fs 32-byte keyt TruncationSelfTestc B s e Z d „ Z RS( c C s | j t t j d d ƒ d S( sB 33-byte key (should raise ValueError under current implementation)t xi! N( t assertRaisest
ValueErrort XORt new( t self( ( sC /usr/lib/python2.7/dist-packages/Crypto/SelfTest/Cipher/test_XOR.pyt runTest7 s ( t __name__t
__module__R ( ( ( sC /usr/lib/python2.7/dist-packages/Crypto/SelfTest/Cipher/test_XOR.pyR
5 s c C s: d d l m a d d l m } | t d t ƒ t ƒ g S( Niÿÿÿÿ( R ( t make_stream_testsR ( t
Crypto.CipherR t commonR t test_dataR
( t configR ( ( sC /usr/lib/python2.7/dist-packages/Crypto/SelfTest/Cipher/test_XOR.pyt get_tests= s t __main__c C s t j t ƒ ƒ S( N( t unittestt TestSuiteR ( ( ( sC /usr/lib/python2.7/dist-packages/Crypto/SelfTest/Cipher/test_XOR.pyt <lambda>E s t defaultTestt suite( R R R s zero key( R R R s
1-byte key( R R R s
2-byte key( t __doc__R t __revision__t Crypto.Util.py3compatR t TestCaseR
R R R t main( ( ( sC /usr/lib/python2.7/dist-packages/Crypto/SelfTest/Cipher/test_XOR.pyt <module> s*