Submit
Path:
~
/
/
opt
/
alt
/
python37
/
lib64
/
python3.7
/
site-packages
/
Crypto
/
SelfTest
/
Cipher
/
__pycache__
/
File Content:
test_XOR.cpython-37.pyc
B ��c� � @ sj d Z ddlZdZddlT ddddgZG d d � d ej�Zi fdd�Zed krfddlZdd� Z ej dd� dS )z%Self-test suite for Crypto.Cipher.XOR� Nz$Id$)�*)�01r Z00zzero key)�0102040810204080Z0003050911214181r z 1-byte key)r Zcda8c8a2dc8a8c2aZccaaz 2-byte key)Z�ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffZ�fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0Z@000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1fz32-byte keyc @ s e Zd Zdd� ZdS )�TruncationSelfTestc C s | � ttjd� dS )zB33-byte key (should raise ValueError under current implementation)Z!xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxN)ZassertRaises� ValueError�XOR�new)�self� r �R/opt/alt/python37/lib64/python3.7/site-packages/Crypto/SelfTest/Cipher/test_XOR.py�runTest7 s zTruncationSelfTest.runTestN)�__name__� __module__�__qualname__r r r r r r 5 s r c C s, ddl ma ddlm} |tdt�t� g S )Nr )r � )�make_stream_testsr )Z Crypto.Cipherr �commonr � test_datar )Zconfigr r r r � get_tests= s r �__main__c C s t �t� �S )N)�unittestZ TestSuiter r r r r �<lambda>E � r �suite)ZdefaultTest)�__doc__r Z__revision__ZCrypto.Util.py3compatr ZTestCaser r r r �mainr r r r �<module> s
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
__init__.cpython-37.opt-1.pyc
1176 bytes
0644
__init__.cpython-37.pyc
1176 bytes
0644
common.cpython-37.opt-1.pyc
11703 bytes
0644
common.cpython-37.pyc
11703 bytes
0644
test_AES.cpython-37.opt-1.pyc
54974 bytes
0644
test_AES.cpython-37.pyc
54974 bytes
0644
test_ARC2.cpython-37.opt-1.pyc
2881 bytes
0644
test_ARC2.cpython-37.pyc
2881 bytes
0644
test_ARC4.cpython-37.opt-1.pyc
3085 bytes
0644
test_ARC4.cpython-37.pyc
3085 bytes
0644
test_Blowfish.cpython-37.opt-1.pyc
3858 bytes
0644
test_Blowfish.cpython-37.pyc
3858 bytes
0644
test_CAST.cpython-37.opt-1.pyc
957 bytes
0644
test_CAST.cpython-37.pyc
957 bytes
0644
test_DES.cpython-37.opt-1.pyc
11328 bytes
0644
test_DES.cpython-37.pyc
11328 bytes
0644
test_DES3.cpython-37.opt-1.pyc
12644 bytes
0644
test_DES3.cpython-37.pyc
12644 bytes
0644
test_XOR.cpython-37.opt-1.pyc
1692 bytes
0644
test_XOR.cpython-37.pyc
1692 bytes
0644
test_pkcs1_15.cpython-37.opt-1.pyc
6142 bytes
0644
test_pkcs1_15.cpython-37.pyc
6142 bytes
0644
test_pkcs1_oaep.cpython-37.opt-1.pyc
13831 bytes
0644
test_pkcs1_oaep.cpython-37.pyc
13831 bytes
0644
N4ST4R_ID | Naxtarrr