Ejemplo n.º 1
0
def get_tests(config={}):
    from common import make_stream_tests
    tests = make_stream_tests(ARC4, "ARC4", test_data)
    tests += list_test_cases(RFC6229_Tests)
    tests += list_test_cases(Drop_Tests)
    tests.append(KeyLength())
    return tests
Ejemplo n.º 2
0
def get_tests(config={}):
    from common import make_stream_tests

    tests = make_stream_tests(Salsa20, "Salsa20", test_data)
    tests.append(KeyLength())
    tests += list_test_cases(NonceTests)
    return tests
Ejemplo n.º 3
0
def get_tests(config={}):
    from common import make_stream_tests
    tests = make_stream_tests(ARC4, "ARC4", test_data)
    tests += list_test_cases(RFC6229_Tests)
    tests += list_test_cases(Drop_Tests)
    tests.append(KeyLength())
    return tests
def get_tests(config={}):
    tests = make_stream_tests(Salsa20, "Salsa20", test_data)
    tests.append(KeyLength())
    tests += list_test_cases(NonceTests)
    tests.append(ByteArrayTest())

    import types
    if _memoryview != types.NoneType:
        tests.append(MemoryviewTest())

    return tests
Ejemplo n.º 5
0
def get_tests(config={}):
    tests = make_stream_tests(Salsa20, "Salsa20", test_data)
    tests.append(KeyLength())
    tests += list_test_cases(NonceTests)
    tests.append(ByteArrayTest())

    import types
    if _memoryview != types.NoneType:
        tests.append(MemoryviewTest())

    return tests
Ejemplo n.º 6
0
def get_tests(config={}):
    from Crypto.Cipher import ARC4
    from common import make_stream_tests

    return make_stream_tests(ARC4, "ARC4", test_data)
def get_tests(config={}):
    from common import make_stream_tests
    tests = make_stream_tests(Salsa20, "Salsa20", test_data)
    tests.append(KeyLength())
    tests += list_test_cases(NonceTests)
    return tests
Ejemplo n.º 8
0
def get_tests(config={}):
    global XOR
    from Crypto.Cipher import XOR
    from common import make_stream_tests
    return make_stream_tests(XOR, "XOR", test_data) + [TruncationSelfTest()]
Ejemplo n.º 9
0
def get_tests():
    from CryptoPlus.Cipher import ARC4
    from common import make_stream_tests
    return make_stream_tests(ARC4, "ARC4", test_data)
Ejemplo n.º 10
0
def get_tests(config={}):
    global Salsa20
    from Crypto.Cipher import Salsa20
    from common import make_stream_tests
    return make_stream_tests(Salsa20, "Salsa20", test_data)
Ejemplo n.º 11
0
def get_tests():
    from CryptoPlus.Cipher import ARC4
    from common import make_stream_tests
    return make_stream_tests(ARC4, "ARC4", test_data)
Ejemplo n.º 12
0
def get_tests(config={}):
    from Crypto.Cipher import ARC4
    from common import make_stream_tests

    return make_stream_tests(ARC4, "ARC4", test_data)
Ejemplo n.º 13
0
def get_tests(config={}):
    global Salsa20
    from Crypto.Cipher import Salsa20
    from common import make_stream_tests
    return make_stream_tests(Salsa20, "Salsa20", test_data)
Ejemplo n.º 14
0
def get_tests():
    from CryptoPlus.Cipher import XOR
    from common import make_stream_tests
    return make_stream_tests(XOR, "XOR", test_data)
Ejemplo n.º 15
0
def get_tests():
    from CryptoPlus.Cipher import XOR
    from common import make_stream_tests
    return make_stream_tests(XOR, "XOR", test_data)