示例#1
0
def test_twofish():
    from Crypto.SelfTest.Cipher.common import make_block_tests

    if twofish is None:
        warnings.warn(
            "Twofish not available on this system. Skipping its tests.")
        return

    for testcase in make_block_tests(twofish, "Twofish", test_data):
        # Hack for Nose
        yield getattr(testcase, testcase._testMethodName)
示例#2
0
def test_camellia():
    from Crypto.SelfTest.Cipher.common import make_block_tests

    if camellia is None:
        warnings.warn(
            "Camellia not available on this system. Skipping its tests.")
        return

    for testcase in make_block_tests(camellia, "Camellia", test_data):
        # Hack for Nose
        yield getattr(testcase, testcase._testMethodName)
示例#3
0
def test_camellia():
    from Crypto.SelfTest.Cipher.common import make_block_tests

    if camellia is None:
        warnings.warn(
            "Camellia not available on this system. Skipping its tests."
            )
        return

    for testcase in make_block_tests(camellia, "Camellia", test_data):
        # Hack for Nose
        yield getattr(testcase, testcase._testMethodName)
示例#4
0
def test_twofish():
    from Crypto.SelfTest.Cipher.common import make_block_tests

    if twofish is None:
        warnings.warn(
            "Twofish not available on this system. Skipping its tests."
            )
        return

    for testcase in make_block_tests(twofish, "Twofish", test_data):
        # Hack for Nose
        yield getattr(testcase, testcase._testMethodName)
示例#5
0
def get_tests(config={}):
    return make_block_tests(twofish, "Twofish", test_data)
示例#6
0
def test_aidea():
    from Crypto.SelfTest.Cipher.common import make_block_tests

    for testcase in make_block_tests(aidea, "AIDEA", test_data):
        # Hack for Nose
        yield getattr(testcase, testcase._testMethodName)
示例#7
0
def get_testcases(config={}):
    testcases = make_block_tests(aidea, "AIDEA", test_data)
    return testcases
示例#8
0
def get_testcases(config={}):
    testcases = make_block_tests(aidea, "AIDEA", test_data)
    return testcases
示例#9
0
def test_aidea():
    from Crypto.SelfTest.Cipher.common import make_block_tests

    for testcase in make_block_tests(aidea, "AIDEA", test_data):
        # Hack for Nose
        yield getattr(testcase, testcase._testMethodName)
示例#10
0
def get_tests(config={}):
    return make_block_tests(camellia, "Camellia", test_data)