Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/dist-packages/Crypto/SelfTest/Cipher/
Upload File :
Current File : //usr/lib/python2.7/dist-packages/Crypto/SelfTest/Cipher/test_XOR.pyc

ó
T:´Nc@s¥dZddlZdZddlTdddddddddfgZdejfd„ƒYZid„Zedkr¡ddlZd„Z	ej
ddƒndS(s%Self-test suite for Crypto.Cipher.XORiÿÿÿÿNs$Id$(t*t01t00szero keyt0102040810204080t0003050911214181s
1-byte keytcda8c8a2dc8a8c2atccaas
2-byte keytffi@t@fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0it@000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1fs32-byte keytTruncationSelfTestcBseZd„ZRS(cCs|jttjddƒdS(sB33-byte key (should raise ValueError under current implementation)txi!N(tassertRaisest
ValueErrortXORtnew(tself((sC/usr/lib/python2.7/dist-packages/Crypto/SelfTest/Cipher/test_XOR.pytrunTest7s(t__name__t
__module__R(((sC/usr/lib/python2.7/dist-packages/Crypto/SelfTest/Cipher/test_XOR.pyR
5scCs:ddlmaddlm}|tdtƒtƒgS(Niÿÿÿÿ(R(tmake_stream_testsR(t
Crypto.CipherRtcommonRt	test_dataR
(tconfigR((sC/usr/lib/python2.7/dist-packages/Crypto/SelfTest/Cipher/test_XOR.pyt	get_tests=st__main__cCstjtƒƒS(N(tunittestt	TestSuiteR(((sC/usr/lib/python2.7/dist-packages/Crypto/SelfTest/Cipher/test_XOR.pyt<lambda>EstdefaultTesttsuite(RRRszero key(RRRs
1-byte key(RRRs
2-byte key(t__doc__Rt__revision__tCrypto.Util.py3compatRtTestCaseR
RRRtmain(((sC/usr/lib/python2.7/dist-packages/Crypto/SelfTest/Cipher/test_XOR.pyt<module>s*