Example #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
Example #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
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
Example #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
Example #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
Example #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()]
Example #9
0
def get_tests():
    from CryptoPlus.Cipher import ARC4
    from common import make_stream_tests
    return make_stream_tests(ARC4, "ARC4", test_data)
Example #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)
Example #11
0
def get_tests():
    from CryptoPlus.Cipher import ARC4
    from common import make_stream_tests
    return make_stream_tests(ARC4, "ARC4", test_data)
Example #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)
Example #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)
Example #14
0
def get_tests():
    from CryptoPlus.Cipher import XOR
    from common import make_stream_tests
    return make_stream_tests(XOR, "XOR", test_data)
Example #15
0
def get_tests():
    from CryptoPlus.Cipher import XOR
    from common import make_stream_tests
    return make_stream_tests(XOR, "XOR", test_data)