Hackfut Security File Manager
Current Path:
/opt/alt/python27/lib64/python2.7/site-packages/Crypto/SelfTest/Cipher
opt
/
alt
/
python27
/
lib64
/
python2.7
/
site-packages
/
Crypto
/
SelfTest
/
Cipher
/
📁
..
📄
__init__.py
(2.34 KB)
📄
__init__.pyc
(1.53 KB)
📄
__init__.pyo
(1.53 KB)
📄
common.py
(16.21 KB)
📄
common.pyc
(15.62 KB)
📄
common.pyo
(15.62 KB)
📄
test_AES.py
(78.1 KB)
📄
test_AES.pyc
(74.86 KB)
📄
test_AES.pyo
(74.86 KB)
📄
test_ARC2.py
(4.83 KB)
📄
test_ARC2.pyc
(4.02 KB)
📄
test_ARC2.pyo
(4.02 KB)
📄
test_ARC4.py
(3.46 KB)
📄
test_ARC4.pyc
(2.6 KB)
📄
test_ARC4.pyo
(2.6 KB)
📄
test_Blowfish.py
(5.7 KB)
📄
test_Blowfish.pyc
(5.31 KB)
📄
test_Blowfish.pyo
(5.31 KB)
📄
test_CAST.py
(1.93 KB)
📄
test_CAST.pyc
(1.33 KB)
📄
test_CAST.pyo
(1.33 KB)
📄
test_DES.py
(14.66 KB)
📄
test_DES.pyc
(13.06 KB)
📄
test_DES.pyo
(13.06 KB)
📄
test_DES3.py
(15.19 KB)
📄
test_DES3.pyc
(12.65 KB)
📄
test_DES3.pyo
(12.65 KB)
📄
test_XOR.py
(2.48 KB)
📄
test_XOR.pyc
(2.04 KB)
📄
test_XOR.pyo
(2.04 KB)
📄
test_pkcs1_15.py
(7.17 KB)
📄
test_pkcs1_15.pyc
(10.67 KB)
📄
test_pkcs1_15.pyo
(10.67 KB)
📄
test_pkcs1_oaep.py
(16.89 KB)
📄
test_pkcs1_oaep.pyc
(15.38 KB)
📄
test_pkcs1_oaep.pyo
(15.38 KB)
Editing: __init__.py
# -*- coding: utf-8 -*- # # SelfTest/Cipher/__init__.py: Self-test for cipher modules # # Written in 2008 by Dwayne C. Litzenberger <dlitz@dlitz.net> # # =================================================================== # The contents of this file are dedicated to the public domain. To # the extent that dedication to the public domain is not available, # everyone is granted a worldwide, perpetual, royalty-free, # non-exclusive license to exercise all rights associated with the # contents of this file for any purpose whatsoever. # No rights are reserved. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS # BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN # ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. # =================================================================== """Self-test for cipher modules""" __revision__ = "$Id$" def get_tests(config={}): tests = [] from Crypto.SelfTest.Cipher import test_AES; tests += test_AES.get_tests(config=config) from Crypto.SelfTest.Cipher import test_ARC2; tests += test_ARC2.get_tests(config=config) from Crypto.SelfTest.Cipher import test_ARC4; tests += test_ARC4.get_tests(config=config) from Crypto.SelfTest.Cipher import test_Blowfish; tests += test_Blowfish.get_tests(config=config) from Crypto.SelfTest.Cipher import test_CAST; tests += test_CAST.get_tests(config=config) from Crypto.SelfTest.Cipher import test_DES3; tests += test_DES3.get_tests(config=config) from Crypto.SelfTest.Cipher import test_DES; tests += test_DES.get_tests(config=config) from Crypto.SelfTest.Cipher import test_XOR; tests += test_XOR.get_tests(config=config) from Crypto.SelfTest.Cipher import test_pkcs1_15; tests += test_pkcs1_15.get_tests(config=config) from Crypto.SelfTest.Cipher import test_pkcs1_oaep; tests += test_pkcs1_oaep.get_tests(config=config) return tests if __name__ == '__main__': import unittest suite = lambda: unittest.TestSuite(get_tests()) unittest.main(defaultTest='suite') # vim:set ts=4 sw=4 sts=4 expandtab:
Upload File
Create Folder