コード例 #1
0
ファイル: test_twofish.py プロジェクト: stevenmz/python-pgp
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
ファイル: test_twofish.py プロジェクト: mitchellrj/python-pgp
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
ファイル: test_aidea.py プロジェクト: mitchellrj/python-pgp
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
ファイル: test_aidea.py プロジェクト: SkierPGP/python-pgp
def get_testcases(config={}):
    testcases = make_block_tests(aidea, "AIDEA", test_data)
    return testcases
コード例 #8
0
ファイル: test_aidea.py プロジェクト: kevien/python-pgp
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)