Beispiel #1
0
def get_tests(config={}):
    tests = []
    import test_HMAC
    tests += test_HMAC.get_tests(config=config)
    import test_MD2
    tests += test_MD2.get_tests(config=config)
    import test_MD4
    tests += test_MD4.get_tests(config=config)
    import test_MD5
    tests += test_MD5.get_tests(config=config)
    import test_RIPEMD
    tests += test_RIPEMD.get_tests(config=config)
    import test_SHA
    tests += test_SHA.get_tests(config=config)
    import test_SHA256
    tests += test_SHA256.get_tests(config=config)
    try:
        import test_SHA224
        tests += test_SHA224.get_tests(config=config)
        import test_SHA384
        tests += test_SHA384.get_tests(config=config)
        import test_SHA512
        tests += test_SHA512.get_tests(config=config)
    except ImportError:
        import sys
        sys.stderr.write(
            "SelfTest: warning: not testing SHA224/SHA384/SHA512 modules (not available)\n"
        )
    return tests
Beispiel #2
0
def get_tests(config={}):
    tests = []
    import test_HMAC;   tests += test_HMAC.get_tests(config=config)
    import test_MD2;    tests += test_MD2.get_tests(config=config)
    import test_MD4;    tests += test_MD4.get_tests(config=config)
    import test_MD5;    tests += test_MD5.get_tests(config=config)
    import test_RIPEMD; tests += test_RIPEMD.get_tests(config=config)
    import test_SHA;    tests += test_SHA.get_tests(config=config)
    import test_SHA256; tests += test_SHA256.get_tests(config=config)
    return tests
Beispiel #3
0
def get_tests(config={}):
    tests = []
    import test_HMAC;   tests += test_HMAC.get_tests(config=config)
    import test_MD2;    tests += test_MD2.get_tests(config=config)
    import test_MD4;    tests += test_MD4.get_tests(config=config)
    import test_MD5;    tests += test_MD5.get_tests(config=config)
    import test_RIPEMD; tests += test_RIPEMD.get_tests(config=config)
    import test_SHA;    tests += test_SHA.get_tests(config=config)
    import test_SHA256; tests += test_SHA256.get_tests(config=config)
    try:
        import test_SHA224; tests += test_SHA224.get_tests(config=config)
        import test_SHA384; tests += test_SHA384.get_tests(config=config)
        import test_SHA512; tests += test_SHA512.get_tests(config=config)
    except ImportError:
        import sys
        sys.stderr.write("SelfTest: warning: not testing SHA224/SHA384/SHA512 modules (not available)\n")
    return tests
Beispiel #4
0
def get_tests():
    tests = []
    import test_HMAC
    tests += test_HMAC.get_tests()
    import test_MD2
    tests += test_MD2.get_tests()
    import test_MD4
    tests += test_MD4.get_tests()
    import test_MD5
    tests += test_MD5.get_tests()
    import test_RIPEMD
    tests += test_RIPEMD.get_tests()
    import test_SHA
    tests += test_SHA.get_tests()
    import test_SHA256
    tests += test_SHA256.get_tests()
    return tests