/opt/alt/python27/lib64/python2.7/site-packages/Crypto/SelfTest/Cipher
NameSizeModeActions
common.py165990644editdlrm
common.pyc159920644editdlrm
common.pyo159920644editdlrm
test_AES.py799750644editdlrm
test_AES.pyc766560644editdlrm
test_AES.pyo766560644editdlrm
test_ARC2.py49450644editdlrm
test_ARC2.pyc41120644editdlrm
test_ARC2.pyo41120644editdlrm
test_ARC4.py35460644editdlrm
test_ARC4.pyc26660644editdlrm
test_ARC4.pyo26660644editdlrm
test_Blowfish.py58320644editdlrm
test_Blowfish.pyc54370644editdlrm
test_Blowfish.pyo54370644editdlrm
test_CAST.py19770644editdlrm
test_CAST.pyc13640644editdlrm
test_CAST.pyo13640644editdlrm
test_DES.py150090644editdlrm
test_DES.pyc133710644editdlrm
test_DES.pyo133710644editdlrm
test_DES3.py155580644editdlrm
test_DES3.pyc129500644editdlrm
test_DES3.pyo129500644editdlrm
test_pkcs1_15.py73420644editdlrm
test_pkcs1_15.pyc109220644editdlrm
test_pkcs1_15.pyo109220644editdlrm
test_pkcs1_oaep.py172920644editdlrm
test_pkcs1_oaep.pyc157540644editdlrm
test_pkcs1_oaep.pyo157540644editdlrm
test_XOR.py25380644editdlrm
test_XOR.pyc20870644editdlrm
test_XOR.pyo20870644editdlrm
__init__.py24010644editdlrm
__init__.pyc15710644editdlrm
__init__.pyo15710644editdlrm
Edit: /opt/alt/python27/lib64/python2.7/site-packages/Crypto/SelfTest/Cipher/test_CAST.py (1977B)
# -*- coding: utf-8 -*- # # SelfTest/Cipher/CAST.py: Self-test for the CAST-128 (CAST5) cipher # # Written in 2008 by Dwayne C. Litzenberger # # =================================================================== # 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 suite for Crypto.Cipher.CAST""" __revision__ = "$Id$" from Crypto.Util.py3compat import * # This is a list of (plaintext, ciphertext, key) tuples. test_data = [ # Test vectors from RFC 2144, B.1 ('0123456789abcdef', '238b4fe5847e44b2', '0123456712345678234567893456789a', '128-bit key'), ('0123456789abcdef', 'eb6a711a2c02271b', '01234567123456782345', '80-bit key'), ('0123456789abcdef', '7ac816d16e9b302e', '0123456712', '40-bit key'), ] def get_tests(config={}): from Crypto.Cipher import CAST from common import make_block_tests return make_block_tests(CAST, "CAST", test_data) if __name__ == '__main__': import unittest suite = lambda: unittest.TestSuite(get_tests()) unittest.main(defaultTest='suite') # vim:set ts=4 sw=4 sts=4 expandtab: