Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 5
0
def get_tests(config={}):
    return make_block_tests(twofish, "Twofish", test_data)
Ejemplo n.º 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)
Ejemplo n.º 7
0
def get_testcases(config={}):
    testcases = make_block_tests(aidea, "AIDEA", test_data)
    return testcases
Ejemplo n.º 8
0
def get_testcases(config={}):
    testcases = make_block_tests(aidea, "AIDEA", test_data)
    return testcases
Ejemplo n.º 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)
Ejemplo n.º 10
0
def get_tests(config={}):
    return make_block_tests(camellia, "Camellia", test_data)