예제 #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)